; LLVM IR from CLASS-SZ/class_sz :: class-sz/source (transfer)

; 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.transfer_workspace = type { %struct.HypersphericalInterpolationStructure, i32, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, i32, double, i16 }
%struct.HypersphericalInterpolationStructure = type { i32, double, double, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr }
%struct.transfers = type { double, double, double, [100 x double], [100 x double], i16, i16, [256 x i8], i32, ptr, ptr, ptr, i16, i16, [256 x i8], i32, ptr, ptr, ptr, ptr, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, ptr, double, i64, ptr, ptr, i32, ptr, i16, i16, [2048 x i8] }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [88 x i8], align 1
@__func__.transfer_integrate = external hidden unnamed_addr constant [19 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [108 x i8], align 1

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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) #1

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

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

; Function Attrs: nounwind
declare double @asinh(double noundef) #3

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: nounwind uwtable
define dso_local i32 @transfer_integrate(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, double noundef %6, i32 noundef %7, double noundef %8, i32 noundef %9, ptr noundef %10) #5 {
  %12 = alloca i32, align 4
  %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 i32, align 4
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca double, align 8
  %31 = alloca ptr, align 8
  %32 = alloca double, align 8
  %33 = alloca i32, align 4
  %34 = alloca [2048 x i8], align 16
  %35 = alloca i32, align 4
  %36 = alloca [2048 x i8], align 16
  %37 = alloca [2048 x i8], align 16
  %38 = alloca [2048 x i8], align 16
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store i32 %3, ptr %16, align 4, !tbaa !9
  store i32 %4, ptr %17, align 4, !tbaa !9
  store i32 %5, ptr %18, align 4, !tbaa !9
  store double %6, ptr %19, align 8, !tbaa !11
  store i32 %7, ptr %20, align 4, !tbaa !9
  store double %8, ptr %21, align 8, !tbaa !11
  store i32 %9, ptr %22, align 4, !tbaa !9
  store ptr %10, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %39 = load ptr, ptr %15, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.transfer_workspace, ptr %39, i32 0, i32 8
  %41 = load ptr, ptr %40, align 8, !tbaa !13
  store ptr %41, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.transfer_workspace, ptr %42, i32 0, i32 9
  %44 = load ptr, ptr %43, align 8, !tbaa !17
  store ptr %44, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %45 = load ptr, ptr %15, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.transfer_workspace, ptr %45, i32 0, i32 7
  %47 = load ptr, ptr %46, align 8, !tbaa !18
  store ptr %47, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %48 = load ptr, ptr %15, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.transfer_workspace, ptr %48, i32 0, i32 14
  %50 = load i32, ptr %49, align 8, !tbaa !19
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %64

52:                                               ; preds = %11
  %53 = load ptr, ptr %15, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.transfer_workspace, ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !20
  %56 = getelementptr inbounds %struct.HypersphericalInterpolationStructure, ptr %55, i32 0, i32 6
  %57 = load ptr, ptr %56, align 8, !tbaa !21
  %58 = load i32, ptr %20, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds double, ptr %57, i64 %59
  %61 = load double, ptr %60, align 8, !tbaa !11
  %62 = load double, ptr %21, align 8, !tbaa !11
  %63 = fdiv double %61, %62
  store double %63, ptr %27, align 8, !tbaa !11
  br label %183

64:                                               ; preds = %11
  %65 = load i32, ptr %16, align 4, !tbaa !9
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.transfers, ptr %66, i32 0, i32 48
  %68 = load i32, ptr %67, align 8, !tbaa !22
  %69 = icmp slt i32 %65, %68
  br i1 %69, label %70, label %89

70:                                               ; preds = %64
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.transfer_workspace, ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds %struct.HypersphericalInterpolationStructure, ptr %72, i32 0, i32 6
  %74 = load ptr, ptr %73, align 8, !tbaa !25
  %75 = load i32, ptr %20, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds double, ptr %74, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !11
  %79 = load ptr, ptr %15, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.transfer_workspace, ptr %79, i32 0, i32 14
  %81 = load i32, ptr %80, align 8, !tbaa !19
  %82 = sitofp i32 %81 to double
  %83 = load ptr, ptr %15, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.transfer_workspace, ptr %83, i32 0, i32 13
  %85 = load double, ptr %84, align 8, !tbaa !26
  %86 = fmul double %82, %85
  %87 = call double @sqrt(double noundef %86) #6
  %88 = fdiv double %78, %87
  store double %88, ptr %27, align 8, !tbaa !11
  br label %182

89:                                               ; preds = %64
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.transfer_workspace, ptr %90, i32 0, i32 2
  %92 = load ptr, ptr %91, align 8, !tbaa !20
  %93 = getelementptr inbounds %struct.HypersphericalInterpolationStructure, ptr %92, i32 0, i32 6
  %94 = load ptr, ptr %93, align 8, !tbaa !21
  %95 = load i32, ptr %20, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds double, ptr %94, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !11
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.transfer_workspace, ptr %99, i32 0, i32 14
  %101 = load i32, ptr %100, align 8, !tbaa !19
  %102 = sitofp i32 %101 to double
  %103 = load ptr, ptr %15, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.transfer_workspace, ptr %103, i32 0, i32 13
  %105 = load double, ptr %104, align 8, !tbaa !26
  %106 = fmul double %102, %105
  %107 = call double @sqrt(double noundef %106) #6
  %108 = fdiv double %98, %107
  store double %108, ptr %27, align 8, !tbaa !11
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.transfer_workspace, ptr %109, i32 0, i32 14
  %111 = load i32, ptr %110, align 8, !tbaa !19
  %112 = icmp eq i32 %111, 1
  br i1 %112, label %113, label %147

113:                                              ; preds = %89
  %114 = load double, ptr %19, align 8, !tbaa !11
  %115 = load double, ptr %19, align 8, !tbaa !11
  %116 = fadd double %115, 1.000000e+00
  %117 = fmul double %114, %116
  %118 = call double @sqrt(double noundef %117) #6
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.transfers, ptr %119, i32 0, i32 46
  %121 = load ptr, ptr %120, align 8, !tbaa !27
  %122 = load i32, ptr %16, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds double, ptr %121, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !11
  %126 = fdiv double %118, %125
  %127 = load ptr, ptr %15, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.transfer_workspace, ptr %127, i32 0, i32 14
  %129 = load i32, ptr %128, align 8, !tbaa !19
  %130 = sitofp i32 %129 to double
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.transfer_workspace, ptr %131, i32 0, i32 13
  %133 = load double, ptr %132, align 8, !tbaa !26
  %134 = fmul double %130, %133
  %135 = call double @sqrt(double noundef %134) #6
  %136 = fmul double %126, %135
  %137 = call double @asin(double noundef %136) #6
  store double %137, ptr %32, align 8, !tbaa !11
  %138 = load double, ptr %32, align 8, !tbaa !11
  %139 = load double, ptr %19, align 8, !tbaa !11
  %140 = load double, ptr %19, align 8, !tbaa !11
  %141 = fadd double %140, 1.000000e+00
  %142 = fmul double %139, %141
  %143 = call double @sqrt(double noundef %142) #6
  %144 = fdiv double %138, %143
  %145 = load double, ptr %27, align 8, !tbaa !11
  %146 = fmul double %145, %144
  store double %146, ptr %27, align 8, !tbaa !11
  br label %181

147:                                              ; preds = %89
  %148 = load double, ptr %19, align 8, !tbaa !11
  %149 = load double, ptr %19, align 8, !tbaa !11
  %150 = fadd double %149, 1.000000e+00
  %151 = fmul double %148, %150
  %152 = call double @sqrt(double noundef %151) #6
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.transfers, ptr %153, i32 0, i32 46
  %155 = load ptr, ptr %154, align 8, !tbaa !27
  %156 = load i32, ptr %16, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds double, ptr %155, i64 %157
  %159 = load double, ptr %158, align 8, !tbaa !11
  %160 = fdiv double %152, %159
  %161 = load ptr, ptr %15, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.transfer_workspace, ptr %161, i32 0, i32 14
  %163 = load i32, ptr %162, align 8, !tbaa !19
  %164 = sitofp i32 %163 to double
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.transfer_workspace, ptr %165, i32 0, i32 13
  %167 = load double, ptr %166, align 8, !tbaa !26
  %168 = fmul double %164, %167
  %169 = call double @sqrt(double noundef %168) #6
  %170 = fmul double %160, %169
  %171 = call double @asinh(double noundef %170) #6
  store double %171, ptr %32, align 8, !tbaa !11
  %172 = load double, ptr %32, align 8, !tbaa !11
  %173 = load double, ptr %19, align 8, !tbaa !11
  %174 = load double, ptr %19, align 8, !tbaa !11
  %175 = fadd double %174, 1.000000e+00
  %176 = fmul double %173, %175
  %177 = call double @sqrt(double noundef %176) #6
  %178 = fdiv double %172, %177
  %179 = load double, ptr %27, align 8, !tbaa !11
  %180 = fmul double %179, %178
  store double %180, ptr %27, align 8, !tbaa !11
  br label %181

181:                                              ; preds = %147, %113
  br label %182

182:                                              ; preds = %181, %70
  br label %183

183:                                              ; preds = %182, %52
  %184 = load double, ptr %27, align 8, !tbaa !11
  %185 = load ptr, ptr %24, align 8, !tbaa !5
  %186 = getelementptr inbounds double, ptr %185, i64 0
  %187 = load double, ptr %186, align 8, !tbaa !11
  %188 = fcmp oge double %184, %187
  br i1 %188, label %189, label %191

189:                                              ; preds = %183
  %190 = load ptr, ptr %23, align 8, !tbaa !5
  store double 0.000000e+00, ptr %190, align 8, !tbaa !11
  store i32 0, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %382

191:                                              ; preds = %183
  %192 = load ptr, ptr %15, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.transfer_workspace, ptr %192, i32 0, i32 4
  %194 = load i32, ptr %193, align 4, !tbaa !28
  %195 = icmp eq i32 %194, 1
  br i1 %195, label %196, label %222

196:                                              ; preds = %191
  %197 = load ptr, ptr %15, align 8, !tbaa !5
  %198 = load ptr, ptr %13, align 8, !tbaa !5
  %199 = load ptr, ptr %14, align 8, !tbaa !5
  %200 = load double, ptr %21, align 8, !tbaa !11
  %201 = load i32, ptr %16, align 4, !tbaa !9
  %202 = load i32, ptr %20, align 4, !tbaa !9
  %203 = load i32, ptr %22, align 4, !tbaa !9
  %204 = call i32 @transfer_radial_function(ptr noundef %197, ptr noundef %198, ptr noundef %199, double noundef %200, i32 noundef %201, i32 noundef %202, i32 noundef 1, ptr noundef %30, i32 noundef %203)
  %205 = icmp eq i32 %204, 1
  br i1 %205, label %206, label %215

206:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 2048, ptr %34) #6
  %207 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  %208 = load ptr, ptr %14, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.transfers, ptr %208, i32 0, i32 52
  %210 = getelementptr inbounds [2048 x i8], ptr %209, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %207, ptr noundef @.str, ptr noundef @.str.95, ptr noundef %210)
  %211 = load ptr, ptr %14, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.transfers, ptr %211, i32 0, i32 52
  %213 = getelementptr inbounds [2048 x i8], ptr %212, i64 0, i64 0
  %214 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %213, ptr noundef @.str.2, ptr noundef @__func__.transfer_integrate, i32 noundef 3265, ptr noundef %214)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %34) #6
  store i32 1, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %382

215:                                              ; preds = %196
  %216 = load ptr, ptr %26, align 8, !tbaa !5
  %217 = getelementptr inbounds double, ptr %216, i64 0
  %218 = load double, ptr %217, align 8, !tbaa !11
  %219 = load double, ptr %30, align 8, !tbaa !11
  %220 = fmul double %218, %219
  %221 = load ptr, ptr %23, align 8, !tbaa !5
  store double %220, ptr %221, align 8, !tbaa !11
  store i32 0, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %382

222:                                              ; preds = %191
  %223 = load ptr, ptr %15, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.transfer_workspace, ptr %223, i32 0, i32 4
  %225 = load i32, ptr %224, align 4, !tbaa !28
  %226 = sub nsw i32 %225, 1
  store i32 %226, ptr %28, align 4, !tbaa !9
  br label %227

227:                                              ; preds = %235, %222
  %228 = load ptr, ptr %24, align 8, !tbaa !5
  %229 = load i32, ptr %28, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds double, ptr %228, i64 %230
  %232 = load double, ptr %231, align 8, !tbaa !11
  %233 = load double, ptr %27, align 8, !tbaa !11
  %234 = fcmp olt double %232, %233
  br i1 %234, label %235, label %238

235:                                              ; preds = %227
  %236 = load i32, ptr %28, align 4, !tbaa !9
  %237 = add nsw i32 %236, -1
  store i32 %237, ptr %28, align 4, !tbaa !9
  br label %227, !llvm.loop !29

238:                                              ; preds = %227
  %239 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %239, ptr %29, align 4, !tbaa !9
  br label %240

240:                                              ; preds = %254, %238
  %241 = load ptr, ptr %26, align 8, !tbaa !5
  %242 = load i32, ptr %28, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds double, ptr %241, i64 %243
  %245 = load double, ptr %244, align 8, !tbaa !11
  %246 = fcmp oeq double %245, 0.000000e+00
  br i1 %246, label %247, label %255

247:                                              ; preds = %240
  %248 = load i32, ptr %28, align 4, !tbaa !9
  %249 = add nsw i32 %248, -1
  store i32 %249, ptr %28, align 4, !tbaa !9
  %250 = load i32, ptr %28, align 4, !tbaa !9
  %251 = icmp slt i32 %250, 0
  br i1 %251, label %252, label %254

252:                                              ; preds = %247
  %253 = load ptr, ptr %23, align 8, !tbaa !5
  store double 0.000000e+00, ptr %253, align 8, !tbaa !11
  store i32 0, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %382

254:                                              ; preds = %247
  br label %240, !llvm.loop !31

255:                                              ; preds = %240
  %256 = load ptr, ptr %15, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.transfer_workspace, ptr %256, i32 0, i32 16
  %258 = load i16, ptr %257, align 8, !tbaa !32
  %259 = sext i16 %258 to i32
  %260 = icmp eq i32 %259, 1
  br i1 %260, label %261, label %281

261:                                              ; preds = %255
  br label %262

262:                                              ; preds = %279, %261
  %263 = load ptr, ptr %24, align 8, !tbaa !5
  %264 = load i32, ptr %28, align 4, !tbaa !9
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds double, ptr %263, i64 %265
  %267 = load double, ptr %266, align 8, !tbaa !11
  %268 = load ptr, ptr %15, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.transfer_workspace, ptr %268, i32 0, i32 15
  %270 = load double, ptr %269, align 8, !tbaa !33
  %271 = fcmp olt double %267, %270
  br i1 %271, label %272, label %280

272:                                              ; preds = %262
  %273 = load i32, ptr %28, align 4, !tbaa !9
  %274 = add nsw i32 %273, -1
  store i32 %274, ptr %28, align 4, !tbaa !9
  %275 = load i32, ptr %28, align 4, !tbaa !9
  %276 = icmp slt i32 %275, 0
  br i1 %276, label %277, label %279

277:                                              ; preds = %272
  %278 = load ptr, ptr %23, align 8, !tbaa !5
  store double 0.000000e+00, ptr %278, align 8, !tbaa !11
  store i32 0, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %382

279:                                              ; preds = %272
  br label %262, !llvm.loop !34

280:                                              ; preds = %262
  br label %281

281:                                              ; preds = %280, %255
  %282 = load i32, ptr %28, align 4, !tbaa !9
  %283 = add nsw i32 %282, 1
  %284 = sext i32 %283 to i64
  %285 = mul i64 8, %284
  %286 = call noalias ptr @malloc(i64 noundef %285) #7
  store ptr %286, ptr %31, align 8, !tbaa !5
  %287 = load ptr, ptr %31, align 8, !tbaa !5
  %288 = icmp eq ptr %287, null
  br i1 %288, label %289, label %301

289:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %290 = load i32, ptr %28, align 4, !tbaa !9
  %291 = add nsw i32 %290, 1
  %292 = sext i32 %291 to i64
  %293 = mul i64 8, %292
  %294 = trunc i64 %293 to i32
  store i32 %294, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %36) #6
  %295 = getelementptr inbounds [2048 x i8], ptr %36, i64 0, i64 0
  %296 = load i32, ptr %35, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %295, ptr noundef @.str.6, ptr noundef @.str.96, i32 noundef %296)
  %297 = load ptr, ptr %14, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.transfers, ptr %297, i32 0, i32 52
  %299 = getelementptr inbounds [2048 x i8], ptr %298, i64 0, i64 0
  %300 = getelementptr inbounds [2048 x i8], ptr %36, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %299, ptr noundef @.str.2, ptr noundef @__func__.transfer_integrate, i32 noundef 3302, ptr noundef %300)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %36) #6
  store i32 1, ptr %12, align 4
  store i32 1, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %382

301:                                              ; preds = %281
  %302 = load ptr, ptr %15, align 8, !tbaa !5
  %303 = load ptr, ptr %13, align 8, !tbaa !5
  %304 = load ptr, ptr %14, align 8, !tbaa !5
  %305 = load double, ptr %21, align 8, !tbaa !11
  %306 = load i32, ptr %16, align 4, !tbaa !9
  %307 = load i32, ptr %20, align 4, !tbaa !9
  %308 = load i32, ptr %28, align 4, !tbaa !9
  %309 = add nsw i32 %308, 1
  %310 = load ptr, ptr %31, align 8, !tbaa !5
  %311 = load i32, ptr %22, align 4, !tbaa !9
  %312 = call i32 @transfer_radial_function(ptr noundef %302, ptr noundef %303, ptr noundef %304, double noundef %305, i32 noundef %306, i32 noundef %307, i32 noundef %309, ptr noundef %310, i32 noundef %311)
  %313 = icmp eq i32 %312, 1
  br i1 %313, label %314, label %323

314:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 2048, ptr %37) #6
  %315 = getelementptr inbounds [2048 x i8], ptr %37, i64 0, i64 0
  %316 = load ptr, ptr %14, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.transfers, ptr %316, i32 0, i32 52
  %318 = getelementptr inbounds [2048 x i8], ptr %317, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %315, ptr noundef @.str, ptr noundef @.str.97, ptr noundef %318)
  %319 = load ptr, ptr %14, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.transfers, ptr %319, i32 0, i32 52
  %321 = getelementptr inbounds [2048 x i8], ptr %320, i64 0, i64 0
  %322 = getelementptr inbounds [2048 x i8], ptr %37, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %321, ptr noundef @.str.2, ptr noundef @__func__.transfer_integrate, i32 noundef 3316, ptr noundef %322)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %37) #6
  store i32 1, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %382

323:                                              ; preds = %301
  %324 = load ptr, ptr %26, align 8, !tbaa !5
  %325 = load ptr, ptr %31, align 8, !tbaa !5
  %326 = load i32, ptr %28, align 4, !tbaa !9
  %327 = add nsw i32 %326, 1
  %328 = load ptr, ptr %25, align 8, !tbaa !5
  %329 = load ptr, ptr %23, align 8, !tbaa !5
  %330 = load ptr, ptr %14, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.transfers, ptr %330, i32 0, i32 52
  %332 = getelementptr inbounds [2048 x i8], ptr %331, i64 0, i64 0
  %333 = call i32 @array_trapezoidal_convolution(ptr noundef %324, ptr noundef %325, i32 noundef %327, ptr noundef %328, ptr noundef %329, ptr noundef %332)
  %334 = icmp eq i32 %333, 1
  br i1 %334, label %335, label %344

335:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 2048, ptr %38) #6
  %336 = getelementptr inbounds [2048 x i8], ptr %38, i64 0, i64 0
  %337 = load ptr, ptr %14, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.transfers, ptr %337, i32 0, i32 52
  %339 = getelementptr inbounds [2048 x i8], ptr %338, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %336, ptr noundef @.str, ptr noundef @.str.98, ptr noundef %339)
  %340 = load ptr, ptr %14, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.transfers, ptr %340, i32 0, i32 52
  %342 = getelementptr inbounds [2048 x i8], ptr %341, i64 0, i64 0
  %343 = getelementptr inbounds [2048 x i8], ptr %38, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %342, ptr noundef @.str.2, ptr noundef @__func__.transfer_integrate, i32 noundef 3326, ptr noundef %343)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %38) #6
  store i32 1, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %382

344:                                              ; preds = %323
  %345 = load i32, ptr %28, align 4, !tbaa !9
  %346 = load ptr, ptr %15, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.transfer_workspace, ptr %346, i32 0, i32 4
  %348 = load i32, ptr %347, align 4, !tbaa !28
  %349 = sub nsw i32 %348, 1
  %350 = icmp ne i32 %345, %349
  br i1 %350, label %351, label %380

351:                                              ; preds = %344
  %352 = load i32, ptr %28, align 4, !tbaa !9
  %353 = load i32, ptr %29, align 4, !tbaa !9
  %354 = icmp eq i32 %352, %353
  br i1 %354, label %355, label %380

355:                                              ; preds = %351
  %356 = load ptr, ptr %24, align 8, !tbaa !5
  %357 = load i32, ptr %28, align 4, !tbaa !9
  %358 = add nsw i32 %357, 1
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds double, ptr %356, i64 %359
  %361 = load double, ptr %360, align 8, !tbaa !11
  %362 = load double, ptr %27, align 8, !tbaa !11
  %363 = fsub double %361, %362
  %364 = fmul double 5.000000e-01, %363
  %365 = load ptr, ptr %31, align 8, !tbaa !5
  %366 = load i32, ptr %28, align 4, !tbaa !9
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds double, ptr %365, i64 %367
  %369 = load double, ptr %368, align 8, !tbaa !11
  %370 = fmul double %364, %369
  %371 = load ptr, ptr %26, align 8, !tbaa !5
  %372 = load i32, ptr %28, align 4, !tbaa !9
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds double, ptr %371, i64 %373
  %375 = load double, ptr %374, align 8, !tbaa !11
  %376 = load ptr, ptr %23, align 8, !tbaa !5
  %377 = load double, ptr %376, align 8, !tbaa !11
  %378 = fneg double %370
  %379 = call double @llvm.fmuladd.f64(double %378, double %375, double %377)
  store double %379, ptr %376, align 8, !tbaa !11
  br label %380

380:                                              ; preds = %355, %351, %344
  %381 = load ptr, ptr %31, align 8, !tbaa !5
  call void @free(ptr noundef %381) #6
  store i32 0, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %382

382:                                              ; preds = %380, %335, %314, %289, %277, %252, %215, %206, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  %383 = load i32, ptr %12, align 4
  ret i32 %383
}

; Function Attrs: nounwind
declare double @asin(double noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @transfer_radial_function(ptr noundef, ptr noundef, ptr noundef, double noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #5

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #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 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 144}
!14 = !{!"transfer_workspace", !15, i64 0, !10, i64 96, !6, i64 104, !10, i64 112, !10, i64 116, !10, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !12, i64 184, !10, i64 192, !12, i64 200, !16, i64 208}
!15 = !{!"HypersphericalInterpolationStructure", !10, i64 0, !12, i64 8, !12, i64 16, !10, i64 24, !10, i64 28, !6, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!16 = !{!"short", !7, i64 0}
!17 = !{!14, !6, i64 152}
!18 = !{!14, !6, i64 136}
!19 = !{!14, !10, i64 192}
!20 = !{!14, !6, i64 104}
!21 = !{!15, !6, i64 40}
!22 = !{!23, !10, i64 2360}
!23 = !{!"transfers", !12, i64 0, !12, i64 8, !12, i64 16, !7, i64 24, !7, i64 824, !16, i64 1624, !16, i64 1626, !7, i64 1628, !10, i64 1884, !6, i64 1888, !6, i64 1896, !6, i64 1904, !16, i64 1912, !16, i64 1914, !7, i64 1916, !10, i64 2172, !6, i64 2176, !6, i64 2184, !6, i64 2192, !6, i64 2200, !16, i64 2208, !10, i64 2212, !10, i64 2216, !10, i64 2220, !10, i64 2224, !10, i64 2228, !10, i64 2232, !10, i64 2236, !10, i64 2240, !10, i64 2244, !10, i64 2248, !10, i64 2252, !10, i64 2256, !10, i64 2260, !10, i64 2264, !10, i64 2268, !10, i64 2272, !10, i64 2276, !10, i64 2280, !6, i64 2288, !6, i64 2296, !6, i64 2304, !10, i64 2312, !6, i64 2320, !12, i64 2328, !24, i64 2336, !6, i64 2344, !6, i64 2352, !10, i64 2360, !6, i64 2368, !16, i64 2376, !16, i64 2378, !7, i64 2380}
!24 = !{!"long", !7, i64 0}
!25 = !{!14, !6, i64 40}
!26 = !{!14, !12, i64 184}
!27 = !{!23, !6, i64 2344}
!28 = !{!14, !10, i64 116}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = !{!14, !16, i64 208}
!33 = !{!14, !12, i64 200}
!34 = distinct !{!34, !30}


; 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 [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [88 x i8], align 1
@__func__.transfer_integrate = external hidden unnamed_addr constant [19 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [108 x i8], align 1

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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @asinh(double 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 #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @transfer_integrate(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, double noundef %6, i32 noundef %7, double noundef %8, i32 noundef %9, ptr noundef %10) local_unnamed_addr #6 {
  %12 = alloca double, align 8
  %13 = alloca [2048 x i8], align 16
  %14 = alloca [2048 x i8], align 16
  %15 = alloca [2048 x i8], align 16
  %16 = alloca [2048 x i8], align 16
  %17 = getelementptr inbounds i8, ptr %2, i64 144
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %2, i64 152
  %20 = load ptr, ptr %19, align 8, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %2, i64 136
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %23 = getelementptr inbounds i8, ptr %2, i64 192
  %24 = load i32, ptr %23, align 8, !tbaa !16
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %35

26:                                               ; preds = %11
  %27 = getelementptr inbounds i8, ptr %2, i64 104
  %28 = load ptr, ptr %27, align 8, !tbaa !17
  %29 = getelementptr inbounds i8, ptr %28, i64 40
  %30 = load ptr, ptr %29, align 8, !tbaa !18
  %31 = sext i32 %7 to i64
  %32 = getelementptr inbounds double, ptr %30, i64 %31
  %33 = load double, ptr %32, align 8, !tbaa !19
  %34 = fdiv double %33, %8
  br label %92

35:                                               ; preds = %11
  %36 = getelementptr inbounds i8, ptr %1, i64 2360
  %37 = load i32, ptr %36, align 8, !tbaa !20
  %38 = icmp sgt i32 %37, %3
  br i1 %38, label %39, label %51

39:                                               ; preds = %35
  %40 = getelementptr inbounds i8, ptr %2, i64 40
  %41 = load ptr, ptr %40, align 8, !tbaa !23
  %42 = sext i32 %7 to i64
  %43 = getelementptr inbounds double, ptr %41, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !19
  %45 = sitofp i32 %24 to double
  %46 = getelementptr inbounds i8, ptr %2, i64 184
  %47 = load double, ptr %46, align 8, !tbaa !24
  %48 = fmul double %47, %45
  %49 = tail call double @sqrt(double noundef %48) #7
  %50 = fdiv double %44, %49
  br label %92

51:                                               ; preds = %35
  %52 = getelementptr inbounds i8, ptr %2, i64 104
  %53 = load ptr, ptr %52, align 8, !tbaa !17
  %54 = getelementptr inbounds i8, ptr %53, i64 40
  %55 = load ptr, ptr %54, align 8, !tbaa !18
  %56 = sext i32 %7 to i64
  %57 = getelementptr inbounds double, ptr %55, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !19
  %59 = sitofp i32 %24 to double
  %60 = getelementptr inbounds i8, ptr %2, i64 184
  %61 = load double, ptr %60, align 8, !tbaa !24
  %62 = fmul double %61, %59
  %63 = tail call double @sqrt(double noundef %62) #7
  %64 = fdiv double %58, %63
  %65 = load i32, ptr %23, align 8, !tbaa !16
  %66 = icmp eq i32 %65, 1
  %67 = fadd double %6, 1.000000e+00
  %68 = fmul double %67, %6
  %69 = tail call double @sqrt(double noundef %68) #7
  %70 = getelementptr inbounds i8, ptr %1, i64 2344
  %71 = load ptr, ptr %70, align 8, !tbaa !25
  %72 = sext i32 %3 to i64
  %73 = getelementptr inbounds double, ptr %71, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !19
  %75 = fdiv double %69, %74
  %76 = load i32, ptr %23, align 8, !tbaa !16
  %77 = sitofp i32 %76 to double
  %78 = load double, ptr %60, align 8, !tbaa !24
  %79 = fmul double %78, %77
  %80 = tail call double @sqrt(double noundef %79) #7
  %81 = fmul double %75, %80
  br i1 %66, label %82, label %87

82:                                               ; preds = %51
  %83 = tail call double @asin(double noundef %81) #7
  %84 = tail call double @sqrt(double noundef %68) #7
  %85 = fdiv double %83, %84
  %86 = fmul double %64, %85
  br label %92

87:                                               ; preds = %51
  %88 = tail call double @asinh(double noundef %81) #7
  %89 = tail call double @sqrt(double noundef %68) #7
  %90 = fdiv double %88, %89
  %91 = fmul double %64, %90
  br label %92

92:                                               ; preds = %39, %87, %82, %26
  %.0108 = phi double [ %34, %26 ], [ %50, %39 ], [ %86, %82 ], [ %91, %87 ]
  %93 = load double, ptr %18, align 8, !tbaa !19
  %94 = fcmp ult double %.0108, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %92
  store double 0.000000e+00, ptr %10, align 8, !tbaa !19
  br label %172

96:                                               ; preds = %92
  %97 = getelementptr inbounds i8, ptr %2, i64 116
  %98 = load i32, ptr %97, align 4, !tbaa !26
  %99 = icmp eq i32 %98, 1
  br i1 %99, label %103, label %.preheader117.preheader

.preheader117.preheader:                          ; preds = %96
  %100 = sext i32 %98 to i64
  %101 = add i32 %98, -1
  %102 = sext i32 %101 to i64
  br label %.preheader117

103:                                              ; preds = %96
  %104 = call i32 @transfer_radial_function(ptr noundef nonnull %2, ptr noundef %0, ptr noundef %1, double noundef %8, i32 noundef %3, i32 noundef %7, i32 noundef 1, ptr noundef nonnull %12, i32 noundef %9)
  %105 = icmp eq i32 %104, 1
  br i1 %105, label %106, label %108

106:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #7
  %107 = getelementptr inbounds i8, ptr %1, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str, ptr noundef nonnull @.str.95, ptr noundef nonnull %107) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_integrate, i32 noundef 3265, ptr noundef nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #7
  br label %172

108:                                              ; preds = %103
  %109 = load double, ptr %22, align 8, !tbaa !19
  %110 = load double, ptr %12, align 8, !tbaa !19
  %111 = fmul double %109, %110
  store double %111, ptr %10, align 8, !tbaa !19
  br label %172

.preheader117:                                    ; preds = %.preheader117.preheader, %.preheader117
  %indvars.iv123 = phi i64 [ %102, %.preheader117.preheader ], [ %indvars.iv.next124, %.preheader117 ]
  %indvars.iv = phi i64 [ %100, %.preheader117.preheader ], [ %indvars.iv.next, %.preheader117 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %112 = getelementptr inbounds double, ptr %18, i64 %indvars.iv.next
  %113 = load double, ptr %112, align 8, !tbaa !19
  %114 = fcmp olt double %113, %.0108
  %indvars.iv.next124 = add i64 %indvars.iv123, -1
  br i1 %114, label %.preheader117, label %.preheader116, !llvm.loop !27

.preheader116:                                    ; preds = %.preheader117
  %115 = trunc nsw i64 %indvars.iv.next to i32
  br label %116

116:                                              ; preds = %.preheader116, %120
  %indvars.iv125 = phi i64 [ %indvars.iv123, %.preheader116 ], [ %indvars.iv.next126, %120 ]
  %117 = getelementptr inbounds double, ptr %22, i64 %indvars.iv125
  %118 = load double, ptr %117, align 8, !tbaa !19
  %119 = fcmp oeq double %118, 0.000000e+00
  br i1 %119, label %120, label %123

120:                                              ; preds = %116
  %indvars.iv.next126 = add nsw i64 %indvars.iv125, -1
  %121 = icmp slt i64 %indvars.iv125, 1
  br i1 %121, label %122, label %116, !llvm.loop !29

122:                                              ; preds = %120
  store double 0.000000e+00, ptr %10, align 8, !tbaa !19
  br label %172

123:                                              ; preds = %116
  %124 = getelementptr inbounds i8, ptr %2, i64 208
  %125 = load i16, ptr %124, align 8, !tbaa !30
  %126 = icmp eq i16 %125, 1
  br i1 %126, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %123
  %127 = getelementptr inbounds i8, ptr %2, i64 200
  %128 = load double, ptr %127, align 8, !tbaa !31
  br label %129

129:                                              ; preds = %.preheader, %133
  %indvars.iv129 = phi i64 [ %indvars.iv125, %.preheader ], [ %indvars.iv.next130, %133 ]
  %130 = getelementptr inbounds double, ptr %18, i64 %indvars.iv129
  %131 = load double, ptr %130, align 8, !tbaa !19
  %132 = fcmp olt double %131, %128
  br i1 %132, label %133, label %.loopexit

133:                                              ; preds = %129
  %indvars.iv.next130 = add nsw i64 %indvars.iv129, -1
  %134 = icmp slt i64 %indvars.iv129, 1
  br i1 %134, label %135, label %129, !llvm.loop !32

135:                                              ; preds = %133
  store double 0.000000e+00, ptr %10, align 8, !tbaa !19
  br label %172

.loopexit:                                        ; preds = %129, %123
  %.3.in = phi i64 [ %indvars.iv125, %123 ], [ %indvars.iv129, %129 ]
  %.3 = trunc i64 %.3.in to i32
  %136 = add nsw i32 %.3, 1
  %137 = sext i32 %136 to i64
  %138 = shl nsw i64 %137, 3
  %139 = tail call noalias ptr @malloc(i64 noundef %138) #8
  %140 = icmp eq ptr %139, null
  br i1 %140, label %141, label %144

141:                                              ; preds = %.loopexit
  %142 = trunc i64 %138 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.96, i32 noundef %142) #7
  %143 = getelementptr inbounds i8, ptr %1, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %143, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_integrate, i32 noundef 3302, ptr noundef nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #7
  br label %172

144:                                              ; preds = %.loopexit
  %145 = tail call i32 @transfer_radial_function(ptr noundef nonnull %2, ptr noundef %0, ptr noundef %1, double noundef %8, i32 noundef %3, i32 noundef %7, i32 noundef %136, ptr noundef nonnull %139, i32 noundef %9)
  %146 = icmp eq i32 %145, 1
  br i1 %146, label %147, label %149

147:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %15) #7
  %148 = getelementptr inbounds i8, ptr %1, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str, ptr noundef nonnull @.str.97, ptr noundef nonnull %148) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %148, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_integrate, i32 noundef 3316, ptr noundef nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #7
  br label %172

149:                                              ; preds = %144
  %150 = getelementptr inbounds i8, ptr %1, i64 2380
  %151 = tail call i32 @array_trapezoidal_convolution(ptr noundef %22, ptr noundef nonnull %139, i32 noundef %136, ptr noundef %20, ptr noundef %10, ptr noundef nonnull %150) #7
  %152 = icmp eq i32 %151, 1
  br i1 %152, label %153, label %154

153:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %16) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %16, ptr noundef nonnull @.str, ptr noundef nonnull @.str.98, ptr noundef nonnull %150) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %150, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_integrate, i32 noundef 3326, ptr noundef nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %16) #7
  br label %172

154:                                              ; preds = %149
  %155 = load i32, ptr %97, align 4, !tbaa !26
  %156 = add nsw i32 %155, -1
  %.not = icmp ne i32 %156, %.3
  %157 = icmp eq i32 %.3, %115
  %or.cond = and i1 %157, %.not
  br i1 %or.cond, label %158, label %171

158:                                              ; preds = %154
  %159 = getelementptr inbounds double, ptr %18, i64 %137
  %160 = load double, ptr %159, align 8, !tbaa !19
  %161 = fsub double %160, %.0108
  %sext = shl i64 %indvars.iv.next, 32
  %162 = ashr exact i64 %sext, 32
  %163 = getelementptr inbounds double, ptr %139, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !19
  %165 = getelementptr inbounds double, ptr %22, i64 %162
  %166 = load double, ptr %165, align 8, !tbaa !19
  %167 = load double, ptr %10, align 8, !tbaa !19
  %168 = fmul double %161, -5.000000e-01
  %169 = fmul double %164, %168
  %170 = tail call double @llvm.fmuladd.f64(double %169, double %166, double %167)
  store double %170, ptr %10, align 8, !tbaa !19
  br label %171

171:                                              ; preds = %158, %154
  tail call void @free(ptr noundef nonnull %139) #7
  br label %172

172:                                              ; preds = %171, %153, %147, %141, %135, %122, %108, %106, %95
  %.0 = phi i32 [ 0, %95 ], [ 1, %106 ], [ 0, %108 ], [ 0, %122 ], [ 0, %135 ], [ 1, %141 ], [ 1, %147 ], [ 1, %153 ], [ 0, %171 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  ret i32 %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @asin(double noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @transfer_radial_function(ptr noundef, ptr noundef, ptr noundef, double noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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, !12, i64 144}
!6 = !{!"transfer_workspace", !7, i64 0, !8, i64 96, !12, i64 104, !8, i64 112, !8, i64 116, !8, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !11, i64 184, !8, i64 192, !11, i64 200, !13, i64 208}
!7 = !{!"HypersphericalInterpolationStructure", !8, i64 0, !11, i64 8, !11, i64 16, !8, i64 24, !8, i64 28, !12, i64 32, !12, i64 40, !8, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"double", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"short", !9, i64 0}
!14 = !{!6, !12, i64 152}
!15 = !{!6, !12, i64 136}
!16 = !{!6, !8, i64 192}
!17 = !{!6, !12, i64 104}
!18 = !{!7, !12, i64 40}
!19 = !{!11, !11, i64 0}
!20 = !{!21, !8, i64 2360}
!21 = !{!"transfers", !11, i64 0, !11, i64 8, !11, i64 16, !9, i64 24, !9, i64 824, !13, i64 1624, !13, i64 1626, !9, i64 1628, !8, i64 1884, !12, i64 1888, !12, i64 1896, !12, i64 1904, !13, i64 1912, !13, i64 1914, !9, i64 1916, !8, i64 2172, !12, i64 2176, !12, i64 2184, !12, i64 2192, !12, i64 2200, !13, i64 2208, !8, i64 2212, !8, i64 2216, !8, i64 2220, !8, i64 2224, !8, i64 2228, !8, i64 2232, !8, i64 2236, !8, i64 2240, !8, i64 2244, !8, i64 2248, !8, i64 2252, !8, i64 2256, !8, i64 2260, !8, i64 2264, !8, i64 2268, !8, i64 2272, !8, i64 2276, !8, i64 2280, !12, i64 2288, !12, i64 2296, !12, i64 2304, !8, i64 2312, !12, i64 2320, !11, i64 2328, !22, i64 2336, !12, i64 2344, !12, i64 2352, !8, i64 2360, !12, i64 2368, !13, i64 2376, !13, i64 2378, !9, i64 2380}
!22 = !{!"long", !9, i64 0}
!23 = !{!6, !12, i64 40}
!24 = !{!6, !11, i64 184}
!25 = !{!21, !12, i64 2344}
!26 = !{!6, !8, i64 116}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!6, !13, i64 208}
!31 = !{!6, !11, i64 200}
!32 = distinct !{!32, !28}


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