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

; 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.recombination = type { i32, i32, i32, i32, i32, i32, i32, i32, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i16, double, double, double, double, double, double, double }
%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] }

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

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1

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

; 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 @exp(double noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @thermodynamics_onthespot_energy_injection(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  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 double %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  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
  %17 = load double, ptr %10, align 8, !tbaa !9
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.recombination, ptr %18, i32 0, i32 33
  %20 = load double, ptr %19, align 8, !tbaa !11
  %21 = fcmp ogt double %17, %20
  br i1 %21, label %22, label %44

22:                                               ; preds = %6
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.recombination, ptr %23, i32 0, i32 28
  %25 = load double, ptr %24, align 8, !tbaa !15
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.recombination, ptr %26, i32 0, i32 31
  %28 = load double, ptr %27, align 8, !tbaa !16
  %29 = fneg double %28
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.recombination, ptr %30, i32 0, i32 32
  %32 = load double, ptr %31, align 8, !tbaa !17
  %33 = fadd double %32, 1.000000e+00
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.recombination, ptr %34, i32 0, i32 33
  %36 = load double, ptr %35, align 8, !tbaa !11
  %37 = fadd double %36, 1.000000e+00
  %38 = fdiv double %33, %37
  %39 = call double @log(double noundef %38) #4
  %40 = call double @pow(double noundef %39, double noundef 2.000000e+00) #4
  %41 = fmul double %29, %40
  %42 = call double @exp(double noundef %41) #4
  %43 = fmul double %25, %42
  store double %43, ptr %13, align 8, !tbaa !9
  br label %117

44:                                               ; preds = %6
  %45 = load double, ptr %10, align 8, !tbaa !9
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.recombination, ptr %46, i32 0, i32 34
  %48 = load double, ptr %47, align 8, !tbaa !18
  %49 = fcmp ogt double %45, %48
  br i1 %49, label %50, label %82

50:                                               ; preds = %44
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.recombination, ptr %51, i32 0, i32 28
  %53 = load double, ptr %52, align 8, !tbaa !15
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.recombination, ptr %54, i32 0, i32 31
  %56 = load double, ptr %55, align 8, !tbaa !16
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.recombination, ptr %57, i32 0, i32 32
  %59 = load double, ptr %58, align 8, !tbaa !17
  %60 = fadd double %59, 1.000000e+00
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.recombination, ptr %61, i32 0, i32 33
  %63 = load double, ptr %62, align 8, !tbaa !11
  %64 = fadd double %63, 1.000000e+00
  %65 = fdiv double %60, %64
  %66 = call double @log(double noundef %65) #4
  %67 = call double @pow(double noundef %66, double noundef 2.000000e+00) #4
  %68 = fneg double %67
  %69 = load double, ptr %10, align 8, !tbaa !9
  %70 = fadd double %69, 1.000000e+00
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.recombination, ptr %71, i32 0, i32 33
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = fadd double %73, 1.000000e+00
  %75 = fdiv double %70, %74
  %76 = call double @log(double noundef %75) #4
  %77 = call double @pow(double noundef %76, double noundef 2.000000e+00) #4
  %78 = fadd double %68, %77
  %79 = fmul double %56, %78
  %80 = call double @exp(double noundef %79) #4
  %81 = fmul double %53, %80
  store double %81, ptr %13, align 8, !tbaa !9
  br label %116

82:                                               ; preds = %44
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.recombination, ptr %83, i32 0, i32 28
  %85 = load double, ptr %84, align 8, !tbaa !15
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.recombination, ptr %86, i32 0, i32 31
  %88 = load double, ptr %87, align 8, !tbaa !16
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.recombination, ptr %89, i32 0, i32 32
  %91 = load double, ptr %90, align 8, !tbaa !17
  %92 = fadd double %91, 1.000000e+00
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.recombination, ptr %93, i32 0, i32 33
  %95 = load double, ptr %94, align 8, !tbaa !11
  %96 = fadd double %95, 1.000000e+00
  %97 = fdiv double %92, %96
  %98 = call double @log(double noundef %97) #4
  %99 = call double @pow(double noundef %98, double noundef 2.000000e+00) #4
  %100 = fneg double %99
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.recombination, ptr %101, i32 0, i32 34
  %103 = load double, ptr %102, align 8, !tbaa !18
  %104 = fadd double %103, 1.000000e+00
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.recombination, ptr %105, i32 0, i32 33
  %107 = load double, ptr %106, align 8, !tbaa !11
  %108 = fadd double %107, 1.000000e+00
  %109 = fdiv double %104, %108
  %110 = call double @log(double noundef %109) #4
  %111 = call double @pow(double noundef %110, double noundef 2.000000e+00) #4
  %112 = fadd double %100, %111
  %113 = fmul double %88, %112
  %114 = call double @exp(double noundef %113) #4
  %115 = fmul double %85, %114
  store double %115, ptr %13, align 8, !tbaa !9
  br label %116

116:                                              ; preds = %82, %50
  br label %117

117:                                              ; preds = %116, %22
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.background, ptr %118, i32 0, i32 0
  %120 = load double, ptr %119, align 8, !tbaa !19
  %121 = fmul double %120, 0x41B1DE784A000000
  %122 = fdiv double %121, 0x449A22FF260E3826
  %123 = call double @pow(double noundef %122, double noundef 2.000000e+00) #4
  %124 = fmul double %123, 3.000000e+00
  %125 = fdiv double %124, 8.000000e+00
  %126 = fdiv double %125, 0x400921FB54442D18
  %127 = fdiv double %126, 6.674280e-11
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.background, ptr %128, i32 0, i32 17
  %130 = load double, ptr %129, align 8, !tbaa !21
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.background, ptr %131, i32 0, i32 4
  %133 = load double, ptr %132, align 8, !tbaa !22
  %134 = fadd double %130, %133
  %135 = fmul double %127, %134
  %136 = fmul double %135, 0x41B1DE784A000000
  %137 = fmul double %136, 0x41B1DE784A000000
  store double %137, ptr %14, align 8, !tbaa !9
  %138 = load double, ptr %10, align 8, !tbaa !9
  %139 = fadd double 1.000000e+00, %138
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.recombination, ptr %140, i32 0, i32 36
  %142 = load double, ptr %141, align 8, !tbaa !23
  %143 = fadd double 1.000000e+00, %142
  %144 = fdiv double %139, %143
  store double %144, ptr %15, align 8, !tbaa !9
  %145 = load double, ptr %15, align 8, !tbaa !9
  %146 = call double @llvm.fmuladd.f64(double 2.783930e-01, double %145, double 1.000000e+00)
  %147 = load double, ptr %15, align 8, !tbaa !9
  %148 = fmul double 2.303890e-01, %147
  %149 = load double, ptr %15, align 8, !tbaa !9
  %150 = call double @llvm.fmuladd.f64(double %148, double %149, double %146)
  %151 = load double, ptr %15, align 8, !tbaa !9
  %152 = fmul double 9.720000e-04, %151
  %153 = load double, ptr %15, align 8, !tbaa !9
  %154 = fmul double %152, %153
  %155 = load double, ptr %15, align 8, !tbaa !9
  %156 = call double @llvm.fmuladd.f64(double %154, double %155, double %150)
  %157 = load double, ptr %15, align 8, !tbaa !9
  %158 = fmul double 0x3FB3FEE2C98E53EB, %157
  %159 = load double, ptr %15, align 8, !tbaa !9
  %160 = fmul double %158, %159
  %161 = load double, ptr %15, align 8, !tbaa !9
  %162 = fmul double %160, %161
  %163 = load double, ptr %15, align 8, !tbaa !9
  %164 = call double @llvm.fmuladd.f64(double %162, double %163, double %156)
  %165 = call double @pow(double noundef %164, double noundef -4.000000e+00) #4
  store double %165, ptr %16, align 8, !tbaa !9
  %166 = load double, ptr %14, align 8, !tbaa !9
  %167 = call double @pow(double noundef %166, double noundef 2.000000e+00) #4
  %168 = fdiv double %167, 0x41B1DE784A000000
  %169 = fdiv double %168, 0x41B1DE784A000000
  %170 = load double, ptr %10, align 8, !tbaa !9
  %171 = fadd double 1.000000e+00, %170
  %172 = call double @pow(double noundef %171, double noundef 3.000000e+00) #4
  %173 = fmul double %169, %172
  %174 = load double, ptr %10, align 8, !tbaa !9
  %175 = fadd double 1.000000e+00, %174
  %176 = call double @pow(double noundef %175, double noundef 3.000000e+00) #4
  %177 = load double, ptr %13, align 8, !tbaa !9
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.recombination, ptr %178, i32 0, i32 35
  %180 = load double, ptr %179, align 8, !tbaa !24
  %181 = load double, ptr %16, align 8, !tbaa !9
  %182 = fmul double %180, %181
  %183 = call double @llvm.fmuladd.f64(double %176, double %177, double %182)
  %184 = load double, ptr %14, align 8, !tbaa !9
  %185 = load double, ptr %10, align 8, !tbaa !9
  %186 = fadd double 1.000000e+00, %185
  %187 = call double @pow(double noundef %186, double noundef 3.000000e+00) #4
  %188 = fmul double %184, %187
  %189 = load ptr, ptr %9, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.recombination, ptr %189, i32 0, i32 30
  %191 = load double, ptr %190, align 8, !tbaa !25
  %192 = fmul double %188, %191
  %193 = call double @llvm.fmuladd.f64(double %173, double %183, double %192)
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  store double %193, ptr %194, align 8, !tbaa !9
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  ret i32 0
}

; Function Attrs: nounwind
declare double @log(double noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 232}
!12 = !{!"recombination", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !6, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !14, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256}
!13 = !{!"int", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!12, !10, i64 192}
!16 = !{!12, !10, i64 216}
!17 = !{!12, !10, i64 224}
!18 = !{!12, !10, i64 240}
!19 = !{!20, !10, i64 0}
!20 = !{!"background", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !13, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !14, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !14, i64 176, !10, i64 184, !10, i64 192, !6, i64 200, !13, i64 208, !13, i64 212, !10, i64 216, !13, i64 224, !6, i64 232, !6, i64 240, !10, i64 248, !6, i64 256, !10, i64 264, !6, i64 272, !10, i64 280, !6, i64 288, !10, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !13, i64 360, !6, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456, !13, i64 464, !13, i64 468, !13, i64 472, !13, i64 476, !13, i64 480, !13, i64 484, !13, i64 488, !13, i64 492, !13, i64 496, !13, i64 500, !13, i64 504, !13, i64 508, !13, i64 512, !13, i64 516, !13, i64 520, !13, i64 524, !13, i64 528, !13, i64 532, !13, i64 536, !13, i64 540, !13, i64 544, !13, i64 548, !13, i64 552, !13, i64 556, !13, i64 560, !13, i64 564, !13, i64 568, !13, i64 572, !13, i64 576, !13, i64 580, !13, i64 584, !13, i64 588, !13, i64 592, !13, i64 596, !13, i64 600, !13, i64 604, !13, i64 608, !13, i64 612, !13, i64 616, !13, i64 620, !13, i64 624, !13, i64 628, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !13, i64 672, !13, i64 676, !13, i64 680, !13, i64 684, !13, i64 688, !13, i64 692, !13, i64 696, !13, i64 700, !13, i64 704, !13, i64 708, !13, i64 712, !13, i64 716, !13, i64 720, !14, i64 724, !14, i64 726, !14, i64 728, !14, i64 730, !14, i64 732, !14, i64 734, !14, i64 736, !14, i64 738, !14, i64 740, !14, i64 742, !14, 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, !14, i64 840, !14, i64 842, !14, i64 844, !14, i64 846, !14, i64 848, !14, i64 850, !7, i64 852, !14, i64 2900, !7, i64 2902}
!21 = !{!20, !10, i64 136}
!22 = !{!20, !10, i64 32}
!23 = !{!12, !10, i64 256}
!24 = !{!12, !10, i64 248}
!25 = !{!12, !10, i64 208}


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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write, argmem: readwrite) uwtable
define dso_local noundef i32 @thermodynamics_onthespot_energy_injection(ptr nocapture noundef readnone %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, double noundef %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef readnone %5) local_unnamed_addr #2 {
  %7 = getelementptr inbounds i8, ptr %2, i64 232
  %8 = load double, ptr %7, align 8, !tbaa !5
  %9 = fcmp olt double %8, %3
  br i1 %9, label %10, label %23

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %2, i64 192
  %12 = load double, ptr %11, align 8, !tbaa !13
  %13 = getelementptr inbounds i8, ptr %2, i64 216
  %14 = load double, ptr %13, align 8, !tbaa !14
  %15 = fneg double %14
  %16 = getelementptr inbounds i8, ptr %2, i64 224
  %17 = load double, ptr %16, align 8, !tbaa !15
  %18 = fadd double %17, 1.000000e+00
  %19 = fadd double %8, 1.000000e+00
  %20 = fdiv double %18, %19
  %21 = tail call double @log(double noundef %20) #3
  %square49 = fmul double %21, %21
  %22 = fmul double %square49, %15
  br label %56

23:                                               ; preds = %6
  %24 = getelementptr inbounds i8, ptr %2, i64 240
  %25 = load double, ptr %24, align 8, !tbaa !16
  %26 = fcmp olt double %25, %3
  %27 = getelementptr inbounds i8, ptr %2, i64 192
  %28 = load double, ptr %27, align 8, !tbaa !13
  %29 = getelementptr inbounds i8, ptr %2, i64 216
  %30 = load double, ptr %29, align 8, !tbaa !14
  %31 = getelementptr inbounds i8, ptr %2, i64 224
  %32 = load double, ptr %31, align 8, !tbaa !15
  %33 = fadd double %32, 1.000000e+00
  %34 = fadd double %8, 1.000000e+00
  %35 = fdiv double %33, %34
  %36 = tail call double @log(double noundef %35) #3
  br i1 %26, label %37, label %46

37:                                               ; preds = %23
  %38 = fadd double %3, 1.000000e+00
  %39 = load double, ptr %7, align 8, !tbaa !5
  %40 = fadd double %39, 1.000000e+00
  %41 = fdiv double %38, %40
  %42 = tail call double @log(double noundef %41) #3
  %square48 = fmul double %42, %42
  %43 = fmul double %36, %36
  %44 = fsub double %square48, %43
  %45 = fmul double %30, %44
  br label %56

46:                                               ; preds = %23
  %47 = load <2 x double>, ptr %7, align 8, !tbaa !17
  %48 = fadd <2 x double> %47, <double 1.000000e+00, double 1.000000e+00>
  %49 = extractelement <2 x double> %48, i64 0
  %50 = extractelement <2 x double> %48, i64 1
  %51 = fdiv double %50, %49
  %52 = tail call double @log(double noundef %51) #3
  %square = fmul double %52, %52
  %53 = fmul double %36, %36
  %54 = fsub double %square, %53
  %55 = fmul double %30, %54
  br label %56

56:                                               ; preds = %37, %46, %10
  %.sink53 = phi double [ %45, %37 ], [ %55, %46 ], [ %22, %10 ]
  %.sink = phi double [ %28, %37 ], [ %28, %46 ], [ %12, %10 ]
  %57 = tail call double @exp(double noundef %.sink53) #3
  %58 = fmul double %.sink, %57
  %59 = load double, ptr %1, align 8, !tbaa !18
  %60 = fmul double %59, 0x41B1DE784A000000
  %61 = fdiv double %60, 0x449A22FF260E3826
  %square50 = fmul double %61, %61
  %62 = fmul double %square50, 3.000000e+00
  %63 = fmul double %62, 1.250000e-01
  %64 = fdiv double %63, 0x400921FB54442D18
  %65 = fdiv double %64, 6.674280e-11
  %66 = getelementptr inbounds i8, ptr %1, i64 136
  %67 = load double, ptr %66, align 8, !tbaa !20
  %68 = getelementptr inbounds i8, ptr %1, i64 32
  %69 = load double, ptr %68, align 8, !tbaa !21
  %70 = fadd double %67, %69
  %71 = fmul double %70, %65
  %72 = fmul double %71, 0x41B1DE784A000000
  %73 = fmul double %72, 0x41B1DE784A000000
  %74 = fadd double %3, 1.000000e+00
  %75 = getelementptr inbounds i8, ptr %2, i64 256
  %76 = load double, ptr %75, align 8, !tbaa !22
  %77 = fadd double %76, 1.000000e+00
  %78 = fdiv double %74, %77
  %79 = tail call double @llvm.fmuladd.f64(double %78, double 2.783930e-01, double 1.000000e+00)
  %80 = fmul double %78, 2.303890e-01
  %81 = tail call double @llvm.fmuladd.f64(double %80, double %78, double %79)
  %82 = fmul double %78, 9.720000e-04
  %83 = fmul double %78, %82
  %84 = tail call double @llvm.fmuladd.f64(double %83, double %78, double %81)
  %85 = fmul double %78, 0x3FB3FEE2C98E53EB
  %86 = fmul double %78, %85
  %87 = fmul double %78, %86
  %88 = tail call double @llvm.fmuladd.f64(double %87, double %78, double %84)
  %89 = tail call double @pow(double noundef %88, double noundef -4.000000e+00) #3
  %square51 = fmul double %73, %73
  %90 = fdiv double %square51, 0x41B1DE784A000000
  %91 = fdiv double %90, 0x41B1DE784A000000
  %92 = tail call double @pow(double noundef %74, double noundef 3.000000e+00) #3
  %93 = fmul double %92, %91
  %94 = tail call double @pow(double noundef %74, double noundef 3.000000e+00) #3
  %95 = getelementptr inbounds i8, ptr %2, i64 248
  %96 = load double, ptr %95, align 8, !tbaa !23
  %97 = fmul double %89, %96
  %98 = tail call double @llvm.fmuladd.f64(double %94, double %58, double %97)
  %99 = tail call double @pow(double noundef %74, double noundef 3.000000e+00) #3
  %100 = fmul double %99, %73
  %101 = getelementptr inbounds i8, ptr %2, i64 208
  %102 = load double, ptr %101, align 8, !tbaa !24
  %103 = fmul double %102, %100
  %104 = tail call double @llvm.fmuladd.f64(double %93, double %98, double %103)
  store double %104, ptr %4, align 8, !tbaa !17
  ret i32 0
}

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nofree nounwind willreturn memory(write, argmem: readwrite) 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 }

!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, !11, i64 232}
!6 = !{!"recombination", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !10, 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, !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, !11, i64 176, !11, i64 184, !11, i64 192, !12, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!6, !11, i64 192}
!14 = !{!6, !11, i64 216}
!15 = !{!6, !11, i64 224}
!16 = !{!6, !11, i64 240}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !11, i64 0}
!19 = !{!"background", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !7, 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, !10, i64 200, !7, i64 208, !7, i64 212, !11, i64 216, !7, i64 224, !10, i64 232, !10, i64 240, !11, i64 248, !10, i64 256, !11, i64 264, !10, i64 272, !11, i64 280, !10, i64 288, !11, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !7, i64 360, !10, 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, !7, i64 464, !7, i64 468, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !7, i64 512, !7, i64 516, !7, i64 520, !7, i64 524, !7, i64 528, !7, i64 532, !7, i64 536, !7, i64 540, !7, i64 544, !7, i64 548, !7, i64 552, !7, i64 556, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !7, i64 584, !7, i64 588, !7, i64 592, !7, i64 596, !7, i64 600, !7, i64 604, !7, i64 608, !7, i64 612, !7, i64 616, !7, i64 620, !7, i64 624, !7, i64 628, !10, i64 632, !10, i64 640, !10, i64 648, !10, i64 656, !10, i64 664, !7, i64 672, !7, i64 676, !7, i64 680, !7, i64 684, !7, i64 688, !7, i64 692, !7, i64 696, !7, i64 700, !7, i64 704, !7, i64 708, !7, i64 712, !7, i64 716, !7, 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, !10, i64 752, !10, i64 760, !10, i64 768, !10, i64 776, !10, i64 784, !10, i64 792, !10, i64 800, !10, i64 808, !10, i64 816, !10, i64 824, !10, i64 832, !12, i64 840, !12, i64 842, !12, i64 844, !12, i64 846, !12, i64 848, !12, i64 850, !8, i64 852, !12, i64 2900, !8, i64 2902}
!20 = !{!19, !11, i64 136}
!21 = !{!19, !11, i64 32}
!22 = !{!6, !11, i64 256}
!23 = !{!6, !11, i64 248}
!24 = !{!6, !11, i64 208}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass