; 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.perturbs = type { i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i32, i32, i32, double, i32, i32, [100 x double], [100 x double], i32, i32, i32, i32, i32, double, i32, i32, [30 x double], double, double, double, ptr, ptr, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, double, double, ptr, i32, double, double, double, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, [8000 x i8], [8000 x i8], [8000 x i8], i32, i32, i32, [30 x ptr], [30 x ptr], [30 x ptr], [30 x i32], [30 x i32], [30 x i32], i16, [2048 x i8] }
%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.52 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [146 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [50 x i8], align 1
@__func__.transfer_selection_function = external hidden unnamed_addr constant [28 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [37 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
declare double @pow(double noundef, double noundef) #2

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

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

31:                                               ; preds = %6
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  store double 1.000000e+00, ptr %32, align 8, !tbaa !11
  store i32 0, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %285

33:                                               ; preds = %6
  %34 = load double, ptr %12, align 8, !tbaa !11
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.perturbs, ptr %35, i32 0, i32 36
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [100 x double], ptr %36, i64 0, i64 %38
  %40 = load double, ptr %39, align 8, !tbaa !11
  %41 = fsub double %34, %40
  %42 = call double @llvm.fabs.f64(double %41)
  store double %42, ptr %14, align 8, !tbaa !11
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.perturbs, ptr %43, i32 0, i32 35
  %45 = load i32, ptr %44, align 4, !tbaa !13
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %181

47:                                               ; preds = %33
  %48 = load double, ptr %14, align 8, !tbaa !11
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.perturbs, ptr %49, i32 0, i32 37
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [100 x double], ptr %50, i64 0, i64 %52
  %54 = load double, ptr %53, align 8, !tbaa !11
  %55 = fdiv double %48, %54
  %56 = call double @pow(double noundef %55, double noundef 2.000000e+00) #5
  %57 = fmul double -5.000000e-01, %56
  %58 = call double @exp(double noundef %57) #5
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.perturbs, ptr %59, i32 0, i32 37
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [100 x double], ptr %60, i64 0, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !11
  %65 = fdiv double %58, %64
  %66 = call double @sqrt(double noundef 0x401921FB54442D18) #5
  %67 = fdiv double %65, %66
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  store double %67, ptr %68, align 8, !tbaa !11
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.transfers, ptr %69, i32 0, i32 5
  %71 = load i16, ptr %70, align 8, !tbaa !16
  %72 = sext i16 %71 to i32
  %73 = icmp eq i32 %72, 1
  br i1 %73, label %80, label %74

74:                                               ; preds = %47
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.transfers, ptr %75, i32 0, i32 6
  %77 = load i16, ptr %76, align 2, !tbaa !19
  %78 = sext i16 %77 to i32
  %79 = icmp eq i32 %78, 1
  br i1 %79, label %80, label %180

80:                                               ; preds = %74, %47
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.transfers, ptr %81, i32 0, i32 5
  %83 = load i16, ptr %82, align 8, !tbaa !16
  %84 = sext i16 %83 to i32
  %85 = icmp eq i32 %84, 1
  br i1 %85, label %86, label %160

86:                                               ; preds = %80
  %87 = load double, ptr %12, align 8, !tbaa !11
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.transfers, ptr %88, i32 0, i32 9
  %90 = load ptr, ptr %89, align 8, !tbaa !20
  %91 = getelementptr inbounds double, ptr %90, i64 0
  %92 = load double, ptr %91, align 8, !tbaa !11
  %93 = fcmp olt double %87, %92
  br i1 %93, label %107, label %94

94:                                               ; preds = %86
  %95 = load double, ptr %12, align 8, !tbaa !11
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.transfers, ptr %96, i32 0, i32 9
  %98 = load ptr, ptr %97, align 8, !tbaa !20
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.transfers, ptr %99, i32 0, i32 8
  %101 = load i32, ptr %100, align 4, !tbaa !21
  %102 = sub nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds double, ptr %98, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !11
  %106 = fcmp ogt double %95, %105
  br i1 %106, label %107, label %131

107:                                              ; preds = %94, %86
  call void @llvm.lifetime.start.p0(i64 2048, ptr %19) #5
  %108 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.transfers, ptr %109, i32 0, i32 9
  %111 = load ptr, ptr %110, align 8, !tbaa !20
  %112 = getelementptr inbounds double, ptr %111, i64 0
  %113 = load double, ptr %112, align 8, !tbaa !11
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.transfers, ptr %114, i32 0, i32 9
  %116 = load ptr, ptr %115, align 8, !tbaa !20
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.transfers, ptr %117, i32 0, i32 8
  %119 = load i32, ptr %118, align 4, !tbaa !21
  %120 = sub nsw i32 %119, 1
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %116, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !11
  %124 = load double, ptr %12, align 8, !tbaa !11
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %108, ptr noundef @.str.74, double noundef %113, double noundef %123, double noundef %124)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %20) #5
  %125 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  %126 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %125, ptr noundef @.str.42, ptr noundef @.str.75, ptr noundef %126)
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.transfers, ptr %127, i32 0, i32 52
  %129 = getelementptr inbounds [2048 x i8], ptr %128, i64 0, i64 0
  %130 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %129, ptr noundef @.str.2, ptr noundef @__func__.transfer_selection_function, i32 noundef 2459, ptr noundef %130)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %19) #5
  store i32 1, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %285

