; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (r8lib)

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

@__const.r8_gamma_log.c = external hidden unnamed_addr constant [7 x double], align 16
@__const.r8_gamma_log.p1 = external hidden unnamed_addr constant [8 x double], align 16
@__const.r8_gamma_log.p2 = external hidden unnamed_addr constant [8 x double], align 16
@__const.r8_gamma_log.p4 = external hidden unnamed_addr constant [8 x double], align 16
@__const.r8_gamma_log.q1 = external hidden unnamed_addr constant [8 x double], align 16
@__const.r8_gamma_log.q2 = external hidden unnamed_addr constant [8 x double], align 16
@__const.r8_gamma_log.q4 = external hidden unnamed_addr constant [8 x double], align 16

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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

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

; Function Attrs: nounwind uwtable
define dso_local double @r8_gamma_log(double noundef %0) #4 {
  %2 = alloca double, align 8
  %3 = alloca [7 x double], align 16
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca [8 x double], align 16
  %11 = alloca [8 x double], align 16
  %12 = alloca [8 x double], align 16
  %13 = alloca [8 x double], align 16
  %14 = alloca [8 x double], align 16
  %15 = alloca [8 x double], align 16
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  store double %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.r8_gamma_log.c, i64 56, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store double 0xBFE2788CFC6FB619, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store double 0x3FDB0EE6072093CE, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store double 0x3FFCAB0BFA2A2002, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store double 2.250000e+76, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.r8_gamma_log.p1, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.r8_gamma_log.p2, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.r8_gamma_log.p4, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.r8_gamma_log.q1, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 @__const.r8_gamma_log.q2, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 @__const.r8_gamma_log.q4, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store double 0x3CB0000000000000, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store double 0x3FED67F1C864BEB5, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store double 2.550000e+305, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  store double 1.790000e+308, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %28 = load double, ptr %2, align 8, !tbaa !5
  store double %28, ptr %26, align 8, !tbaa !5
  %29 = load double, ptr %26, align 8, !tbaa !5
  %30 = fcmp olt double 0.000000e+00, %29
  br i1 %30, label %31, label %240

31:                                               ; preds = %1
  %32 = load double, ptr %26, align 8, !tbaa !5
  %33 = fcmp ole double %32, 2.550000e+305
  br i1 %33, label %34, label %240

34:                                               ; preds = %31
  %35 = load double, ptr %26, align 8, !tbaa !5
  %36 = fcmp ole double %35, 0x3CB0000000000000
  br i1 %36, label %37, label %41

37:                                               ; preds = %34
  %38 = load double, ptr %26, align 8, !tbaa !5
  %39 = call double @log(double noundef %38) #5
  %40 = fneg double %39
  store double %40, ptr %17, align 8, !tbaa !5
  br label %239

41:                                               ; preds = %34
  %42 = load double, ptr %26, align 8, !tbaa !5
  %43 = fcmp ole double %42, 1.500000e+00
  br i1 %43, label %44, label %128

44:                                               ; preds = %41
  %45 = load double, ptr %26, align 8, !tbaa !5
  %46 = fcmp olt double %45, 0x3FE5C00000000000
  br i1 %46, label %47, label %52

47:                                               ; preds = %44
  %48 = load double, ptr %26, align 8, !tbaa !5
  %49 = call double @log(double noundef %48) #5
  %50 = fneg double %49
  store double %50, ptr %4, align 8, !tbaa !5
  %51 = load double, ptr %26, align 8, !tbaa !5
  store double %51, ptr %22, align 8, !tbaa !5
  br label %56

52:                                               ; preds = %44
  store double 0.000000e+00, ptr %4, align 8, !tbaa !5
  %53 = load double, ptr %26, align 8, !tbaa !5
  %54 = fsub double %53, 5.000000e-01
  %55 = fsub double %54, 5.000000e-01
  store double %55, ptr %22, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %52, %47
  %57 = load double, ptr %26, align 8, !tbaa !5
  %58 = fcmp ole double %57, 5.000000e-01
  br i1 %58, label %62, label %59

59:                                               ; preds = %56
  %60 = load double, ptr %26, align 8, !tbaa !5
  %61 = fcmp ole double 0x3FE5C00000000000, %60
  br i1 %61, label %62, label %93

62:                                               ; preds = %59, %56
  store double 1.000000e+00, ptr %20, align 8, !tbaa !5
  store double 0.000000e+00, ptr %25, align 8, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %81, %62
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = icmp slt i32 %64, 8
  br i1 %65, label %66, label %84

66:                                               ; preds = %63
  %67 = load double, ptr %25, align 8, !tbaa !5
  %68 = load double, ptr %22, align 8, !tbaa !5
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [8 x double], ptr %10, i64 0, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !5
  %73 = call double @llvm.fmuladd.f64(double %67, double %68, double %72)
  store double %73, ptr %25, align 8, !tbaa !5
  %74 = load double, ptr %20, align 8, !tbaa !5
  %75 = load double, ptr %22, align 8, !tbaa !5
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [8 x double], ptr %13, i64 0, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !5
  %80 = call double @llvm.fmuladd.f64(double %74, double %75, double %79)
  store double %80, ptr %20, align 8, !tbaa !5
  br label %81

81:                                               ; preds = %66
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %9, align 4, !tbaa !9
  br label %63, !llvm.loop !11

84:                                               ; preds = %63
  %85 = load double, ptr %4, align 8, !tbaa !5
  %86 = load double, ptr %22, align 8, !tbaa !5
  %87 = load double, ptr %22, align 8, !tbaa !5
  %88 = load double, ptr %25, align 8, !tbaa !5
  %89 = load double, ptr %20, align 8, !tbaa !5
  %90 = fdiv double %88, %89
  %91 = call double @llvm.fmuladd.f64(double %87, double %90, double 0xBFE2788CFC6FB619)
  %92 = call double @llvm.fmuladd.f64(double %86, double %91, double %85)
  store double %92, ptr %17, align 8, !tbaa !5
  br label %127

93:                                               ; preds = %59
  %94 = load double, ptr %26, align 8, !tbaa !5
  %95 = fsub double %94, 5.000000e-01
  %96 = fsub double %95, 5.000000e-01
  store double %96, ptr %23, align 8, !tbaa !5
  store double 1.000000e+00, ptr %20, align 8, !tbaa !5
  store double 0.000000e+00, ptr %25, align 8, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %115, %93
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = icmp slt i32 %98, 8
  br i1 %99, label %100, label %118

100:                                              ; preds = %97
  %101 = load double, ptr %25, align 8, !tbaa !5
  %102 = load double, ptr %23, align 8, !tbaa !5
  %103 = load i32, ptr %9, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 %104
  %106 = load double, ptr %105, align 8, !tbaa !5
  %107 = call double @llvm.fmuladd.f64(double %101, double %102, double %106)
  store double %107, ptr %25, align 8, !tbaa !5
  %108 = load double, ptr %20, align 8, !tbaa !5
  %109 = load double, ptr %23, align 8, !tbaa !5
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [8 x double], ptr %14, i64 0, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !5
  %114 = call double @llvm.fmuladd.f64(double %108, double %109, double %113)
  store double %114, ptr %20, align 8, !tbaa !5
  br label %115

115:                                              ; preds = %100
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %9, align 4, !tbaa !9
  br label %97, !llvm.loop !13

118:                                              ; preds = %97
  %119 = load double, ptr %4, align 8, !tbaa !5
  %120 = load double, ptr %23, align 8, !tbaa !5
  %121 = load double, ptr %23, align 8, !tbaa !5
  %122 = load double, ptr %25, align 8, !tbaa !5
  %123 = load double, ptr %20, align 8, !tbaa !5
  %124 = fdiv double %122, %123
  %125 = call double @llvm.fmuladd.f64(double %121, double %124, double 0x3FDB0EE6072093CE)
  %126 = call double @llvm.fmuladd.f64(double %120, double %125, double %119)
  store double %126, ptr %17, align 8, !tbaa !5
  br label %127

127:                                              ; preds = %118, %84
  br label %238

128:                                              ; preds = %41
  %129 = load double, ptr %26, align 8, !tbaa !5
  %130 = fcmp ole double %129, 4.000000e+00
  br i1 %130, label %131, label %163

131:                                              ; preds = %128
  %132 = load double, ptr %26, align 8, !tbaa !5
  %133 = fsub double %132, 2.000000e+00
  store double %133, ptr %23, align 8, !tbaa !5
  store double 1.000000e+00, ptr %20, align 8, !tbaa !5
  store double 0.000000e+00, ptr %25, align 8, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %134

134:                                              ; preds = %152, %131
  %135 = load i32, ptr %9, align 4, !tbaa !9
  %136 = icmp slt i32 %135, 8
  br i1 %136, label %137, label %155

137:                                              ; preds = %134
  %138 = load double, ptr %25, align 8, !tbaa !5
  %139 = load double, ptr %23, align 8, !tbaa !5
  %140 = load i32, ptr %9, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !5
  %144 = call double @llvm.fmuladd.f64(double %138, double %139, double %143)
  store double %144, ptr %25, align 8, !tbaa !5
  %145 = load double, ptr %20, align 8, !tbaa !5
  %146 = load double, ptr %23, align 8, !tbaa !5
  %147 = load i32, ptr %9, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [8 x double], ptr %14, i64 0, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !5
  %151 = call double @llvm.fmuladd.f64(double %145, double %146, double %150)
  store double %151, ptr %20, align 8, !tbaa !5
  br label %152

152:                                              ; preds = %137
  %153 = load i32, ptr %9, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %9, align 4, !tbaa !9
  br label %134, !llvm.loop !14

155:                                              ; preds = %134
  %156 = load double, ptr %23, align 8, !tbaa !5
  %157 = load double, ptr %23, align 8, !tbaa !5
  %158 = load double, ptr %25, align 8, !tbaa !5
  %159 = load double, ptr %20, align 8, !tbaa !5
  %160 = fdiv double %158, %159
  %161 = call double @llvm.fmuladd.f64(double %157, double %160, double 0x3FDB0EE6072093CE)
  %162 = fmul double %156, %161
  store double %162, ptr %17, align 8, !tbaa !5
  br label %237

163:                                              ; preds = %128
  %164 = load double, ptr %26, align 8, !tbaa !5
  %165 = fcmp ole double %164, 1.200000e+01
  br i1 %165, label %166, label %196

166:                                              ; preds = %163
  %167 = load double, ptr %26, align 8, !tbaa !5
  %168 = fsub double %167, 4.000000e+00
  store double %168, ptr %24, align 8, !tbaa !5
  store double -1.000000e+00, ptr %20, align 8, !tbaa !5
  store double 0.000000e+00, ptr %25, align 8, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %187, %166
  %170 = load i32, ptr %9, align 4, !tbaa !9
  %171 = icmp slt i32 %170, 8
  br i1 %171, label %172, label %190

172:                                              ; preds = %169
  %173 = load double, ptr %25, align 8, !tbaa !5
  %174 = load double, ptr %24, align 8, !tbaa !5
  %175 = load i32, ptr %9, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [8 x double], ptr %12, i64 0, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !5
  %179 = call double @llvm.fmuladd.f64(double %173, double %174, double %178)
  store double %179, ptr %25, align 8, !tbaa !5
  %180 = load double, ptr %20, align 8, !tbaa !5
  %181 = load double, ptr %24, align 8, !tbaa !5
  %182 = load i32, ptr %9, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [8 x double], ptr %15, i64 0, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !5
  %186 = call double @llvm.fmuladd.f64(double %180, double %181, double %185)
  store double %186, ptr %20, align 8, !tbaa !5
  br label %187

187:                                              ; preds = %172
  %188 = load i32, ptr %9, align 4, !tbaa !9
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %9, align 4, !tbaa !9
  br label %169, !llvm.loop !15

190:                                              ; preds = %169
  %191 = load double, ptr %24, align 8, !tbaa !5
  %192 = load double, ptr %25, align 8, !tbaa !5
  %193 = load double, ptr %20, align 8, !tbaa !5
  %194 = fdiv double %192, %193
  %195 = call double @llvm.fmuladd.f64(double %191, double %194, double 0x3FFCAB0BFA2A2002)
  store double %195, ptr %17, align 8, !tbaa !5
  br label %236

196:                                              ; preds = %163
  store double 0.000000e+00, ptr %17, align 8, !tbaa !5
  %197 = load double, ptr %26, align 8, !tbaa !5
  %198 = fcmp ole double %197, 2.250000e+76
  br i1 %198, label %199, label %221

199:                                              ; preds = %196
  %200 = getelementptr inbounds [7 x double], ptr %3, i64 0, i64 6
  %201 = load double, ptr %200, align 16, !tbaa !5
  store double %201, ptr %17, align 8, !tbaa !5
  %202 = load double, ptr %26, align 8, !tbaa !5
  %203 = load double, ptr %26, align 8, !tbaa !5
  %204 = fmul double %202, %203
  store double %204, ptr %27, align 8, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %205

205:                                              ; preds = %217, %199
  %206 = load i32, ptr %9, align 4, !tbaa !9
  %207 = icmp slt i32 %206, 6
  br i1 %207, label %208, label %220

208:                                              ; preds = %205
  %209 = load double, ptr %17, align 8, !tbaa !5
  %210 = load double, ptr %27, align 8, !tbaa !5
  %211 = fdiv double %209, %210
  %212 = load i32, ptr %9, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [7 x double], ptr %3, i64 0, i64 %213
  %215 = load double, ptr %214, align 8, !tbaa !5
  %216 = fadd double %211, %215
  store double %216, ptr %17, align 8, !tbaa !5
  br label %217

217:                                              ; preds = %208
  %218 = load i32, ptr %9, align 4, !tbaa !9
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %9, align 4, !tbaa !9
  br label %205, !llvm.loop !16

220:                                              ; preds = %205
  br label %221

221:                                              ; preds = %220, %196
  %222 = load double, ptr %17, align 8, !tbaa !5
  %223 = load double, ptr %26, align 8, !tbaa !5
  %224 = fdiv double %222, %223
  store double %224, ptr %17, align 8, !tbaa !5
  %225 = load double, ptr %26, align 8, !tbaa !5
  %226 = call double @log(double noundef %225) #5
  store double %226, ptr %4, align 8, !tbaa !5
  %227 = load double, ptr %17, align 8, !tbaa !5
  %228 = fadd double %227, 0x3FED67F1C864BEB5
  %229 = load double, ptr %4, align 8, !tbaa !5
  %230 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %229, double %228)
  store double %230, ptr %17, align 8, !tbaa !5
  %231 = load double, ptr %17, align 8, !tbaa !5
  %232 = load double, ptr %26, align 8, !tbaa !5
  %233 = load double, ptr %4, align 8, !tbaa !5
  %234 = fsub double %233, 1.000000e+00
  %235 = call double @llvm.fmuladd.f64(double %232, double %234, double %231)
  store double %235, ptr %17, align 8, !tbaa !5
  br label %236

236:                                              ; preds = %221, %190
  br label %237

237:                                              ; preds = %236, %155
  br label %238

238:                                              ; preds = %237, %127
  br label %239

239:                                              ; preds = %238, %37
  br label %241

240:                                              ; preds = %31, %1
  store double 1.790000e+308, ptr %17, align 8, !tbaa !5
  br label %241

241:                                              ; preds = %240, %239
  %242 = load double, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %3) #5
  ret double %242
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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 #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 = !{!"double", !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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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

@__const.r8_gamma_log.c = external hidden unnamed_addr constant [7 x double], align 16
@__const.r8_gamma_log.p1 = external hidden unnamed_addr constant [8 x double], align 16
@__const.r8_gamma_log.p2 = external hidden unnamed_addr constant [8 x double], align 16
@__const.r8_gamma_log.p4 = external hidden unnamed_addr constant [8 x double], align 16
@__const.r8_gamma_log.q1 = external hidden unnamed_addr constant [8 x double], align 16
@__const.r8_gamma_log.q2 = external hidden unnamed_addr constant [8 x double], align 16
@__const.r8_gamma_log.q4 = external hidden unnamed_addr constant [8 x double], align 16

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write) uwtable
define dso_local double @r8_gamma_log(double noundef %0) local_unnamed_addr #2 {
  %2 = fcmp ogt double %0, 0.000000e+00
  %3 = fcmp ole double %0, 2.550000e+305
  %or.cond = and i1 %2, %3
  br i1 %or.cond, label %4, label %226

4:                                                ; preds = %1
  %5 = fcmp ugt double %0, 0x3CB0000000000000
  br i1 %5, label %9, label %6

6:                                                ; preds = %4
  %7 = tail call double @log(double noundef %0) #4
  %8 = fneg double %7
  br label %226

9:                                                ; preds = %4
  %10 = fcmp ugt double %0, 1.500000e+00
  br i1 %10, label %109, label %11

11:                                               ; preds = %9
  %12 = fcmp olt double %0, 0x3FE5C00000000000
  br i1 %12, label %13, label %16

13:                                               ; preds = %11
  %14 = tail call double @log(double noundef %0) #4
  %15 = fneg double %14
  br label %19

16:                                               ; preds = %11
  %17 = fadd double %0, -5.000000e-01
  %18 = fadd double %17, -5.000000e-01
  br label %19

19:                                               ; preds = %16, %13
  %.093 = phi double [ %0, %13 ], [ %18, %16 ]
  %.0 = phi double [ %15, %13 ], [ 0.000000e+00, %16 ]
  %20 = fcmp ole double %0, 5.000000e-01
  %21 = fcmp oge double %0, 0x3FE5C00000000000
  %or.cond3 = or i1 %20, %21
  br i1 %or.cond3, label %.preheader.preheader, label %64

.preheader.preheader:                             ; preds = %19
  %22 = load double, ptr @__const.r8_gamma_log.p1, align 16, !tbaa !5
  %23 = tail call double @llvm.fmuladd.f64(double %.093, double 0.000000e+00, double %22)
  %24 = load double, ptr @__const.r8_gamma_log.q1, align 16, !tbaa !5
  %25 = fadd double %.093, %24
  %26 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p1, i64 8), align 8
  %27 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q1, i64 8), align 8, !tbaa !5
  %28 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p1, i64 16), align 16
  %29 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q1, i64 16), align 16, !tbaa !5
  %30 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p1, i64 24), align 8
  %31 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q1, i64 24), align 8, !tbaa !5
  %32 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p1, i64 32), align 16
  %33 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q1, i64 32), align 16, !tbaa !5
  %34 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p1, i64 40), align 8
  %35 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q1, i64 40), align 8, !tbaa !5
  %36 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p1, i64 48), align 16
  %37 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q1, i64 48), align 16, !tbaa !5
  %38 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p1, i64 56), align 8, !tbaa !5
  %39 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q1, i64 56), align 8, !tbaa !5
  %40 = insertelement <2 x double> poison, double %23, i64 0
  %41 = insertelement <2 x double> %40, double %25, i64 1
  %42 = insertelement <2 x double> poison, double %.093, i64 0
  %43 = shufflevector <2 x double> %42, <2 x double> poison, <2 x i32> zeroinitializer
  %44 = insertelement <2 x double> %26, double %27, i64 1
  %45 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %41, <2 x double> %43, <2 x double> %44)
  %46 = insertelement <2 x double> %28, double %29, i64 1
  %47 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %45, <2 x double> %43, <2 x double> %46)
  %48 = insertelement <2 x double> %30, double %31, i64 1
  %49 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %47, <2 x double> %43, <2 x double> %48)
  %50 = insertelement <2 x double> %32, double %33, i64 1
  %51 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %49, <2 x double> %43, <2 x double> %50)
  %52 = insertelement <2 x double> %34, double %35, i64 1
  %53 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %51, <2 x double> %43, <2 x double> %52)
  %54 = insertelement <2 x double> %36, double %37, i64 1
  %55 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <2 x double> %43, <2 x double> %54)
  %56 = insertelement <2 x double> poison, double %38, i64 0
  %57 = insertelement <2 x double> %56, double %39, i64 1
  %58 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %55, <2 x double> %43, <2 x double> %57)
  %59 = extractelement <2 x double> %58, i64 0
  %60 = extractelement <2 x double> %58, i64 1
  %61 = fdiv double %59, %60
  %62 = tail call double @llvm.fmuladd.f64(double %.093, double %61, double 0xBFE2788CFC6FB619)
  %63 = tail call double @llvm.fmuladd.f64(double %.093, double %62, double %.0)
  br label %226

64:                                               ; preds = %19
  %65 = fadd double %0, -5.000000e-01
  %66 = fadd double %65, -5.000000e-01
  %67 = load double, ptr @__const.r8_gamma_log.p2, align 16, !tbaa !5
  %68 = tail call double @llvm.fmuladd.f64(double %66, double 0.000000e+00, double %67)
  %69 = load double, ptr @__const.r8_gamma_log.q2, align 16, !tbaa !5
  %70 = fadd double %66, %69
  %71 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p2, i64 8), align 8
  %72 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q2, i64 8), align 8, !tbaa !5
  %73 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p2, i64 16), align 16
  %74 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q2, i64 16), align 16, !tbaa !5
  %75 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p2, i64 24), align 8
  %76 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q2, i64 24), align 8, !tbaa !5
  %77 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p2, i64 32), align 16
  %78 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q2, i64 32), align 16, !tbaa !5
  %79 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p2, i64 40), align 8
  %80 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q2, i64 40), align 8, !tbaa !5
  %81 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p2, i64 48), align 16
  %82 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q2, i64 48), align 16, !tbaa !5
  %83 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p2, i64 56), align 8, !tbaa !5
  %84 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q2, i64 56), align 8, !tbaa !5
  %85 = insertelement <2 x double> poison, double %68, i64 0
  %86 = insertelement <2 x double> %85, double %70, i64 1
  %87 = insertelement <2 x double> poison, double %66, i64 0
  %88 = shufflevector <2 x double> %87, <2 x double> poison, <2 x i32> zeroinitializer
  %89 = insertelement <2 x double> %71, double %72, i64 1
  %90 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %86, <2 x double> %88, <2 x double> %89)
  %91 = insertelement <2 x double> %73, double %74, i64 1
  %92 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %90, <2 x double> %88, <2 x double> %91)
  %93 = insertelement <2 x double> %75, double %76, i64 1
  %94 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %92, <2 x double> %88, <2 x double> %93)
  %95 = insertelement <2 x double> %77, double %78, i64 1
  %96 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %94, <2 x double> %88, <2 x double> %95)
  %97 = insertelement <2 x double> %79, double %80, i64 1
  %98 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %96, <2 x double> %88, <2 x double> %97)
  %99 = insertelement <2 x double> %81, double %82, i64 1
  %100 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %98, <2 x double> %88, <2 x double> %99)
  %101 = insertelement <2 x double> poison, double %83, i64 0
  %102 = insertelement <2 x double> %101, double %84, i64 1
  %103 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %100, <2 x double> %88, <2 x double> %102)
  %104 = extractelement <2 x double> %103, i64 0
  %105 = extractelement <2 x double> %103, i64 1
  %106 = fdiv double %104, %105
  %107 = tail call double @llvm.fmuladd.f64(double %66, double %106, double 0x3FDB0EE6072093CE)
  %108 = tail call double @llvm.fmuladd.f64(double %66, double %107, double %.0)
  br label %226

109:                                              ; preds = %9
  %110 = fcmp ugt double %0, 4.000000e+00
  br i1 %110, label %155, label %111

111:                                              ; preds = %109
  %112 = fadd double %0, -2.000000e+00
  %113 = load double, ptr @__const.r8_gamma_log.p2, align 16, !tbaa !5
  %114 = tail call double @llvm.fmuladd.f64(double %112, double 0.000000e+00, double %113)
  %115 = load double, ptr @__const.r8_gamma_log.q2, align 16, !tbaa !5
  %116 = fadd double %112, %115
  %117 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p2, i64 8), align 8
  %118 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q2, i64 8), align 8, !tbaa !5
  %119 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p2, i64 16), align 16
  %120 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q2, i64 16), align 16, !tbaa !5
  %121 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p2, i64 24), align 8
  %122 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q2, i64 24), align 8, !tbaa !5
  %123 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p2, i64 32), align 16
  %124 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q2, i64 32), align 16, !tbaa !5
  %125 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p2, i64 40), align 8
  %126 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q2, i64 40), align 8, !tbaa !5
  %127 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p2, i64 48), align 16
  %128 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q2, i64 48), align 16, !tbaa !5
  %129 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p2, i64 56), align 8, !tbaa !5
  %130 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q2, i64 56), align 8, !tbaa !5
  %131 = insertelement <2 x double> poison, double %114, i64 0
  %132 = insertelement <2 x double> %131, double %116, i64 1
  %133 = insertelement <2 x double> poison, double %112, i64 0
  %134 = shufflevector <2 x double> %133, <2 x double> poison, <2 x i32> zeroinitializer
  %135 = insertelement <2 x double> %117, double %118, i64 1
  %136 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %132, <2 x double> %134, <2 x double> %135)
  %137 = insertelement <2 x double> %119, double %120, i64 1
  %138 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %136, <2 x double> %134, <2 x double> %137)
  %139 = insertelement <2 x double> %121, double %122, i64 1
  %140 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %138, <2 x double> %134, <2 x double> %139)
  %141 = insertelement <2 x double> %123, double %124, i64 1
  %142 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %140, <2 x double> %134, <2 x double> %141)
  %143 = insertelement <2 x double> %125, double %126, i64 1
  %144 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %142, <2 x double> %134, <2 x double> %143)
  %145 = insertelement <2 x double> %127, double %128, i64 1
  %146 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %144, <2 x double> %134, <2 x double> %145)
  %147 = insertelement <2 x double> poison, double %129, i64 0
  %148 = insertelement <2 x double> %147, double %130, i64 1
  %149 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %146, <2 x double> %134, <2 x double> %148)
  %150 = extractelement <2 x double> %149, i64 0
  %151 = extractelement <2 x double> %149, i64 1
  %152 = fdiv double %150, %151
  %153 = tail call double @llvm.fmuladd.f64(double %112, double %152, double 0x3FDB0EE6072093CE)
  %154 = fmul double %112, %153
  br label %226

155:                                              ; preds = %109
  %156 = fcmp ugt double %0, 1.200000e+01
  br i1 %156, label %198, label %157

157:                                              ; preds = %155
  %158 = fadd double %0, -4.000000e+00
  %159 = load <2 x double>, ptr @__const.r8_gamma_log.p4, align 16
  %160 = load double, ptr @__const.r8_gamma_log.q4, align 16, !tbaa !5
  %161 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p4, i64 8), align 8
  %162 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q4, i64 8), align 8, !tbaa !5
  %163 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p4, i64 16), align 16
  %164 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q4, i64 16), align 16, !tbaa !5
  %165 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p4, i64 24), align 8
  %166 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q4, i64 24), align 8, !tbaa !5
  %167 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p4, i64 32), align 16
  %168 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q4, i64 32), align 16, !tbaa !5
  %169 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p4, i64 40), align 8
  %170 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q4, i64 40), align 8, !tbaa !5
  %171 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p4, i64 48), align 16
  %172 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q4, i64 48), align 16, !tbaa !5
  %173 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.p4, i64 56), align 8, !tbaa !5
  %174 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.q4, i64 56), align 8, !tbaa !5
  %175 = insertelement <2 x double> poison, double %158, i64 0
  %176 = shufflevector <2 x double> %175, <2 x double> poison, <2 x i32> zeroinitializer
  %177 = insertelement <2 x double> %159, double %160, i64 1
  %178 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %176, <2 x double> <double 0.000000e+00, double -1.000000e+00>, <2 x double> %177)
  %179 = insertelement <2 x double> %161, double %162, i64 1
  %180 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %178, <2 x double> %176, <2 x double> %179)
  %181 = insertelement <2 x double> %163, double %164, i64 1
  %182 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %180, <2 x double> %176, <2 x double> %181)
  %183 = insertelement <2 x double> %165, double %166, i64 1
  %184 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %182, <2 x double> %176, <2 x double> %183)
  %185 = insertelement <2 x double> %167, double %168, i64 1
  %186 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %184, <2 x double> %176, <2 x double> %185)
  %187 = insertelement <2 x double> %169, double %170, i64 1
  %188 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %186, <2 x double> %176, <2 x double> %187)
  %189 = insertelement <2 x double> %171, double %172, i64 1
  %190 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %188, <2 x double> %176, <2 x double> %189)
  %191 = insertelement <2 x double> poison, double %173, i64 0
  %192 = insertelement <2 x double> %191, double %174, i64 1
  %193 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %190, <2 x double> %176, <2 x double> %192)
  %194 = extractelement <2 x double> %193, i64 0
  %195 = extractelement <2 x double> %193, i64 1
  %196 = fdiv double %194, %195
  %197 = tail call double @llvm.fmuladd.f64(double %158, double %196, double 0x3FFCAB0BFA2A2002)
  br label %226

198:                                              ; preds = %155
  %199 = fcmp ugt double %0, 2.250000e+76
  br i1 %199, label %.loopexit, label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %198
  %200 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.c, i64 48), align 16, !tbaa !5
  %201 = fmul double %0, %0
  %202 = fdiv double %200, %201
  %203 = load double, ptr @__const.r8_gamma_log.c, align 16, !tbaa !5
  %204 = fadd double %202, %203
  %205 = fdiv double %204, %201
  %206 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.c, i64 8), align 8, !tbaa !5
  %207 = fadd double %205, %206
  %208 = fdiv double %207, %201
  %209 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.c, i64 16), align 16, !tbaa !5
  %210 = fadd double %208, %209
  %211 = fdiv double %210, %201
  %212 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.c, i64 24), align 8, !tbaa !5
  %213 = fadd double %211, %212
  %214 = fdiv double %213, %201
  %215 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.c, i64 32), align 16, !tbaa !5
  %216 = fadd double %214, %215
  %217 = fdiv double %216, %201
  %218 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma_log.c, i64 40), align 8, !tbaa !5
  %219 = fadd double %217, %218
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %198
  %.191 = phi double [ 0.000000e+00, %198 ], [ %219, %.loopexit.loopexit ]
  %220 = fdiv double %.191, %0
  %221 = tail call double @log(double noundef %0) #4
  %222 = fadd double %220, 0x3FED67F1C864BEB5
  %223 = tail call double @llvm.fmuladd.f64(double %221, double -5.000000e-01, double %222)
  %224 = fadd double %221, -1.000000e+00
  %225 = tail call double @llvm.fmuladd.f64(double %0, double %224, double %223)
  br label %226

226:                                              ; preds = %1, %6, %111, %.loopexit, %157, %.preheader.preheader, %64
  %.292 = phi double [ %8, %6 ], [ %63, %.preheader.preheader ], [ %108, %64 ], [ %154, %111 ], [ %197, %157 ], [ %225, %.loopexit ], [ 1.790000e+308, %1 ]
  ret double %.292
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { mustprogress nofree nounwind willreturn memory(write) 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass