; 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] }
%struct.precision = type { double, double, double, double, double, double, double, double, double, double, double, double, double, [256 x i8], double, i32, double, i32, i32, double, i32, double, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, [256 x i8], [256 x i8], [256 x i8], double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, double, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, i32, double, double, i32, double, double, i32, double, i32, double, double, i32, double, double, double, i32, double, double, double, double, double, i32, double, double, double, double, double, double, double, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, double, double, double, double, i32, double, double, i32, i32, i32, double, double, [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.42 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [56 x i8], align 1
@__func__.transfer_update_HIS = external hidden unnamed_addr constant [20 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [164 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [162 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [164 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

declare i32 @hyperspherical_HIS_create(i32 noundef, double noundef, i32 noundef, ptr noundef, double noundef, double noundef, double noundef, i32 noundef, double noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @transfer_update_HIS(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, double noundef %4) #2 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca [2048 x i8], align 16
  %25 = alloca i32, align 4
  %26 = alloca [2048 x i8], align 16
  %27 = alloca [2048 x i8], align 16
  %28 = alloca [2048 x i8], align 16
  %29 = alloca [2048 x i8], align 16
  %30 = alloca [2048 x i8], align 16
  %31 = alloca [2048 x i8], align 16
  %32 = alloca [2048 x i8], align 16
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store double %4, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.transfer_workspace, ptr %33, i32 0, i32 1
  %35 = load i32, ptr %34, align 8, !tbaa !13
  %36 = icmp eq i32 %35, 1
  br i1 %36, label %37, label %57

37:                                               ; preds = %5
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.transfer_workspace, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.transfers, ptr %40, i32 0, i32 52
  %42 = getelementptr inbounds [2048 x i8], ptr %41, i64 0, i64 0
  %43 = call i32 @hyperspherical_HIS_free(ptr noundef %39, ptr noundef %42)
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %54

45:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #4
  %46 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.transfers, ptr %47, i32 0, i32 52
  %49 = getelementptr inbounds [2048 x i8], ptr %48, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %46, ptr noundef @.str, ptr noundef @.str.142, ptr noundef %49)
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.transfers, ptr %50, i32 0, i32 52
  %52 = getelementptr inbounds [2048 x i8], ptr %51, i64 0, i64 0
  %53 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %52, ptr noundef @.str.2, ptr noundef @__func__.transfer_update_HIS, i32 noundef 4337, ptr noundef %53)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #4
  store i32 1, ptr %6, align 4
  store i32 1, ptr %25, align 4
  br label %312

54:                                               ; preds = %37
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.transfer_workspace, ptr %55, i32 0, i32 1
  store i32 0, ptr %56, align 8, !tbaa !13
  br label %57

57:                                               ; preds = %54, %5
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.transfer_workspace, ptr %58, i32 0, i32 14
  %60 = load i32, ptr %59, align 8, !tbaa !17
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %311

62:                                               ; preds = %57
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.transfers, ptr %64, i32 0, i32 48
  %66 = load i32, ptr %65, align 8, !tbaa !18
  %67 = icmp slt i32 %63, %66
  br i1 %67, label %68, label %311

68:                                               ; preds = %62
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.precision, ptr %69, i32 0, i32 118
  %71 = load double, ptr %70, align 8, !tbaa !21
  store double %71, ptr %15, align 8, !tbaa !11
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.transfer_workspace, ptr %72, i32 0, i32 14
  %74 = load i32, ptr %73, align 8, !tbaa !17
  %75 = sitofp i32 %74 to double
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.transfer_workspace, ptr %76, i32 0, i32 13
  %78 = load double, ptr %77, align 8, !tbaa !23
  %79 = fmul double %75, %78
  %80 = call double @sqrt(double noundef %79) #4
  store double %80, ptr %20, align 8, !tbaa !11
  %81 = load double, ptr %20, align 8, !tbaa !11
  %82 = load double, ptr %11, align 8, !tbaa !11
  %83 = fmul double %81, %82
  store double %83, ptr %16, align 8, !tbaa !11
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.transfers, ptr %84, i32 0, i32 46
  %86 = load ptr, ptr %85, align 8, !tbaa !24
  %87 = load i32, ptr %10, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds double, ptr %86, i64 %88
  %90 = load double, ptr %89, align 8, !tbaa !11
  %91 = load double, ptr %20, align 8, !tbaa !11
  %92 = fdiv double %90, %91
  store double %92, ptr %12, align 8, !tbaa !11
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.transfer_workspace, ptr %93, i32 0, i32 14
  %95 = load i32, ptr %94, align 8, !tbaa !17
  %96 = icmp eq i32 %95, 1
  br i1 %96, label %97, label %137

97:                                               ; preds = %68
  %98 = load double, ptr %16, align 8, !tbaa !11
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.precision, ptr %99, i32 0, i32 118
  %101 = load double, ptr %100, align 8, !tbaa !21
  %102 = fsub double 0x3FF921FB54442D18, %101
  %103 = fcmp olt double %98, %102
  br i1 %103, label %104, label %106

104:                                              ; preds = %97
  %105 = load double, ptr %16, align 8, !tbaa !11
  br label %111

106:                                              ; preds = %97
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.precision, ptr %107, i32 0, i32 118
  %109 = load double, ptr %108, align 8, !tbaa !21
  %110 = fsub double 0x3FF921FB54442D18, %109
  br label %111

111:                                              ; preds = %106, %104
  %112 = phi double [ %105, %104 ], [ %110, %106 ]
  store double %112, ptr %16, align 8, !tbaa !11
  %113 = load double, ptr %12, align 8, !tbaa !11
  %114 = fadd double %113, 2.000000e-01
  %115 = fptosi double %114 to i32
  store i32 %115, ptr %14, align 4, !tbaa !9
  %116 = load i32, ptr %14, align 4, !tbaa !9
  %117 = sitofp i32 %116 to double
  store double %117, ptr %13, align 8, !tbaa !11
  %118 = load double, ptr %12, align 8, !tbaa !11
  %119 = load double, ptr %13, align 8, !tbaa !11
  %120 = fsub double %118, %119
  %121 = fcmp ogt double %120, 0x3EB0C6F7A0B5ED8D
  br i1 %121, label %122, label %135

122:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 2048, ptr %26) #4
  %123 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  %124 = load i32, ptr %10, align 4, !tbaa !9
  %125 = load double, ptr %12, align 8, !tbaa !11
  %126 = load double, ptr %12, align 8, !tbaa !11
  %127 = load double, ptr %13, align 8, !tbaa !11
  %128 = fsub double %126, %127
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %123, ptr noundef @.str.143, i32 noundef %124, double noundef %125, double noundef %128)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %27) #4
  %129 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  %130 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %129, ptr noundef @.str.42, ptr noundef @.str.144, ptr noundef %130)
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.transfers, ptr %131, i32 0, i32 52
  %133 = getelementptr inbounds [2048 x i8], ptr %132, i64 0, i64 0
  %134 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %133, ptr noundef @.str.2, ptr noundef @__func__.transfer_update_HIS, i32 noundef 4357, ptr noundef %134)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %26) #4
  store i32 1, ptr %6, align 4
  store i32 1, ptr %25, align 4
  br label %312

135:                                              ; preds = %111
  %136 = load double, ptr %13, align 8, !tbaa !11
  store double %136, ptr %12, align 8, !tbaa !11
  br label %137

137:                                              ; preds = %135, %68
  %138 = load double, ptr %12, align 8, !tbaa !11
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.precision, ptr %139, i32 0, i32 122
  %141 = load double, ptr %140, align 8, !tbaa !25
  %142 = fcmp ogt double %138, %141
  br i1 %142, label %143, label %147

143:                                              ; preds = %137
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.precision, ptr %144, i32 0, i32 121
  %146 = load double, ptr %145, align 8, !tbaa !26
  store double %146, ptr %17, align 8, !tbaa !11
  br label %151

147:                                              ; preds = %137
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.precision, ptr %148, i32 0, i32 120
  %150 = load double, ptr %149, align 8, !tbaa !27
  store double %150, ptr %17, align 8, !tbaa !11
  br label %151

151:                                              ; preds = %147, %143
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.transfers, ptr %152, i32 0, i32 42
  %154 = load i32, ptr %153, align 8, !tbaa !28
  store i32 %154, ptr %21, align 4, !tbaa !9
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.transfer_workspace, ptr %155, i32 0, i32 14
  %157 = load i32, ptr %156, align 8, !tbaa !17
  %158 = icmp eq i32 %157, 1
  br i1 %158, label %159, label %176

159:                                              ; preds = %151
  br label %160

160:                                              ; preds = %172, %159
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.transfers, ptr %161, i32 0, i32 43
  %163 = load ptr, ptr %162, align 8, !tbaa !29
  %164 = load i32, ptr %21, align 4, !tbaa !9
  %165 = sub nsw i32 %164, 1
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds i32, ptr %163, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !9
  %169 = sitofp i32 %168 to double
  %170 = load double, ptr %12, align 8, !tbaa !11
  %171 = fcmp oge double %169, %170
  br i1 %171, label %172, label %175

172:                                              ; preds = %160
  %173 = load i32, ptr %21, align 4, !tbaa !9
  %174 = add nsw i32 %173, -1
  store i32 %174, ptr %21, align 4, !tbaa !9
  br label %160, !llvm.loop !30

175:                                              ; preds = %160
  br label %176

176:                                              ; preds = %175, %151
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.transfer_workspace, ptr %177, i32 0, i32 14
  %179 = load i32, ptr %178, align 8, !tbaa !17
  %180 = icmp eq i32 %179, -1
  br i1 %180, label %181, label %244

181:                                              ; preds = %176
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.precision, ptr %182, i32 0, i32 124
  %184 = load double, ptr %183, align 8, !tbaa !32
  store double %184, ptr %19, align 8, !tbaa !11
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.precision, ptr %185, i32 0, i32 123
  %187 = load double, ptr %186, align 8, !tbaa !33
  store double %187, ptr %18, align 8, !tbaa !11
  store i32 0, ptr %22, align 4, !tbaa !9
  %188 = load i32, ptr %21, align 4, !tbaa !9
  %189 = sub nsw i32 %188, 1
  store i32 %189, ptr %23, align 4, !tbaa !9
  %190 = load ptr, ptr %9, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.transfer_workspace, ptr %190, i32 0, i32 14
  %192 = load i32, ptr %191, align 8, !tbaa !17
  %193 = load double, ptr %12, align 8, !tbaa !11
  %194 = load ptr, ptr %8, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.transfers, ptr %194, i32 0, i32 43
  %196 = load ptr, ptr %195, align 8, !tbaa !29
  %197 = load i32, ptr %21, align 4, !tbaa !9
  %198 = load double, ptr %18, align 8, !tbaa !11
  %199 = load double, ptr %16, align 8, !tbaa !11
  %200 = load double, ptr %19, align 8, !tbaa !11
  %201 = load ptr, ptr %8, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.transfers, ptr %201, i32 0, i32 52
  %203 = getelementptr inbounds [2048 x i8], ptr %202, i64 0, i64 0
  %204 = call i32 @transfer_get_lmax(ptr noundef @hyperspherical_get_xmin_from_approx, i32 noundef %192, double noundef %193, ptr noundef %196, i32 noundef %197, double noundef %198, double noundef %199, double noundef %200, ptr noundef %22, ptr noundef %23, ptr noundef %203)
  %205 = icmp eq i32 %204, 1
  br i1 %205, label %206, label %215

206:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 2048, ptr %28) #4
  %207 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  %208 = load ptr, ptr %8, 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.145, ptr noundef %210)
  %211 = load ptr, ptr %8, 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 %28, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %213, ptr noundef @.str.2, ptr noundef @__func__.transfer_update_HIS, i32 noundef 4392, ptr noundef %214)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %28) #4
  store i32 1, ptr %6, align 4
  store i32 1, ptr %25, align 4
  br label %312

215:                                              ; preds = %181
  %216 = load ptr, ptr %9, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.transfer_workspace, ptr %216, i32 0, i32 14
  %218 = load i32, ptr %217, align 8, !tbaa !17
  %219 = load double, ptr %12, align 8, !tbaa !11
  %220 = load ptr, ptr %8, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.transfers, ptr %220, i32 0, i32 43
  %222 = load ptr, ptr %221, align 8, !tbaa !29
  %223 = load i32, ptr %21, align 4, !tbaa !9
  %224 = load double, ptr %18, align 8, !tbaa !11
  %225 = load double, ptr %16, align 8, !tbaa !11
  %226 = load double, ptr %19, align 8, !tbaa !11
  %227 = load ptr, ptr %8, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.transfers, ptr %227, i32 0, i32 52
  %229 = getelementptr inbounds [2048 x i8], ptr %228, i64 0, i64 0
  %230 = call i32 @transfer_get_lmax(ptr noundef @hyperspherical_get_xmin_from_Airy, i32 noundef %218, double noundef %219, ptr noundef %222, i32 noundef %223, double noundef %224, double noundef %225, double noundef %226, ptr noundef %22, ptr noundef %23, ptr noundef %229)
  %231 = icmp eq i32 %230, 1
  br i1 %231, label %232, label %241

232:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 2048, ptr %29) #4
  %233 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  %234 = load ptr, ptr %8, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.transfers, ptr %234, i32 0, i32 52
  %236 = getelementptr inbounds [2048 x i8], ptr %235, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %233, ptr noundef @.str, ptr noundef @.str.146, ptr noundef %236)
  %237 = load ptr, ptr %8, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.transfers, ptr %237, i32 0, i32 52
  %239 = getelementptr inbounds [2048 x i8], ptr %238, i64 0, i64 0
  %240 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %239, ptr noundef @.str.2, ptr noundef @__func__.transfer_update_HIS, i32 noundef 4407, ptr noundef %240)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %29) #4
  store i32 1, ptr %6, align 4
  store i32 1, ptr %25, align 4
  br label %312

241:                                              ; preds = %215
  %242 = load i32, ptr %23, align 4, !tbaa !9
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %21, align 4, !tbaa !9
  br label %244

244:                                              ; preds = %241, %176
  %245 = load double, ptr %12, align 8, !tbaa !11
  %246 = fcmp ole double %245, 0.000000e+00
  br i1 %246, label %247, label %268

247:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 2048, ptr %30) #4
  %248 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  %249 = load double, ptr %12, align 8, !tbaa !11
  %250 = load i32, ptr %10, align 4, !tbaa !9
  %251 = load ptr, ptr %8, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.transfers, ptr %251, i32 0, i32 46
  %253 = load ptr, ptr %252, align 8, !tbaa !24
  %254 = load i32, ptr %10, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds double, ptr %253, i64 %255
  %257 = load double, ptr %256, align 8, !tbaa !11
  %258 = load ptr, ptr %9, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.transfer_workspace, ptr %258, i32 0, i32 13
  %260 = load double, ptr %259, align 8, !tbaa !23
  %261 = load double, ptr %20, align 8, !tbaa !11
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %248, ptr noundef @.str.147, double noundef %249, i32 noundef %250, double noundef %257, double noundef %260, double noundef %261)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %31) #4
  %262 = getelementptr inbounds [2048 x i8], ptr %31, i64 0, i64 0
  %263 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %262, ptr noundef @.str.42, ptr noundef @.str.148, ptr noundef %263)
  %264 = load ptr, ptr %8, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.transfers, ptr %264, i32 0, i32 52
  %266 = getelementptr inbounds [2048 x i8], ptr %265, i64 0, i64 0
  %267 = getelementptr inbounds [2048 x i8], ptr %31, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %266, ptr noundef @.str.2, ptr noundef @__func__.transfer_update_HIS, i32 noundef 4414, ptr noundef %267)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %30) #4
  store i32 1, ptr %6, align 4
  store i32 1, ptr %25, align 4
  br label %312

268:                                              ; preds = %244
  %269 = load ptr, ptr %9, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.transfer_workspace, ptr %269, i32 0, i32 14
  %271 = load i32, ptr %270, align 8, !tbaa !17
  %272 = load double, ptr %12, align 8, !tbaa !11
  %273 = load i32, ptr %21, align 4, !tbaa !9
  %274 = load ptr, ptr %8, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.transfers, ptr %274, i32 0, i32 43
  %276 = load ptr, ptr %275, align 8, !tbaa !29
  %277 = load double, ptr %15, align 8, !tbaa !11
  %278 = load double, ptr %16, align 8, !tbaa !11
  %279 = load double, ptr %17, align 8, !tbaa !11
  %280 = load ptr, ptr %8, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.transfers, ptr %280, i32 0, i32 43
  %282 = load ptr, ptr %281, align 8, !tbaa !29
  %283 = load i32, ptr %21, align 4, !tbaa !9
  %284 = sub nsw i32 %283, 1
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds i32, ptr %282, i64 %285
  %287 = load i32, ptr %286, align 4, !tbaa !9
  %288 = add nsw i32 %287, 1
  %289 = load ptr, ptr %7, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.precision, ptr %289, i32 0, i32 123
  %291 = load double, ptr %290, align 8, !tbaa !33
  %292 = load ptr, ptr %9, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.transfer_workspace, ptr %292, i32 0, i32 0
  %294 = load ptr, ptr %8, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.transfers, ptr %294, i32 0, i32 52
  %296 = getelementptr inbounds [2048 x i8], ptr %295, i64 0, i64 0
  %297 = call i32 @hyperspherical_HIS_create(i32 noundef %271, double noundef %272, i32 noundef %273, ptr noundef %276, double noundef %277, double noundef %278, double noundef %279, i32 noundef %288, double noundef %291, ptr noundef %293, ptr noundef %296)
  %298 = icmp eq i32 %297, 1
  br i1 %298, label %299, label %308

299:                                              ; preds = %268
  call void @llvm.lifetime.start.p0(i64 2048, ptr %32) #4
  %300 = getelementptr inbounds [2048 x i8], ptr %32, i64 0, i64 0
  %301 = load ptr, ptr %8, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.transfers, ptr %301, i32 0, i32 52
  %303 = getelementptr inbounds [2048 x i8], ptr %302, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %300, ptr noundef @.str, ptr noundef @.str.149, ptr noundef %303)
  %304 = load ptr, ptr %8, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.transfers, ptr %304, i32 0, i32 52
  %306 = getelementptr inbounds [2048 x i8], ptr %305, i64 0, i64 0
  %307 = getelementptr inbounds [2048 x i8], ptr %32, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %306, ptr noundef @.str.2, ptr noundef @__func__.transfer_update_HIS, i32 noundef 4428, ptr noundef %307)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %32) #4
  store i32 1, ptr %6, align 4
  store i32 1, ptr %25, align 4
  br label %312

308:                                              ; preds = %268
  %309 = load ptr, ptr %9, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.transfer_workspace, ptr %309, i32 0, i32 1
  store i32 1, ptr %310, align 8, !tbaa !13
  br label %311

311:                                              ; preds = %308, %62, %57
  store i32 0, ptr %6, align 4
  store i32 1, ptr %25, align 4
  br label %312

312:                                              ; preds = %311, %299, %247, %232, %206, %122, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %313 = load i32, ptr %6, align 4
  ret i32 %313
}

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

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

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

declare i32 @hyperspherical_get_xmin_from_approx(i32 noundef, i32 noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef) #1

declare i32 @hyperspherical_get_xmin_from_Airy(i32 noundef, i32 noundef, double noundef, double noundef, double 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 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 #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 = { nounwind }

!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, !10, i64 96}
!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, !10, i64 192}
!18 = !{!19, !10, i64 2360}
!19 = !{!"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, !20, i64 2336, !6, i64 2344, !6, i64 2352, !10, i64 2360, !6, i64 2368, !16, i64 2376, !16, i64 2378, !7, i64 2380}
!20 = !{!"long", !7, i64 0}
!21 = !{!22, !12, i64 1896}
!22 = !{!"precision", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !7, i64 104, !12, i64 360, !10, i64 368, !12, i64 376, !10, i64 384, !10, i64 388, !12, i64 392, !10, i64 400, !12, i64 408, !10, i64 416, !12, i64 424, !12, i64 432, !12, i64 440, !12, i64 448, !12, i64 456, !12, i64 464, !12, i64 472, !12, i64 480, !12, i64 488, !12, i64 496, !12, i64 504, !12, i64 512, !12, i64 520, !12, i64 528, !12, i64 536, !12, i64 544, !12, i64 552, !12, i64 560, !12, i64 568, !12, i64 576, !12, i64 584, !12, i64 592, !12, i64 600, !12, i64 608, !12, i64 616, !10, i64 624, !7, i64 628, !7, i64 884, !7, i64 1140, !12, i64 1400, !12, i64 1408, !12, i64 1416, !12, i64 1424, !12, i64 1432, !12, i64 1440, !12, i64 1448, !12, i64 1456, !12, i64 1464, !12, i64 1472, !12, i64 1480, !12, i64 1488, !12, i64 1496, !12, i64 1504, !12, i64 1512, !12, i64 1520, !10, i64 1528, !12, i64 1536, !12, i64 1544, !10, i64 1552, !10, i64 1556, !10, i64 1560, !10, i64 1564, !10, i64 1568, !10, i64 1572, !10, i64 1576, !10, i64 1580, !12, i64 1584, !12, i64 1592, !12, i64 1600, !12, i64 1608, !12, i64 1616, !12, i64 1624, !12, i64 1632, !12, i64 1640, !10, i64 1648, !12, i64 1656, !12, i64 1664, !10, i64 1672, !12, i64 1680, !12, i64 1688, !10, i64 1696, !12, i64 1704, !10, i64 1712, !12, i64 1720, !12, i64 1728, !10, i64 1736, !12, i64 1744, !12, i64 1752, !12, i64 1760, !10, i64 1768, !12, i64 1776, !12, i64 1784, !12, i64 1792, !12, i64 1800, !12, i64 1808, !10, i64 1816, !12, i64 1824, !12, i64 1832, !12, i64 1840, !12, i64 1848, !12, i64 1856, !12, i64 1864, !12, i64 1872, !10, i64 1880, !12, i64 1888, !12, i64 1896, !12, i64 1904, !12, i64 1912, !12, i64 1920, !12, i64 1928, !12, i64 1936, !12, i64 1944, !12, i64 1952, !12, i64 1960, !12, i64 1968, !12, i64 1976, !12, i64 1984, !12, i64 1992, !12, i64 2000, !12, i64 2008, !12, i64 2016, !12, i64 2024, !12, i64 2032, !12, i64 2040, !12, i64 2048, !12, i64 2056, !12, i64 2064, !12, i64 2072, !12, i64 2080, !12, i64 2088, !12, i64 2096, !12, i64 2104, !12, i64 2112, !12, i64 2120, !12, i64 2128, !12, i64 2136, !12, i64 2144, !12, i64 2152, !12, i64 2160, !12, i64 2168, !12, i64 2176, !12, i64 2184, !12, i64 2192, !12, i64 2200, !12, i64 2208, !12, i64 2216, !12, i64 2224, !12, i64 2232, !12, i64 2240, !12, i64 2248, !10, i64 2256, !12, i64 2264, !12, i64 2272, !12, i64 2280, !12, i64 2288, !10, i64 2296, !12, i64 2304, !12, i64 2312, !10, i64 2320, !10, i64 2324, !10, i64 2328, !12, i64 2336, !12, i64 2344, !7, i64 2352}
!23 = !{!14, !12, i64 184}
!24 = !{!19, !6, i64 2344}
!25 = !{!22, !12, i64 1928}
!26 = !{!22, !12, i64 1920}
!27 = !{!22, !12, i64 1912}
!28 = !{!19, !10, i64 2312}
!29 = !{!19, !6, i64 2320}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!22, !12, i64 1944}
!33 = !{!22, !12, i64 1936}


; 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.42 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [56 x i8], align 1
@__func__.transfer_update_HIS = external hidden unnamed_addr constant [20 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [164 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [162 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [164 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

declare i32 @hyperspherical_HIS_create(i32 noundef, double noundef, i32 noundef, ptr noundef, double noundef, double noundef, double noundef, i32 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

19:                                               ; preds = %5
  %20 = getelementptr inbounds i8, ptr %1, i64 2380
  %21 = tail call i32 @hyperspherical_HIS_free(ptr noundef nonnull %2, ptr noundef nonnull %20) #4
  %22 = icmp eq i32 %21, 1
  br i1 %22, label %23, label %24

23:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str, ptr noundef nonnull @.str.142, ptr noundef nonnull %20) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %20, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_update_HIS, i32 noundef 4337, ptr noundef nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #4
  br label %125

24:                                               ; preds = %19
  store i32 0, ptr %16, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %24, %5
  %26 = getelementptr inbounds i8, ptr %2, i64 192
  %27 = load i32, ptr %26, align 8, !tbaa !14
  %.not = icmp eq i32 %27, 0
  br i1 %.not, label %125, label %28

28:                                               ; preds = %25
  %29 = getelementptr inbounds i8, ptr %1, i64 2360
  %30 = load i32, ptr %29, align 8, !tbaa !15
  %31 = icmp sgt i32 %30, %3
  br i1 %31, label %32, label %125

32:                                               ; preds = %28
  %33 = getelementptr inbounds i8, ptr %0, i64 1896
  %34 = load double, ptr %33, align 8, !tbaa !18
  %35 = sitofp i32 %27 to double
  %36 = getelementptr inbounds i8, ptr %2, i64 184
  %37 = load double, ptr %36, align 8, !tbaa !20
  %38 = fmul double %37, %35
  %39 = tail call double @sqrt(double noundef %38) #4
  %40 = fmul double %39, %4
  %41 = getelementptr inbounds i8, ptr %1, i64 2344
  %42 = load ptr, ptr %41, align 8, !tbaa !21
  %43 = sext i32 %3 to i64
  %44 = getelementptr inbounds double, ptr %42, i64 %43
  %45 = load double, ptr %44, align 8, !tbaa !22
  %46 = fdiv double %45, %39
  %47 = load i32, ptr %26, align 8, !tbaa !14
  %48 = icmp eq i32 %47, 1
  br i1 %48, label %54, label %.thread

.thread:                                          ; preds = %32
  %49 = getelementptr inbounds i8, ptr %0, i64 1928
  %50 = load double, ptr %49, align 8, !tbaa !23
  %51 = fcmp ogt double %46, %50
  %.092.in100.v = select i1 %51, i64 1920, i64 1912
  %.092.in100 = getelementptr inbounds i8, ptr %0, i64 %.092.in100.v
  %.092101 = load double, ptr %.092.in100, align 8, !tbaa !22
  %52 = getelementptr inbounds i8, ptr %1, i64 2312
  %53 = load i32, ptr %52, align 8, !tbaa !24
  br label %.loopexit

54:                                               ; preds = %32
  %55 = load double, ptr %33, align 8, !tbaa !18
  %56 = fsub double 0x3FF921FB54442D18, %55
  %57 = fcmp olt double %40, %56
  %. = select i1 %57, double %40, double %56
  %58 = fadd double %46, 2.000000e-01
  %59 = fptosi double %58 to i32
  %60 = sitofp i32 %59 to double
  %61 = fsub double %46, %60
  %62 = fcmp ogt double %61, 0x3EB0C6F7A0B5ED8D
  br i1 %62, label %63, label %65

63:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.143, i32 noundef %3, double noundef %46, double noundef %61) #4
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.144, ptr noundef nonnull %9) #4
  %64 = getelementptr inbounds i8, ptr %1, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %64, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_update_HIS, i32 noundef 4357, ptr noundef nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #4
  br label %125

65:                                               ; preds = %54
  %66 = getelementptr inbounds i8, ptr %0, i64 1928
  %67 = load double, ptr %66, align 8, !tbaa !23
  %68 = fcmp olt double %67, %60
  %.092.in.v = select i1 %68, i64 1920, i64 1912
  %.092.in = getelementptr inbounds i8, ptr %0, i64 %.092.in.v
  %.092 = load double, ptr %.092.in, align 8, !tbaa !22
  %69 = getelementptr inbounds i8, ptr %1, i64 2312
  %70 = load i32, ptr %69, align 8, !tbaa !24
  %71 = getelementptr inbounds i8, ptr %1, i64 2320
  %72 = load ptr, ptr %71, align 8, !tbaa !25
  %invariant.gep = getelementptr i8, ptr %72, i64 -4
  %73 = sext i32 %70 to i64
  br label %74

74:                                               ; preds = %74, %65
  %indvars.iv = phi i64 [ %indvars.iv.next, %74 ], [ %73, %65 ]
  %gep = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv
  %75 = load i32, ptr %gep, align 4, !tbaa !26
  %76 = sitofp i32 %75 to double
  %77 = fcmp ugt double %60, %76
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  br i1 %77, label %.loopexit.loopexit, label %74, !llvm.loop !27

.loopexit.loopexit:                               ; preds = %74
  %78 = trunc nsw i64 %indvars.iv to i32
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.thread
  %.092104 = phi double [ %.092101, %.thread ], [ %.092, %.loopexit.loopexit ]
  %.090103 = phi double [ %46, %.thread ], [ %60, %.loopexit.loopexit ]
  %.091102 = phi double [ %40, %.thread ], [ %., %.loopexit.loopexit ]
  %.1 = phi i32 [ %53, %.thread ], [ %78, %.loopexit.loopexit ]
  %79 = icmp eq i32 %47, -1
  br i1 %79, label %80, label %101

80:                                               ; preds = %.loopexit
  %81 = getelementptr inbounds i8, ptr %0, i64 1944
  %82 = load double, ptr %81, align 8, !tbaa !29
  %83 = getelementptr inbounds i8, ptr %0, i64 1936
  %84 = load double, ptr %83, align 8, !tbaa !30
  store i32 0, ptr %6, align 4, !tbaa !26
  %85 = add nsw i32 %.1, -1
  store i32 %85, ptr %7, align 4, !tbaa !26
  %86 = getelementptr inbounds i8, ptr %1, i64 2320
  %87 = load ptr, ptr %86, align 8, !tbaa !25
  %88 = getelementptr inbounds i8, ptr %1, i64 2380
  %89 = call i32 @transfer_get_lmax(ptr noundef nonnull @hyperspherical_get_xmin_from_approx, i32 noundef -1, double noundef %.090103, ptr noundef %87, i32 noundef %.1, double noundef %84, double noundef %.091102, double noundef %82, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %88)
  %90 = icmp eq i32 %89, 1
  br i1 %90, label %91, label %92

91:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str, ptr noundef nonnull @.str.145, ptr noundef nonnull %88) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %88, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_update_HIS, i32 noundef 4392, ptr noundef nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #4
  br label %125

92:                                               ; preds = %80
  %93 = load i32, ptr %26, align 8, !tbaa !14
  %94 = load ptr, ptr %86, align 8, !tbaa !25
  %95 = call i32 @transfer_get_lmax(ptr noundef nonnull @hyperspherical_get_xmin_from_Airy, i32 noundef %93, double noundef %.090103, ptr noundef %94, i32 noundef %.1, double noundef %84, double noundef %.091102, double noundef %82, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %88)
  %96 = icmp eq i32 %95, 1
  br i1 %96, label %97, label %98

97:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str, ptr noundef nonnull @.str.146, ptr noundef nonnull %88) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %88, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_update_HIS, i32 noundef 4407, ptr noundef nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #4
  br label %125

98:                                               ; preds = %92
  %99 = load i32, ptr %7, align 4, !tbaa !26
  %100 = add nsw i32 %99, 1
  br label %101

101:                                              ; preds = %98, %.loopexit
  %.2 = phi i32 [ %100, %98 ], [ %.1, %.loopexit ]
  %102 = fcmp ugt double %.090103, 0.000000e+00
  br i1 %102, label %109, label %103

103:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #4
  %104 = load ptr, ptr %41, align 8, !tbaa !21
  %105 = getelementptr inbounds double, ptr %104, i64 %43
  %106 = load double, ptr %105, align 8, !tbaa !22
  %107 = load double, ptr %36, align 8, !tbaa !20
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str.147, double noundef %.090103, i32 noundef %3, double noundef %106, double noundef %107, double noundef %39) #4
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.148, ptr noundef nonnull %13) #4
  %108 = getelementptr inbounds i8, ptr %1, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %108, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_update_HIS, i32 noundef 4414, ptr noundef nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #4
  br label %125

109:                                              ; preds = %101
  %110 = load i32, ptr %26, align 8, !tbaa !14
  %111 = getelementptr inbounds i8, ptr %1, i64 2320
  %112 = load ptr, ptr %111, align 8, !tbaa !25
  %113 = sext i32 %.2 to i64
  %114 = getelementptr i32, ptr %112, i64 %113
  %115 = getelementptr i8, ptr %114, i64 -4
  %116 = load i32, ptr %115, align 4, !tbaa !26
  %117 = add nsw i32 %116, 1
  %118 = getelementptr inbounds i8, ptr %0, i64 1936
  %119 = load double, ptr %118, align 8, !tbaa !30
  %120 = getelementptr inbounds i8, ptr %1, i64 2380
  %121 = call i32 @hyperspherical_HIS_create(i32 noundef %110, double noundef %.090103, i32 noundef %.2, ptr noundef %112, double noundef %34, double noundef %.091102, double noundef %.092104, i32 noundef %117, double noundef %119, ptr noundef %2, ptr noundef nonnull %120) #4
  %122 = icmp eq i32 %121, 1
  br i1 %122, label %123, label %124

123:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %15) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str, ptr noundef nonnull @.str.149, ptr noundef nonnull %120) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %120, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_update_HIS, i32 noundef 4428, ptr noundef nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #4
  br label %125

124:                                              ; preds = %109
  store i32 1, ptr %16, align 8, !tbaa !5
  br label %125

125:                                              ; preds = %25, %28, %124, %123, %103, %97, %91, %63, %23
  %.089 = phi i32 [ 1, %23 ], [ 1, %63 ], [ 1, %91 ], [ 1, %97 ], [ 1, %103 ], [ 1, %123 ], [ 0, %124 ], [ 0, %28 ], [ 0, %25 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  ret i32 %.089
}

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

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

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

declare i32 @hyperspherical_get_xmin_from_approx(i32 noundef, i32 noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef) #1

declare i32 @hyperspherical_get_xmin_from_Airy(i32 noundef, i32 noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef) #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 = { 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 #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 = { nounwind }

!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, !8, i64 96}
!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, !8, i64 192}
!15 = !{!16, !8, i64 2360}
!16 = !{!"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, !17, i64 2336, !12, i64 2344, !12, i64 2352, !8, i64 2360, !12, i64 2368, !13, i64 2376, !13, i64 2378, !9, i64 2380}
!17 = !{!"long", !9, i64 0}
!18 = !{!19, !11, i64 1896}
!19 = !{!"precision", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !9, i64 104, !11, i64 360, !8, i64 368, !11, i64 376, !8, i64 384, !8, i64 388, !11, i64 392, !8, i64 400, !11, i64 408, !8, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !11, i64 520, !11, i64 528, !11, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !11, i64 576, !11, i64 584, !11, i64 592, !11, i64 600, !11, i64 608, !11, i64 616, !8, i64 624, !9, i64 628, !9, i64 884, !9, i64 1140, !11, i64 1400, !11, i64 1408, !11, i64 1416, !11, i64 1424, !11, i64 1432, !11, i64 1440, !11, i64 1448, !11, i64 1456, !11, i64 1464, !11, i64 1472, !11, i64 1480, !11, i64 1488, !11, i64 1496, !11, i64 1504, !11, i64 1512, !11, i64 1520, !8, i64 1528, !11, i64 1536, !11, i64 1544, !8, i64 1552, !8, i64 1556, !8, i64 1560, !8, i64 1564, !8, i64 1568, !8, i64 1572, !8, i64 1576, !8, i64 1580, !11, i64 1584, !11, i64 1592, !11, i64 1600, !11, i64 1608, !11, i64 1616, !11, i64 1624, !11, i64 1632, !11, i64 1640, !8, i64 1648, !11, i64 1656, !11, i64 1664, !8, i64 1672, !11, i64 1680, !11, i64 1688, !8, i64 1696, !11, i64 1704, !8, i64 1712, !11, i64 1720, !11, i64 1728, !8, i64 1736, !11, i64 1744, !11, i64 1752, !11, i64 1760, !8, i64 1768, !11, i64 1776, !11, i64 1784, !11, i64 1792, !11, i64 1800, !11, i64 1808, !8, i64 1816, !11, i64 1824, !11, i64 1832, !11, i64 1840, !11, i64 1848, !11, i64 1856, !11, i64 1864, !11, i64 1872, !8, i64 1880, !11, i64 1888, !11, i64 1896, !11, i64 1904, !11, i64 1912, !11, i64 1920, !11, i64 1928, !11, i64 1936, !11, i64 1944, !11, i64 1952, !11, i64 1960, !11, i64 1968, !11, i64 1976, !11, i64 1984, !11, i64 1992, !11, i64 2000, !11, i64 2008, !11, i64 2016, !11, i64 2024, !11, i64 2032, !11, i64 2040, !11, i64 2048, !11, i64 2056, !11, i64 2064, !11, i64 2072, !11, i64 2080, !11, i64 2088, !11, i64 2096, !11, i64 2104, !11, i64 2112, !11, i64 2120, !11, i64 2128, !11, i64 2136, !11, i64 2144, !11, i64 2152, !11, i64 2160, !11, i64 2168, !11, i64 2176, !11, i64 2184, !11, i64 2192, !11, i64 2200, !11, i64 2208, !11, i64 2216, !11, i64 2224, !11, i64 2232, !11, i64 2240, !11, i64 2248, !8, i64 2256, !11, i64 2264, !11, i64 2272, !11, i64 2280, !11, i64 2288, !8, i64 2296, !11, i64 2304, !11, i64 2312, !8, i64 2320, !8, i64 2324, !8, i64 2328, !11, i64 2336, !11, i64 2344, !9, i64 2352}
!20 = !{!6, !11, i64 184}
!21 = !{!16, !12, i64 2344}
!22 = !{!11, !11, i64 0}
!23 = !{!19, !11, i64 1928}
!24 = !{!16, !8, i64 2312}
!25 = !{!16, !12, i64 2320}
!26 = !{!8, !8, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!19, !11, i64 1944}
!30 = !{!19, !11, i64 1936}


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