; 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.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.background = type { double, double, double, double, double, double, double, i32, double, double, double, double, i16, double, double, double, double, double, double, double, double, double, i16, double, double, ptr, i32, i32, double, i32, ptr, ptr, double, ptr, double, ptr, double, ptr, double, ptr, ptr, ptr, double, double, double, double, i32, ptr, double, double, double, double, double, double, double, double, double, double, double, 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, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i16, i16, i16, i16, i16, i16, [2048 x i8], i16, [2048 x i8] }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [146 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [62 x i8], align 1
@__func__.transfer_f_evo = external hidden unnamed_addr constant [15 x i8], align 1
@.str.169 = external hidden unnamed_addr constant [160 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 uwtable
define dso_local i32 @transfer_f_evo(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 double, align 8
  %18 = alloca [2048 x i8], align 16
  %19 = alloca [2048 x i8], align 16
  %20 = alloca i32, align 4
  %21 = alloca [2048 x i8], align 16
  %22 = 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) #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
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.transfers, ptr %23, i32 0, i32 12
  %25 = load i16, ptr %24, align 8, !tbaa !13
  %26 = sext i16 %25 to i32
  %27 = icmp eq i32 %26, 1
  br i1 %27, label %34, label %28

28:                                               ; preds = %6
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.transfers, ptr %29, i32 0, i32 13
  %31 = load i16, ptr %30, align 2, !tbaa !17
  %32 = sext i16 %31 to i32
  %33 = icmp eq i32 %32, 1
  br i1 %33, label %34, label %202

34:                                               ; preds = %28, %6
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.background, ptr %36, i32 0, i32 60
  %38 = load i32, ptr %37, align 4, !tbaa !18
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds double, ptr %35, i64 %39
  %41 = load double, ptr %40, align 8, !tbaa !11
  %42 = fdiv double 2.000000e+00, %41
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.background, ptr %44, i32 0, i32 59
  %46 = load i32, ptr %45, align 8, !tbaa !20
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds double, ptr %43, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !11
  %50 = fdiv double %42, %49
  %51 = load double, ptr %12, align 8, !tbaa !11
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.background, ptr %53, i32 0, i32 61
  %55 = load i32, ptr %54, align 8, !tbaa !21
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds double, ptr %52, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !11
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.background, ptr %60, i32 0, i32 60
  %62 = load i32, ptr %61, align 4, !tbaa !18
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %59, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !11
  %66 = fdiv double %58, %65
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.background, ptr %68, i32 0, i32 60
  %70 = load i32, ptr %69, align 4, !tbaa !18
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds double, ptr %67, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = fdiv double %66, %73
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.background, ptr %76, i32 0, i32 59
  %78 = load i32, ptr %77, align 8, !tbaa !20
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds double, ptr %75, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !11
  %82 = fdiv double %74, %81
  %83 = call double @llvm.fmuladd.f64(double %50, double %51, double %82)
  store double %83, ptr %17, align 8, !tbaa !11
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.background, ptr %84, i32 0, i32 58
  %86 = load double, ptr %85, align 8, !tbaa !22
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.background, ptr %88, i32 0, i32 59
  %90 = load i32, ptr %89, align 8, !tbaa !20
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %87, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !11
  %94 = fdiv double %86, %93
  %95 = fsub double %94, 1.000000e+00
  store double %95, ptr %14, align 8, !tbaa !11
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.transfers, ptr %96, i32 0, i32 12
  %98 = load i16, ptr %97, align 8, !tbaa !13
  %99 = sext i16 %98 to i32
  %100 = icmp eq i32 %99, 1
  br i1 %100, label %101, label %175

101:                                              ; preds = %34
  %102 = load double, ptr %14, align 8, !tbaa !11
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.transfers, ptr %103, i32 0, i32 16
  %105 = load ptr, ptr %104, align 8, !tbaa !23
  %106 = getelementptr inbounds double, ptr %105, i64 0
  %107 = load double, ptr %106, align 8, !tbaa !11
  %108 = fcmp olt double %102, %107
  br i1 %108, label %122, label %109

109:                                              ; preds = %101
  %110 = load double, ptr %14, align 8, !tbaa !11
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.transfers, ptr %111, i32 0, i32 16
  %113 = load ptr, ptr %112, align 8, !tbaa !23
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.transfers, ptr %114, i32 0, i32 15
  %116 = load i32, ptr %115, align 4, !tbaa !24
  %117 = sub nsw i32 %116, 1
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds double, ptr %113, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !11
  %121 = fcmp ogt double %110, %120
  br i1 %121, label %122, label %146

122:                                              ; preds = %109, %101
  call void @llvm.lifetime.start.p0(i64 2048, ptr %18) #4
  %123 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.transfers, ptr %124, i32 0, i32 16
  %126 = load ptr, ptr %125, align 8, !tbaa !23
  %127 = getelementptr inbounds double, ptr %126, i64 0
  %128 = load double, ptr %127, align 8, !tbaa !11
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.transfers, ptr %129, i32 0, i32 16
  %131 = load ptr, ptr %130, align 8, !tbaa !23
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.transfers, ptr %132, i32 0, i32 15
  %134 = load i32, ptr %133, align 4, !tbaa !24
  %135 = sub nsw i32 %134, 1
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %131, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !11
  %139 = load double, ptr %14, align 8, !tbaa !11
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %123, ptr noundef @.str.74, double noundef %128, double noundef %138, double noundef %139)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %19) #4
  %140 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  %141 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %140, ptr noundef @.str.42, ptr noundef @.str.168, ptr noundef %141)
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.transfers, ptr %142, i32 0, i32 52
  %144 = getelementptr inbounds [2048 x i8], ptr %143, i64 0, i64 0
  %145 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %144, ptr noundef @.str.2, ptr noundef @__func__.transfer_f_evo, i32 noundef 5089, ptr noundef %145)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %18) #4
  store i32 1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %206

146:                                              ; preds = %109
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.transfers, ptr %147, i32 0, i32 16
  %149 = load ptr, ptr %148, align 8, !tbaa !23
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.transfers, ptr %150, i32 0, i32 15
  %152 = load i32, ptr %151, align 4, !tbaa !24
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.transfers, ptr %153, i32 0, i32 18
  %155 = load ptr, ptr %154, align 8, !tbaa !25
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.transfers, ptr %156, i32 0, i32 19
  %158 = load ptr, ptr %157, align 8, !tbaa !26
  %159 = load double, ptr %14, align 8, !tbaa !11
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.transfers, ptr %160, i32 0, i32 52
  %162 = getelementptr inbounds [2048 x i8], ptr %161, i64 0, i64 0
  %163 = call i32 @array_interpolate_spline(ptr noundef %149, i32 noundef %152, ptr noundef %155, ptr noundef %158, i32 noundef 1, double noundef %159, ptr noundef %11, ptr noundef %16, i32 noundef 1, ptr noundef %162)
  %164 = icmp eq i32 %163, 1
  br i1 %164, label %165, label %174

165:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 2048, ptr %21) #4
  %166 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  %167 = load ptr, ptr %9, 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.169, ptr noundef %169)
  %170 = load ptr, ptr %9, 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 %21, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %172, ptr noundef @.str.2, ptr noundef @__func__.transfer_f_evo, i32 noundef 5104, ptr noundef %173)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %21) #4
  store i32 1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %206

174:                                              ; preds = %146
  br label %190

175:                                              ; preds = %34
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = load double, ptr %14, align 8, !tbaa !11
  %178 = call i32 @transfer_dNdz_analytic(ptr noundef %176, double noundef %177, ptr noundef %15, ptr noundef %16)
  %179 = icmp eq i32 %178, 1
  br i1 %179, label %180, label %189

180:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 2048, ptr %22) #4
  %181 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  %182 = load ptr, ptr %9, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.transfers, ptr %182, i32 0, i32 52
  %184 = getelementptr inbounds [2048 x i8], ptr %183, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %181, ptr noundef @.str, ptr noundef @.str.77, ptr noundef %184)
  %185 = load ptr, ptr %9, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.transfers, ptr %185, i32 0, i32 52
  %187 = getelementptr inbounds [2048 x i8], ptr %186, i64 0, i64 0
  %188 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %187, ptr noundef @.str.2, ptr noundef @__func__.transfer_f_evo, i32 noundef 5114, ptr noundef %188)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %22) #4
  store i32 1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %206

189:                                              ; preds = %175
  br label %190

190:                                              ; preds = %189, %174
  %191 = load double, ptr %16, align 8, !tbaa !11
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = load ptr, ptr %8, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.background, ptr %193, i32 0, i32 59
  %195 = load i32, ptr %194, align 8, !tbaa !20
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds double, ptr %192, i64 %196
  %198 = load double, ptr %197, align 8, !tbaa !11
  %199 = fdiv double %191, %198
  %200 = load double, ptr %17, align 8, !tbaa !11
  %201 = fsub double %200, %199
  store double %201, ptr %17, align 8, !tbaa !11
  br label %203

202:                                              ; preds = %28
  store double 0.000000e+00, ptr %17, align 8, !tbaa !11
  br label %203

203:                                              ; preds = %202, %190
  %204 = load double, ptr %17, align 8, !tbaa !11
  %205 = load ptr, ptr %13, align 8, !tbaa !5
  store double %204, ptr %205, align 8, !tbaa !11
  store i32 0, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %206

206:                                              ; preds = %203, %180, %165, %122
  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 8, ptr %14) #4
  %207 = load i32, ptr %7, align 4
  ret i32 %207
}

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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, !15, i64 1912}
!14 = !{!"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, !16, i64 2336, !6, i64 2344, !6, i64 2352, !10, i64 2360, !6, i64 2368, !15, i64 2376, !15, i64 2378, !7, i64 2380}
!15 = !{!"short", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!14, !15, i64 1914}
!18 = !{!19, !10, i64 468}
!19 = !{!"background", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !10, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !15, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !15, i64 176, !12, i64 184, !12, i64 192, !6, i64 200, !10, i64 208, !10, i64 212, !12, i64 216, !10, i64 224, !6, i64 232, !6, i64 240, !12, i64 248, !6, i64 256, !12, i64 264, !6, i64 272, !12, i64 280, !6, i64 288, !12, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !12, i64 328, !12, i64 336, !12, i64 344, !12, i64 352, !10, i64 360, !6, i64 368, !12, i64 376, !12, i64 384, !12, i64 392, !12, i64 400, !12, i64 408, !12, i64 416, !12, i64 424, !12, i64 432, !12, i64 440, !12, i64 448, !12, i64 456, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !10, i64 548, !10, i64 552, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !10, i64 592, !10, i64 596, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !10, i64 616, !10, i64 620, !10, i64 624, !10, i64 628, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !10, i64 672, !10, i64 676, !10, i64 680, !10, i64 684, !10, i64 688, !10, i64 692, !10, i64 696, !10, i64 700, !10, i64 704, !10, i64 708, !10, i64 712, !10, i64 716, !10, i64 720, !15, i64 724, !15, i64 726, !15, i64 728, !15, i64 730, !15, i64 732, !15, i64 734, !15, i64 736, !15, i64 738, !15, i64 740, !15, i64 742, !15, i64 744, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !15, i64 840, !15, i64 842, !15, i64 844, !15, i64 846, !15, i64 848, !15, i64 850, !7, i64 852, !15, i64 2900, !7, i64 2902}
!20 = !{!19, !10, i64 464}
!21 = !{!19, !10, i64 472}
!22 = !{!19, !12, i64 456}
!23 = !{!14, !6, i64 2176}
!24 = !{!14, !10, i64 2172}
!25 = !{!14, !6, i64 2192}
!26 = !{!14, !6, i64 2200}


; 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.74 = external hidden unnamed_addr constant [146 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [62 x i8], align 1
@__func__.transfer_f_evo = external hidden unnamed_addr constant [15 x i8], align 1
@.str.169 = external hidden unnamed_addr constant [160 x i8], align 1

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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) 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 #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @transfer_f_evo(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3, double noundef %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #3 {
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %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
  store i32 %3, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %14 = getelementptr inbounds i8, ptr %1, i64 1912
  %15 = load i16, ptr %14, align 8, !tbaa !9
  %16 = icmp eq i16 %15, 1
  br i1 %16, label %21, label %17

17:                                               ; preds = %6
  %18 = getelementptr inbounds i8, ptr %1, i64 1914
  %19 = load i16, ptr %18, align 2, !tbaa !15
  %20 = icmp eq i16 %19, 1
  br i1 %20, label %21, label %75

21:                                               ; preds = %17, %6
  %22 = getelementptr inbounds i8, ptr %0, i64 468
  %23 = load i32, ptr %22, align 4, !tbaa !16
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds double, ptr %2, i64 %24
  %26 = load double, ptr %25, align 8, !tbaa !18
  %27 = fdiv double 2.000000e+00, %26
  %28 = getelementptr inbounds i8, ptr %0, i64 464
  %29 = load i32, ptr %28, align 8, !tbaa !19
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds double, ptr %2, i64 %30
  %32 = load double, ptr %31, align 8, !tbaa !18
  %33 = fdiv double %27, %32
  %34 = getelementptr inbounds i8, ptr %0, i64 472
  %35 = load i32, ptr %34, align 8, !tbaa !20
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds double, ptr %2, i64 %36
  %38 = load double, ptr %37, align 8, !tbaa !18
  %39 = fdiv double %38, %26
  %40 = fdiv double %39, %26
  %41 = fdiv double %40, %32
  %42 = tail call double @llvm.fmuladd.f64(double %33, double %4, double %41)
  %43 = getelementptr inbounds i8, ptr %0, i64 456
  %44 = load double, ptr %43, align 8, !tbaa !21
  %45 = fdiv double %44, %32
  %46 = fadd double %45, -1.000000e+00
  br i1 %16, label %47, label %62

47:                                               ; preds = %21
  %48 = getelementptr inbounds i8, ptr %1, i64 2176
  %49 = load ptr, ptr %48, align 8, !tbaa !22
  %50 = load double, ptr %49, align 8, !tbaa !18
  %51 = fcmp olt double %46, %50
  %.phi.trans.insert = getelementptr inbounds i8, ptr %1, i64 2172
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !23
  %.phi.trans.insert48 = sext i32 %.pre to i64
  %.phi.trans.insert49 = getelementptr double, ptr %49, i64 %.phi.trans.insert48
  %.phi.trans.insert50 = getelementptr i8, ptr %.phi.trans.insert49, i64 -8
  %.pre51 = load double, ptr %.phi.trans.insert50, align 8, !tbaa !18
  %52 = fcmp ogt double %46, %.pre51
  %or.cond = select i1 %51, i1 true, i1 %52
  %53 = getelementptr inbounds i8, ptr %1, i64 2380
  br i1 %or.cond, label %._crit_edge, label %54

._crit_edge:                                      ; preds = %47
  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.74, double noundef %50, double noundef %.pre51, double noundef %46) #4
  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.42, ptr noundef nonnull @.str.168, ptr noundef nonnull %10) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %53, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_f_evo, i32 noundef 5089, ptr noundef nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #4
  br label %76

54:                                               ; preds = %47
  %55 = getelementptr inbounds i8, ptr %1, i64 2192
  %56 = load ptr, ptr %55, align 8, !tbaa !24
  %57 = getelementptr inbounds i8, ptr %1, i64 2200
  %58 = load ptr, ptr %57, align 8, !tbaa !25
  %59 = call i32 @array_interpolate_spline(ptr noundef nonnull %49, i32 noundef %.pre, ptr noundef %56, ptr noundef %58, i32 noundef 1, double noundef %46, ptr noundef nonnull %7, ptr noundef nonnull %9, i32 noundef 1, ptr noundef nonnull %53) #4
  %60 = icmp eq i32 %59, 1
  br i1 %60, label %61, label %67

61:                                               ; preds = %54
  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.169, ptr noundef nonnull %53) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %53, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_f_evo, i32 noundef 5104, ptr noundef nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #4
  br label %76

62:                                               ; preds = %21
  %63 = call i32 @transfer_dNdz_analytic(ptr noundef nonnull %1, double noundef %46, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %64 = icmp eq i32 %63, 1
  br i1 %64, label %65, label %67

65:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #4
  %66 = getelementptr inbounds i8, ptr %1, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str, ptr noundef nonnull @.str.77, ptr noundef nonnull %66) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %66, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_f_evo, i32 noundef 5114, ptr noundef nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #4
  br label %76

67:                                               ; preds = %62, %54
  %68 = load double, ptr %9, align 8, !tbaa !18
  %69 = load i32, ptr %28, align 8, !tbaa !19
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds double, ptr %2, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !18
  %73 = fdiv double %68, %72
  %74 = fsub double %42, %73
  br label %75

75:                                               ; preds = %17, %67
  %.0 = phi double [ %74, %67 ], [ 0.000000e+00, %17 ]
  store double %.0, ptr %5, align 8, !tbaa !18
  br label %76

76:                                               ; preds = %75, %65, %61, %._crit_edge
  %.046 = phi i32 [ 1, %._crit_edge ], [ 1, %61 ], [ 0, %75 ], [ 1, %65 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  ret i32 %.046
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 1912}
!10 = !{!"transfers", !11, i64 0, !11, i64 8, !11, i64 16, !7, i64 24, !7, i64 824, !12, i64 1624, !12, i64 1626, !7, i64 1628, !6, i64 1884, !13, i64 1888, !13, i64 1896, !13, i64 1904, !12, i64 1912, !12, i64 1914, !7, i64 1916, !6, i64 2172, !13, i64 2176, !13, i64 2184, !13, i64 2192, !13, i64 2200, !12, i64 2208, !6, i64 2212, !6, i64 2216, !6, i64 2220, !6, i64 2224, !6, i64 2228, !6, i64 2232, !6, i64 2236, !6, i64 2240, !6, i64 2244, !6, i64 2248, !6, i64 2252, !6, i64 2256, !6, i64 2260, !6, i64 2264, !6, i64 2268, !6, i64 2272, !6, i64 2276, !6, i64 2280, !13, i64 2288, !13, i64 2296, !13, i64 2304, !6, i64 2312, !13, i64 2320, !11, i64 2328, !14, i64 2336, !13, i64 2344, !13, i64 2352, !6, i64 2360, !13, i64 2368, !12, i64 2376, !12, i64 2378, !7, i64 2380}
!11 = !{!"double", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!10, !12, i64 1914}
!16 = !{!17, !6, i64 468}
!17 = !{!"background", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !6, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !12, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !12, i64 176, !11, i64 184, !11, i64 192, !13, i64 200, !6, i64 208, !6, i64 212, !11, i64 216, !6, i64 224, !13, i64 232, !13, i64 240, !11, i64 248, !13, i64 256, !11, i64 264, !13, i64 272, !11, i64 280, !13, i64 288, !11, i64 296, !13, i64 304, !13, i64 312, !13, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !6, i64 360, !13, i64 368, !11, i64 376, !11, i64 384, !11, i64 392, !11, i64 400, !11, i64 408, !11, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !6, i64 464, !6, i64 468, !6, i64 472, !6, i64 476, !6, i64 480, !6, i64 484, !6, i64 488, !6, i64 492, !6, i64 496, !6, i64 500, !6, i64 504, !6, i64 508, !6, i64 512, !6, i64 516, !6, i64 520, !6, i64 524, !6, i64 528, !6, i64 532, !6, i64 536, !6, i64 540, !6, i64 544, !6, i64 548, !6, i64 552, !6, i64 556, !6, i64 560, !6, i64 564, !6, i64 568, !6, i64 572, !6, i64 576, !6, i64 580, !6, i64 584, !6, i64 588, !6, i64 592, !6, i64 596, !6, i64 600, !6, i64 604, !6, i64 608, !6, i64 612, !6, i64 616, !6, i64 620, !6, i64 624, !6, i64 628, !13, i64 632, !13, i64 640, !13, i64 648, !13, i64 656, !13, i64 664, !6, i64 672, !6, i64 676, !6, i64 680, !6, i64 684, !6, i64 688, !6, i64 692, !6, i64 696, !6, i64 700, !6, i64 704, !6, i64 708, !6, i64 712, !6, i64 716, !6, i64 720, !12, i64 724, !12, i64 726, !12, i64 728, !12, i64 730, !12, i64 732, !12, i64 734, !12, i64 736, !12, i64 738, !12, i64 740, !12, i64 742, !12, i64 744, !13, i64 752, !13, i64 760, !13, i64 768, !13, i64 776, !13, i64 784, !13, i64 792, !13, i64 800, !13, i64 808, !13, i64 816, !13, i64 824, !13, i64 832, !12, i64 840, !12, i64 842, !12, i64 844, !12, i64 846, !12, i64 848, !12, i64 850, !7, i64 852, !12, i64 2900, !7, i64 2902}
!18 = !{!11, !11, i64 0}
!19 = !{!17, !6, i64 464}
!20 = !{!17, !6, i64 472}
!21 = !{!17, !11, i64 456}
!22 = !{!10, !13, i64 2176}
!23 = !{!10, !6, i64 2172}
!24 = !{!10, !13, i64 2192}
!25 = !{!10, !13, i64 2200}


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