131:                                              ; preds = %94
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.transfers, ptr %132, i32 0, i32 9
  %134 = load ptr, ptr %133, align 8, !tbaa !20
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.transfers, ptr %135, i32 0, i32 8
  %137 = load i32, ptr %136, align 4, !tbaa !21
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.transfers, ptr %138, i32 0, i32 10
  %140 = load ptr, ptr %139, align 8, !tbaa !22
  %141 = load ptr, ptr %10, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.transfers, ptr %141, i32 0, i32 11
  %143 = load ptr, ptr %142, align 8, !tbaa !23
  %144 = load double, ptr %12, align 8, !tbaa !11
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.transfers, ptr %145, i32 0, i32 52
  %147 = getelementptr inbounds [2048 x i8], ptr %146, i64 0, i64 0
  %148 = call i32 @array_interpolate_spline(ptr noundef %134, i32 noundef %137, ptr noundef %140, ptr noundef %143, i32 noundef 1, double noundef %144, ptr noundef %17, ptr noundef %15, i32 noundef 1, ptr noundef %147)
  %149 = icmp eq i32 %148, 1
  br i1 %149, label %150, label %159

150:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 2048, ptr %21) #5
  %151 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.transfers, ptr %152, i32 0, i32 52
  %154 = getelementptr inbounds [2048 x i8], ptr %153, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %151, ptr noundef @.str, ptr noundef @.str.76, ptr noundef %154)
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.transfers, ptr %155, i32 0, i32 52
  %157 = getelementptr inbounds [2048 x i8], ptr %156, i64 0, i64 0
  %158 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %157, ptr noundef @.str.2, ptr noundef @__func__.transfer_selection_function, i32 noundef 2473, ptr noundef %158)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %21) #5
  store i32 1, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %285

159:                                              ; preds = %131
  br label %175

160:                                              ; preds = %80
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  %162 = load double, ptr %12, align 8, !tbaa !11
  %163 = call i32 @transfer_dNdz_analytic(ptr noundef %161, double noundef %162, ptr noundef %15, ptr noundef %16)
  %164 = icmp eq i32 %163, 1
  br i1 %164, label %165, label %174

165:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 2048, ptr %22) #5
  %166 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  %167 = load ptr, ptr %10, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.transfers, ptr %167, i32 0, i32 52
  %169 = getelementptr inbounds [2048 x i8], ptr %168, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %166, ptr noundef @.str, ptr noundef @.str.77, ptr noundef %169)
  %170 = load ptr, ptr %10, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.transfers, ptr %170, i32 0, i32 52
  %172 = getelementptr inbounds [2048 x i8], ptr %171, i64 0, i64 0
  %173 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %172, ptr noundef @.str.2, ptr noundef @__func__.transfer_selection_function, i32 noundef 2482, ptr noundef %173)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %22) #5
  store i32 1, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %285

174:                                              ; preds = %160
  br label %175

175:                                              ; preds = %174, %159
  %176 = load double, ptr %15, align 8, !tbaa !11
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = load double, ptr %177, align 8, !tbaa !11
  %179 = fmul double %178, %176
  store double %179, ptr %177, align 8, !tbaa !11
  br label %180

180:                                              ; preds = %175, %74
  store i32 0, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %285

181:                                              ; preds = %33
  %182 = load ptr, ptr %9, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.perturbs, ptr %182, i32 0, i32 35
  %184 = load i32, ptr %183, align 4, !tbaa !13
  %185 = icmp eq i32 %184, 1
  br i1 %185, label %186, label %277

186:                                              ; preds = %181
  %187 = load double, ptr %14, align 8, !tbaa !11
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.perturbs, ptr %188, i32 0, i32 37
  %190 = load i32, ptr %11, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [100 x double], ptr %189, i64 0, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !11
  %194 = fsub double %187, %193
  %195 = load ptr, ptr %8, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.precision, ptr %195, i32 0, i32 150
  %197 = load double, ptr %196, align 8, !tbaa !24
  %198 = load ptr, ptr %9, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.perturbs, ptr %198, i32 0, i32 37
  %200 = load i32, ptr %11, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [100 x double], ptr %199, i64 0, i64 %201
  %203 = load double, ptr %202, align 8, !tbaa !11
  %204 = fmul double %197, %203
  %205 = fdiv double %194, %204
  %206 = call double @tanh(double noundef %205) #5
  %207 = fsub double 1.000000e+00, %206
  %208 = fdiv double %207, 2.000000e+00
  %209 = load ptr, ptr %13, align 8, !tbaa !5
  store double %208, ptr %209, align 8, !tbaa !11
  %210 = load ptr, ptr %10, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.transfers, ptr %210, i32 0, i32 5
  %212 = load i16, ptr %211, align 8, !tbaa !16
  %213 = sext i16 %212 to i32
  %214 = icmp eq i32 %213, 1
  br i1 %214, label %221, label %215

215:                                              ; preds = %186
  %216 = load ptr, ptr %10, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.transfers, ptr %216, i32 0, i32 6
  %218 = load i16, ptr %217, align 2, !tbaa !19
  %219 = sext i16 %218 to i32
  %220 = icmp eq i32 %219, 1
  br i1 %220, label %221, label %276

221:                                              ; preds = %215, %186
  %222 = load ptr, ptr %10, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.transfers, ptr %222, i32 0, i32 5
  %224 = load i16, ptr %223, align 8, !tbaa !16
  %225 = sext i16 %224 to i32
  %226 = icmp eq i32 %225, 1
  br i1 %226, label %227, label %256

227:                                              ; preds = %221
  %228 = load ptr, ptr %10, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.transfers, ptr %228, i32 0, i32 9
  %230 = load ptr, ptr %229, align 8, !tbaa !20
  %231 = load ptr, ptr %10, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.transfers, ptr %231, i32 0, i32 8
  %233 = load i32, ptr %232, align 4, !tbaa !21
  %234 = load ptr, ptr %10, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.transfers, ptr %234, i32 0, i32 10
  %236 = load ptr, ptr %235, align 8, !tbaa !22
  %237 = load ptr, ptr %10, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.transfers, ptr %237, i32 0, i32 11
  %239 = load ptr, ptr %238, align 8, !tbaa !23
  %240 = load double, ptr %12, align 8, !tbaa !11
  %241 = load ptr, ptr %10, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.transfers, ptr %241, i32 0, i32 52
  %243 = getelementptr inbounds [2048 x i8], ptr %242, i64 0, i64 0
  %244 = call i32 @array_interpolate_spline(ptr noundef %230, i32 noundef %233, ptr noundef %236, ptr noundef %239, i32 noundef 1, double noundef %240, ptr noundef %17, ptr noundef %15, i32 noundef 1, ptr noundef %243)
  %245 = icmp eq i32 %244, 1
  br i1 %245, label %246, label %255

246:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 2048, ptr %23) #5
  %247 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  %248 = load ptr, ptr %10, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.transfers, ptr %248, i32 0, i32 52
  %250 = getelementptr inbounds [2048 x i8], ptr %249, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %247, ptr noundef @.str, ptr noundef @.str.76, ptr noundef %250)
  %251 = load ptr, ptr %10, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.transfers, ptr %251, i32 0, i32 52
  %253 = getelementptr inbounds [2048 x i8], ptr %252, i64 0, i64 0
  %254 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %253, ptr noundef @.str.2, ptr noundef @__func__.transfer_selection_function, i32 noundef 2526, ptr noundef %254)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %23) #5
  store i32 1, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %285

255:                                              ; preds = %227
  br label %271

256:                                              ; preds = %221
  %257 = load ptr, ptr %10, align 8, !tbaa !5
  %258 = load double, ptr %12, align 8, !tbaa !11
  %259 = call i32 @transfer_dNdz_analytic(ptr noundef %257, double noundef %258, ptr noundef %15, ptr noundef %16)
  %260 = icmp eq i32 %259, 1
  br i1 %260, label %261, label %270

261:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #5
  %262 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  %263 = load ptr, ptr %10, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.transfers, ptr %263, i32 0, i32 52
  %265 = getelementptr inbounds [2048 x i8], ptr %264, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %262, ptr noundef @.str, ptr noundef @.str.77, ptr noundef %265)
  %266 = load ptr, ptr %10, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.transfers, ptr %266, i32 0, i32 52
  %268 = getelementptr inbounds [2048 x i8], ptr %267, i64 0, i64 0
  %269 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %268, ptr noundef @.str.2, ptr noundef @__func__.transfer_selection_function, i32 noundef 2535, ptr noundef %269)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #5
  store i32 1, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %285

270:                                              ; preds = %256
  br label %271

271:                                              ; preds = %270, %255
  %272 = load double, ptr %15, align 8, !tbaa !11
  %273 = load ptr, ptr %13, align 8, !tbaa !5
  %274 = load double, ptr %273, align 8, !tbaa !11
  %275 = fmul double %274, %272
  store double %275, ptr %273, align 8, !tbaa !11
  br label %276

276:                                              ; preds = %271, %215
  store i32 0, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %285

277:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 2048, ptr %25) #5
  %278 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %278, ptr noundef @.str.78)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %26) #5
  %279 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  %280 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %279, ptr noundef @.str.52, ptr noundef %280)
  %281 = load ptr, ptr %10, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.transfers, ptr %281, i32 0, i32 52
  %283 = getelementptr inbounds [2048 x i8], ptr %282, i64 0, i64 0
  %284 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %283, ptr noundef @.str.2, ptr noundef @__func__.transfer_selection_function, i32 noundef 2546, ptr noundef %284)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %26) #5
  store i32 1, ptr %7, align 4
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %25) #5
  br label %285

285:                                              ; preds = %277, %276, %261, %246, %180, %165, %150, %107, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %286 = load i32, ptr %7, align 4
  ret i32 %286
}

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

; Function Attrs: nounwind
declare double @exp(double noundef) #2

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

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

; Function Attrs: nounwind
declare double @tanh(double noundef) #2

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 "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 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 92}
!14 = !{!"perturbs", !15, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !15, i64 8, !15, i64 10, !15, i64 12, !15, i64 14, !15, i64 16, !15, i64 18, !15, i64 20, !10, i64 24, !15, i64 28, !15, i64 30, !15, i64 32, !15, i64 34, !15, i64 36, !15, i64 38, !15, i64 40, !15, i64 42, !15, i64 44, !15, i64 46, !15, i64 48, !15, i64 50, !15, i64 52, !15, i64 54, !15, i64 56, !15, i64 58, !15, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !12, i64 80, !10, i64 88, !10, i64 92, !7, i64 96, !7, i64 896, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !12, i64 1720, !10, i64 1728, !10, i64 1732, !7, i64 1736, !12, i64 1976, !12, i64 1984, !12, i64 1992, !6, i64 2000, !6, i64 2008, !10, i64 2016, !15, i64 2020, !15, i64 2022, !10, i64 2024, !10, i64 2028, !10, i64 2032, !10, i64 2036, !10, i64 2040, !10, i64 2044, !10, i64 2048, !10, i64 2052, !10, i64 2056, !10, i64 2060, !10, i64 2064, !6, i64 2072, !15, i64 2080, !15, i64 2082, !15, i64 2084, !15, i64 2086, !15, i64 2088, !15, i64 2090, !15, i64 2092, !15, i64 2094, !15, i64 2096, !15, i64 2098, !15, i64 2100, !15, i64 2102, !15, i64 2104, !15, i64 2106, !15, i64 2108, !15, i64 2110, !15, i64 2112, !15, i64 2114, !15, i64 2116, !15, i64 2118, !15, i64 2120, !15, i64 2122, !15, i64 2124, !15, i64 2126, !15, i64 2128, !15, i64 2130, !15, i64 2132, !15, i64 2134, !15, i64 2136, !15, i64 2138, !15, i64 2140, !15, i64 2142, !15, i64 2144, !15, i64 2146, !15, i64 2148, !15, i64 2150, !15, i64 2152, !15, i64 2154, !15, i64 2156, !15, i64 2158, !10, i64 2160, !10, i64 2164, !10, i64 2168, !10, i64 2172, !10, i64 2176, !10, i64 2180, !10, i64 2184, !10, i64 2188, !10, i64 2192, !10, i64 2196, !10, i64 2200, !10, i64 2204, !10, 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, !10, i64 2284, !10, i64 2288, !10, i64 2292, !10, i64 2296, !10, i64 2300, !10, i64 2304, !10, i64 2308, !10, i64 2312, !10, i64 2316, !10, i64 2320, !10, i64 2324, !10, i64 2328, !10, i64 2332, !6, i64 2336, !6, i64 2344, !6, i64 2352, !6, i64 2360, !6, i64 2368, !12, i64 2376, !12, i64 2384, !6, i64 2392, !10, i64 2400, !12, i64 2408, !12, i64 2416, !12, i64 2424, !6, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !10, i64 2480, !6, i64 2488, !6, i64 2496, !6, i64 2504, !7, i64 2512, !7, i64 10512, !7, i64 18512, !10, i64 26512, !10, i64 26516, !10, i64 26520, !7, i64 26528, !7, i64 26768, !7, i64 27008, !7, i64 27248, !7, i64 27368, !7, i64 27488, !15, i64 27608, !7, i64 27610}
!15 = !{!"short", !7, i64 0}
!16 = !{!17, !15, i64 1624}
!17 = !{!"transfers", !12, i64 0, !12, i64 8, !12, i64 16, !7, i64 24, !7, i64 824, !15, i64 1624, !15, i64 1626, !7, i64 1628, !10, i64 1884, !6, i64 1888, !6, i64 1896, !6, i64 1904, !15, i64 1912, !15, i64 1914, !7, i64 1916, !10, i64 2172, !6, i64 2176, !6, i64 2184, !6, i64 2192, !6, i64 2200, !15, 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, !18, i64 2336, !6, i64 2344, !6, i64 2352, !10, i64 2360, !6, i64 2368, !15, i64 2376, !15, i64 2378, !7, i64 2380}
!18 = !{!"long", !7, i64 0}
!19 = !{!17, !15, i64 1626}
!20 = !{!17, !6, i64 1888}
!21 = !{!17, !10, i64 1884}
!22 = !{!17, !6, i64 1896}
!23 = !{!17, !6, i64 1904}
!24 = !{!25, !12, i64 2152}
!25 = !{!"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}


; 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.52 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [146 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [50 x i8], align 1
@__func__.transfer_selection_function = external hidden unnamed_addr constant [28 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [37 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: nounwind uwtable
define dso_local range(i32 0, 2) i32 @transfer_selection_function(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef %2, i32 noundef %3, double noundef %4, ptr nocapture noundef %5) local_unnamed_addr #2 {
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %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
  %16 = alloca [2048 x i8], align 16
  %17 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  %18 = getelementptr inbounds i8, ptr %1, i64 92
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = icmp eq i32 %19, 2
  br i1 %20, label %21, label %22

21:                                               ; preds = %6
  store double 1.000000e+00, ptr %5, align 8, !tbaa !13
  br label %113

22:                                               ; preds = %6
  %23 = getelementptr inbounds i8, ptr %1, i64 96
  %24 = sext i32 %3 to i64
  %25 = getelementptr inbounds [100 x double], ptr %23, i64 0, i64 %24
  %26 = load double, ptr %25, align 8, !tbaa !13
  %27 = fsub double %4, %26
  %28 = tail call double @llvm.fabs.f64(double %27)
  switch i32 %19, label %111 [
    i32 0, label %29
    i32 1, label %70
  ]

29:                                               ; preds = %22
  %30 = getelementptr inbounds i8, ptr %1, i64 896
  %31 = getelementptr inbounds [100 x double], ptr %30, i64 0, i64 %24
  %32 = load double, ptr %31, align 8, !tbaa !13
  %33 = fdiv double %28, %32
  %square = fmul double %33, %33
  %34 = fmul double %square, -5.000000e-01
  %35 = tail call double @exp(double noundef %34) #5
  %36 = load double, ptr %31, align 8, !tbaa !13
  %37 = fdiv double %35, %36
  %38 = fdiv double %37, 0x40040D931FF62705
  store double %38, ptr %5, align 8, !tbaa !13
  %39 = getelementptr inbounds i8, ptr %2, i64 1624
  %40 = load i16, ptr %39, align 8, !tbaa !14
  %41 = icmp eq i16 %40, 1
  br i1 %41, label %46, label %42

42:                                               ; preds = %29
  %43 = getelementptr inbounds i8, ptr %2, i64 1626
  %44 = load i16, ptr %43, align 2, !tbaa !17
  %45 = icmp eq i16 %44, 1
  br i1 %45, label %61, label %113

46:                                               ; preds = %29
  %47 = getelementptr inbounds i8, ptr %2, i64 1888
  %48 = load ptr, ptr %47, align 8, !tbaa !18
  %49 = load double, ptr %48, align 8, !tbaa !13
  %50 = fcmp ogt double %49, %4
  %.phi.trans.insert = getelementptr inbounds i8, ptr %2, i64 1884
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !19
  %.phi.trans.insert66 = sext i32 %.pre to i64
  %.phi.trans.insert67 = getelementptr double, ptr %48, i64 %.phi.trans.insert66
  %.phi.trans.insert68 = getelementptr i8, ptr %.phi.trans.insert67, i64 -8
  %.pre69 = load double, ptr %.phi.trans.insert68, align 8, !tbaa !13
  %51 = fcmp olt double %.pre69, %4
  %or.cond = select i1 %50, i1 true, i1 %51
  %52 = getelementptr inbounds i8, ptr %2, i64 2380
  br i1 %or.cond, label %._crit_edge, label %53

._crit_edge:                                      ; preds = %46
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.74, double noundef %49, double noundef %.pre69, double noundef %4) #5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.75, ptr noundef nonnull %10) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %52, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_selection_function, i32 noundef 2459, ptr noundef nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #5
  br label %113

53:                                               ; preds = %46
  %54 = getelementptr inbounds i8, ptr %2, i64 1896
  %55 = load ptr, ptr %54, align 8, !tbaa !20
  %56 = getelementptr inbounds i8, ptr %2, i64 1904
  %57 = load ptr, ptr %56, align 8, !tbaa !21
  %58 = call i32 @array_interpolate_spline(ptr noundef nonnull %48, i32 noundef %.pre, ptr noundef %55, ptr noundef %57, i32 noundef 1, double noundef %4, ptr noundef nonnull %9, ptr noundef nonnull %7, i32 noundef 1, ptr noundef nonnull %52) #5
  %59 = icmp eq i32 %58, 1
  br i1 %59, label %60, label %66

60:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str, ptr noundef nonnull @.str.76, ptr noundef nonnull %52) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %52, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_selection_function, i32 noundef 2473, ptr noundef nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #5
  br label %113

61:                                               ; preds = %42
  %62 = call i32 @transfer_dNdz_analytic(ptr noundef nonnull %2, double noundef %4, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %63 = icmp eq i32 %62, 1
  br i1 %63, label %64, label %66

64:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #5
  %65 = getelementptr inbounds i8, ptr %2, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str, ptr noundef nonnull @.str.77, ptr noundef nonnull %65) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %65, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_selection_function, i32 noundef 2482, ptr noundef nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #5
  br label %113

66:                                               ; preds = %61, %53
  %67 = load double, ptr %7, align 8, !tbaa !13
  %68 = load double, ptr %5, align 8, !tbaa !13
  %69 = fmul double %67, %68
  store double %69, ptr %5, align 8, !tbaa !13
  br label %113

70:                                               ; preds = %22
  %71 = getelementptr inbounds i8, ptr %1, i64 896
  %72 = getelementptr inbounds [100 x double], ptr %71, i64 0, i64 %24
  %73 = load double, ptr %72, align 8, !tbaa !13
  %74 = fsub double %28, %73
  %75 = getelementptr inbounds i8, ptr %0, i64 2152
  %76 = load double, ptr %75, align 8, !tbaa !22
  %77 = fmul double %73, %76
  %78 = fdiv double %74, %77
  %79 = tail call double @tanh(double noundef %78) #5
  %80 = fsub double 1.000000e+00, %79
  %81 = fmul double %80, 5.000000e-01
  store double %81, ptr %5, align 8, !tbaa !13
  %82 = getelementptr inbounds i8, ptr %2, i64 1624
  %83 = load i16, ptr %82, align 8, !tbaa !14
  %84 = icmp eq i16 %83, 1
  br i1 %84, label %89, label %85

85:                                               ; preds = %70
  %86 = getelementptr inbounds i8, ptr %2, i64 1626
  %87 = load i16, ptr %86, align 2, !tbaa !17
  %88 = icmp eq i16 %87, 1
  br i1 %88, label %102, label %113

89:                                               ; preds = %70
  %90 = getelementptr inbounds i8, ptr %2, i64 1888
  %91 = load ptr, ptr %90, align 8, !tbaa !18
  %92 = getelementptr inbounds i8, ptr %2, i64 1884
  %93 = load i32, ptr %92, align 4, !tbaa !19
  %94 = getelementptr inbounds i8, ptr %2, i64 1896
  %95 = load ptr, ptr %94, align 8, !tbaa !20
  %96 = getelementptr inbounds i8, ptr %2, i64 1904
  %97 = load ptr, ptr %96, align 8, !tbaa !21
  %98 = getelementptr inbounds i8, ptr %2, i64 2380
  %99 = call i32 @array_interpolate_spline(ptr noundef %91, i32 noundef %93, ptr noundef %95, ptr noundef %97, i32 noundef 1, double noundef %4, ptr noundef nonnull %9, ptr noundef nonnull %7, i32 noundef 1, ptr noundef nonnull %98) #5
  %100 = icmp eq i32 %99, 1
  br i1 %100, label %101, label %107

101:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str, ptr noundef nonnull @.str.76, ptr noundef nonnull %98) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %98, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_selection_function, i32 noundef 2526, ptr noundef nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #5
  br label %113

102:                                              ; preds = %85
  %103 = call i32 @transfer_dNdz_analytic(ptr noundef nonnull %2, double noundef %4, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %104 = icmp eq i32 %103, 1
  br i1 %104, label %105, label %107

105:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %15) #5
  %106 = getelementptr inbounds i8, ptr %2, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str, ptr noundef nonnull @.str.77, ptr noundef nonnull %106) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %106, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_selection_function, i32 noundef 2535, ptr noundef nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #5
  br label %113

107:                                              ; preds = %102, %89
  %108 = load double, ptr %7, align 8, !tbaa !13
  %109 = load double, ptr %5, align 8, !tbaa !13
  %110 = fmul double %108, %109
  store double %110, ptr %5, align 8, !tbaa !13
  br label %113

111:                                              ; preds = %22
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %16) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %16, ptr noundef nonnull @.str.78) #5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %17) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %17, ptr noundef nonnull @.str.52, ptr noundef nonnull %16) #5
  %112 = getelementptr inbounds i8, ptr %2, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %112, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_selection_function, i32 noundef 2546, ptr noundef nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %16) #5
  br label %113

113:                                              ; preds = %85, %107, %42, %66, %111, %105, %101, %64, %60, %._crit_edge, %21
  %.0 = phi i32 [ 0, %21 ], [ 1, %._crit_edge ], [ 1, %60 ], [ 1, %64 ], [ 1, %101 ], [ 1, %105 ], [ 1, %111 ], [ 0, %66 ], [ 0, %42 ], [ 0, %107 ], [ 0, %85 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  ret i32 %.0
}

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

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

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

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

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

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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, !10, i64 92}
!6 = !{!"perturbs", !7, i64 0, !7, i64 2, !7, i64 4, !7, i64 6, !7, i64 8, !7, i64 10, !7, i64 12, !7, i64 14, !7, i64 16, !7, i64 18, !7, i64 20, !10, i64 24, !7, i64 28, !7, i64 30, !7, i64 32, !7, i64 34, !7, i64 36, !7, i64 38, !7, i64 40, !7, i64 42, !7, i64 44, !7, i64 46, !7, i64 48, !7, i64 50, !7, i64 52, !7, i64 54, !7, i64 56, !7, i64 58, !7, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !11, i64 80, !10, i64 88, !10, i64 92, !8, i64 96, !8, i64 896, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !11, i64 1720, !10, i64 1728, !10, i64 1732, !8, i64 1736, !11, i64 1976, !11, i64 1984, !11, i64 1992, !12, i64 2000, !12, i64 2008, !10, i64 2016, !7, i64 2020, !7, i64 2022, !10, i64 2024, !10, i64 2028, !10, i64 2032, !10, i64 2036, !10, i64 2040, !10, i64 2044, !10, i64 2048, !10, i64 2052, !10, i64 2056, !10, i64 2060, !10, i64 2064, !12, i64 2072, !7, i64 2080, !7, i64 2082, !7, i64 2084, !7, i64 2086, !7, i64 2088, !7, i64 2090, !7, i64 2092, !7, i64 2094, !7, i64 2096, !7, i64 2098, !7, i64 2100, !7, i64 2102, !7, i64 2104, !7, i64 2106, !7, i64 2108, !7, i64 2110, !7, i64 2112, !7, i64 2114, !7, i64 2116, !7, i64 2118, !7, i64 2120, !7, i64 2122, !7, i64 2124, !7, i64 2126, !7, i64 2128, !7, i64 2130, !7, i64 2132, !7, i64 2134, !7, i64 2136, !7, i64 2138, !7, i64 2140, !7, i64 2142, !7, i64 2144, !7, i64 2146, !7, i64 2148, !7, i64 2150, !7, i64 2152, !7, i64 2154, !7, i64 2156, !7, i64 2158, !10, i64 2160, !10, i64 2164, !10, i64 2168, !10, i64 2172, !10, i64 2176, !10, i64 2180, !10, i64 2184, !10, i64 2188, !10, i64 2192, !10, i64 2196, !10, i64 2200, !10, i64 2204, !10, 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, !10, i64 2284, !10, i64 2288, !10, i64 2292, !10, i64 2296, !10, i64 2300, !10, i64 2304, !10, i64 2308, !10, i64 2312, !10, i64 2316, !10, i64 2320, !10, i64 2324, !10, i64 2328, !10, i64 2332, !12, i64 2336, !12, i64 2344, !12, i64 2352, !12, i64 2360, !12, i64 2368, !11, i64 2376, !11, i64 2384, !12, i64 2392, !10, i64 2400, !11, i64 2408, !11, i64 2416, !11, i64 2424, !12, i64 2432, !12, i64 2440, !12, i64 2448, !12, i64 2456, !12, i64 2464, !12, i64 2472, !10, i64 2480, !12, i64 2488, !12, i64 2496, !12, i64 2504, !8, i64 2512, !8, i64 10512, !8, i64 18512, !10, i64 26512, !10, i64 26516, !10, i64 26520, !8, i64 26528, !8, i64 26768, !8, i64 27008, !8, i64 27248, !8, i64 27368, !8, i64 27488, !7, i64 27608, !8, i64 27610}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !7, i64 1624}
!15 = !{!"transfers", !11, i64 0, !11, i64 8, !11, i64 16, !8, i64 24, !8, i64 824, !7, i64 1624, !7, i64 1626, !8, i64 1628, !10, i64 1884, !12, i64 1888, !12, i64 1896, !12, i64 1904, !7, i64 1912, !7, i64 1914, !8, i64 1916, !10, i64 2172, !12, i64 2176, !12, i64 2184, !12, i64 2192, !12, i64 2200, !7, 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, !12, i64 2288, !12, i64 2296, !12, i64 2304, !10, i64 2312, !12, i64 2320, !11, i64 2328, !16, i64 2336, !12, i64 2344, !12, i64 2352, !10, i64 2360, !12, i64 2368, !7, i64 2376, !7, i64 2378, !8, i64 2380}
!16 = !{!"long", !8, i64 0}
!17 = !{!15, !7, i64 1626}
!18 = !{!15, !12, i64 1888}
!19 = !{!15, !10, i64 1884}
!20 = !{!15, !12, i64 1896}
!21 = !{!15, !12, i64 1904}
!22 = !{!23, !11, i64 2152}
!23 = !{!"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, !8, i64 104, !11, i64 360, !10, i64 368, !11, i64 376, !10, i64 384, !10, i64 388, !11, i64 392, !10, i64 400, !11, i64 408, !10, 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, !10, i64 624, !8, i64 628, !8, i64 884, !8, 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, !10, i64 1528, !11, i64 1536, !11, 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, !11, i64 1584, !11, i64 1592, !11, i64 1600, !11, i64 1608, !11, i64 1616, !11, i64 1624, !11, i64 1632, !11, i64 1640, !10, i64 1648, !11, i64 1656, !11, i64 1664, !10, i64 1672, !11, i64 1680, !11, i64 1688, !10, i64 1696, !11, i64 1704, !10, i64 1712, !11, i64 1720, !11, i64 1728, !10, i64 1736, !11, i64 1744, !11, i64 1752, !11, i64 1760, !10, i64 1768, !11, i64 1776, !11, i64 1784, !11, i64 1792, !11, i64 1800, !11, i64 1808, !10, i64 1816, !11, i64 1824, !11, i64 1832, !11, i64 1840, !11, i64 1848, !11, i64 1856, !11, i64 1864, !11, i64 1872, !10, 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, !10, i64 2256, !11, i64 2264, !11, i64 2272, !11, i64 2280, !11, i64 2288, !10, i64 2296, !11, i64 2304, !11, i64 2312, !10, i64 2320, !10, i64 2324, !10, i64 2328, !11, i64 2336, !11, i64 2344, !8, i64 2352}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass