; 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.c = external hidden unnamed_addr constant [7 x double], align 16
@__const.r8_gamma.p = external hidden unnamed_addr constant [8 x double], align 16
@__const.r8_gamma.q = 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
declare double @sin(double noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local double @r8_gamma(double noundef %0) #4 {
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca [7 x double], align 16
  %5 = alloca double, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca [8 x double], align 16
  %9 = alloca i32, align 4
  %10 = alloca [8 x double], align 16
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca 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 i32, align 4
  store double %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.r8_gamma.c, i64 56, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.r8_gamma.p, i64 64, i1 false)
  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.q, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store double 0x3CB0000000000000, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store double 0x400921FB54442D18, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store double 0x3FED67F1C864BEB5, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store double 1.716240e+02, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store double 1.790000e+308, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store double 2.230000e-308, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #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
  store i32 0, ptr %9, align 4, !tbaa !9
  store double 1.000000e+00, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !9
  %27 = load double, ptr %3, align 8, !tbaa !5
  store double %27, ptr %22, align 8, !tbaa !5
  %28 = load double, ptr %22, align 8, !tbaa !5
  %29 = fcmp ole double %28, 0.000000e+00
  br i1 %29, label %30, label %62

30:                                               ; preds = %1
  %31 = load double, ptr %3, align 8, !tbaa !5
  %32 = fneg double %31
  store double %32, ptr %22, align 8, !tbaa !5
  %33 = load double, ptr %22, align 8, !tbaa !5
  %34 = fptosi double %33 to i32
  %35 = sitofp i32 %34 to double
  store double %35, ptr %23, align 8, !tbaa !5
  %36 = load double, ptr %22, align 8, !tbaa !5
  %37 = load double, ptr %23, align 8, !tbaa !5
  %38 = fsub double %36, %37
  store double %38, ptr %13, align 8, !tbaa !5
  %39 = load double, ptr %13, align 8, !tbaa !5
  %40 = fcmp une double %39, 0.000000e+00
  br i1 %40, label %41, label %57

41:                                               ; preds = %30
  %42 = load double, ptr %23, align 8, !tbaa !5
  %43 = load double, ptr %23, align 8, !tbaa !5
  %44 = fmul double %43, 5.000000e-01
  %45 = fptosi double %44 to i32
  %46 = sitofp i32 %45 to double
  %47 = fmul double %46, 2.000000e+00
  %48 = fcmp une double %42, %47
  br i1 %48, label %49, label %50

49:                                               ; preds = %41
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %49, %41
  %51 = load double, ptr %13, align 8, !tbaa !5
  %52 = fmul double 0x400921FB54442D18, %51
  %53 = call double @sin(double noundef %52) #5
  %54 = fdiv double 0xC00921FB54442D18, %53
  store double %54, ptr %5, align 8, !tbaa !5
  %55 = load double, ptr %22, align 8, !tbaa !5
  %56 = fadd double %55, 1.000000e+00
  store double %56, ptr %22, align 8, !tbaa !5
  br label %61

57:                                               ; preds = %30
  %58 = load double, ptr %19, align 8, !tbaa !5
  store double %58, ptr %13, align 8, !tbaa !5
  %59 = load double, ptr %13, align 8, !tbaa !5
  store double %59, ptr %16, align 8, !tbaa !5
  %60 = load double, ptr %16, align 8, !tbaa !5
  store double %60, ptr %2, align 8
  store i32 1, ptr %26, align 4
  br label %216

61:                                               ; preds = %50
  br label %62

62:                                               ; preds = %61, %1
  %63 = load double, ptr %22, align 8, !tbaa !5
  %64 = fcmp olt double %63, 0x3CB0000000000000
  br i1 %64, label %65, label %77

65:                                               ; preds = %62
  %66 = load double, ptr %20, align 8, !tbaa !5
  %67 = load double, ptr %22, align 8, !tbaa !5
  %68 = fcmp ole double %66, %67
  br i1 %68, label %69, label %72

69:                                               ; preds = %65
  %70 = load double, ptr %22, align 8, !tbaa !5
  %71 = fdiv double 1.000000e+00, %70
  store double %71, ptr %13, align 8, !tbaa !5
  br label %76

72:                                               ; preds = %65
  %73 = load double, ptr %19, align 8, !tbaa !5
  store double %73, ptr %13, align 8, !tbaa !5
  %74 = load double, ptr %13, align 8, !tbaa !5
  store double %74, ptr %16, align 8, !tbaa !5
  %75 = load double, ptr %16, align 8, !tbaa !5
  store double %75, ptr %2, align 8
  store i32 1, ptr %26, align 4
  br label %216

76:                                               ; preds = %69
  br label %200

77:                                               ; preds = %62
  %78 = load double, ptr %22, align 8, !tbaa !5
  %79 = fcmp olt double %78, 1.200000e+01
  br i1 %79, label %80, label %154

80:                                               ; preds = %77
  %81 = load double, ptr %22, align 8, !tbaa !5
  store double %81, ptr %23, align 8, !tbaa !5
  %82 = load double, ptr %22, align 8, !tbaa !5
  %83 = fcmp olt double %82, 1.000000e+00
  br i1 %83, label %84, label %88

84:                                               ; preds = %80
  %85 = load double, ptr %22, align 8, !tbaa !5
  store double %85, ptr %25, align 8, !tbaa !5
  %86 = load double, ptr %22, align 8, !tbaa !5
  %87 = fadd double %86, 1.000000e+00
  store double %87, ptr %22, align 8, !tbaa !5
  br label %98

88:                                               ; preds = %80
  %89 = load double, ptr %22, align 8, !tbaa !5
  %90 = fptosi double %89 to i32
  %91 = sub nsw i32 %90, 1
  store i32 %91, ptr %7, align 4, !tbaa !9
  %92 = load double, ptr %22, align 8, !tbaa !5
  %93 = load i32, ptr %7, align 4, !tbaa !9
  %94 = sitofp i32 %93 to double
  %95 = fsub double %92, %94
  store double %95, ptr %22, align 8, !tbaa !5
  %96 = load double, ptr %22, align 8, !tbaa !5
  %97 = fsub double %96, 1.000000e+00
  store double %97, ptr %25, align 8, !tbaa !5
  br label %98

98:                                               ; preds = %88, %84
  store double 0.000000e+00, ptr %21, align 8, !tbaa !5
  store double 1.000000e+00, ptr %18, align 8, !tbaa !5
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %118, %98
  %100 = load i32, ptr %6, align 4, !tbaa !9
  %101 = icmp slt i32 %100, 8
  br i1 %101, label %102, label %121

102:                                              ; preds = %99
  %103 = load double, ptr %21, align 8, !tbaa !5
  %104 = load i32, ptr %6, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !5
  %108 = fadd double %103, %107
  %109 = load double, ptr %25, align 8, !tbaa !5
  %110 = fmul double %108, %109
  store double %110, ptr %21, align 8, !tbaa !5
  %111 = load double, ptr %18, align 8, !tbaa !5
  %112 = load double, ptr %25, align 8, !tbaa !5
  %113 = load i32, ptr %6, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [8 x double], ptr %10, i64 0, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !5
  %117 = call double @llvm.fmuladd.f64(double %111, double %112, double %116)
  store double %117, ptr %18, align 8, !tbaa !5
  br label %118

118:                                              ; preds = %102
  %119 = load i32, ptr %6, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %6, align 4, !tbaa !9
  br label %99, !llvm.loop !11

121:                                              ; preds = %99
  %122 = load double, ptr %21, align 8, !tbaa !5
  %123 = load double, ptr %18, align 8, !tbaa !5
  %124 = fdiv double %122, %123
  %125 = fadd double %124, 1.000000e+00
  store double %125, ptr %13, align 8, !tbaa !5
  %126 = load double, ptr %23, align 8, !tbaa !5
  %127 = load double, ptr %22, align 8, !tbaa !5
  %128 = fcmp olt double %126, %127
  br i1 %128, label %129, label %133

129:                                              ; preds = %121
  %130 = load double, ptr %13, align 8, !tbaa !5
  %131 = load double, ptr %23, align 8, !tbaa !5
  %132 = fdiv double %130, %131
  store double %132, ptr %13, align 8, !tbaa !5
  br label %153

133:                                              ; preds = %121
  %134 = load double, ptr %22, align 8, !tbaa !5
  %135 = load double, ptr %23, align 8, !tbaa !5
  %136 = fcmp olt double %134, %135
  br i1 %136, label %137, label %152

137:                                              ; preds = %133
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %148, %137
  %139 = load i32, ptr %6, align 4, !tbaa !9
  %140 = load i32, ptr %7, align 4, !tbaa !9
  %141 = icmp sle i32 %139, %140
  br i1 %141, label %142, label %151

142:                                              ; preds = %138
  %143 = load double, ptr %13, align 8, !tbaa !5
  %144 = load double, ptr %22, align 8, !tbaa !5
  %145 = fmul double %143, %144
  store double %145, ptr %13, align 8, !tbaa !5
  %146 = load double, ptr %22, align 8, !tbaa !5
  %147 = fadd double %146, 1.000000e+00
  store double %147, ptr %22, align 8, !tbaa !5
  br label %148

148:                                              ; preds = %142
  %149 = load i32, ptr %6, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %6, align 4, !tbaa !9
  br label %138, !llvm.loop !13

151:                                              ; preds = %138
  br label %152

152:                                              ; preds = %151, %133
  br label %153

153:                                              ; preds = %152, %129
  br label %199

154:                                              ; preds = %77
  %155 = load double, ptr %22, align 8, !tbaa !5
  %156 = load double, ptr %17, align 8, !tbaa !5
  %157 = fcmp ole double %155, %156
  br i1 %157, label %158, label %194

158:                                              ; preds = %154
  %159 = load double, ptr %22, align 8, !tbaa !5
  %160 = load double, ptr %22, align 8, !tbaa !5
  %161 = fmul double %159, %160
  store double %161, ptr %24, align 8, !tbaa !5
  %162 = getelementptr inbounds [7 x double], ptr %4, i64 0, i64 6
  %163 = load double, ptr %162, align 16, !tbaa !5
  store double %163, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %176, %158
  %165 = load i32, ptr %6, align 4, !tbaa !9
  %166 = icmp slt i32 %165, 6
  br i1 %166, label %167, label %179

167:                                              ; preds = %164
  %168 = load double, ptr %15, align 8, !tbaa !5
  %169 = load double, ptr %24, align 8, !tbaa !5
  %170 = fdiv double %168, %169
  %171 = load i32, ptr %6, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [7 x double], ptr %4, i64 0, i64 %172
  %174 = load double, ptr %173, align 8, !tbaa !5
  %175 = fadd double %170, %174
  store double %175, ptr %15, align 8, !tbaa !5
  br label %176

176:                                              ; preds = %167
  %177 = load i32, ptr %6, align 4, !tbaa !9
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %6, align 4, !tbaa !9
  br label %164, !llvm.loop !14

179:                                              ; preds = %164
  %180 = load double, ptr %15, align 8, !tbaa !5
  %181 = load double, ptr %22, align 8, !tbaa !5
  %182 = fdiv double %180, %181
  %183 = load double, ptr %22, align 8, !tbaa !5
  %184 = fsub double %182, %183
  %185 = fadd double %184, 0x3FED67F1C864BEB5
  store double %185, ptr %15, align 8, !tbaa !5
  %186 = load double, ptr %15, align 8, !tbaa !5
  %187 = load double, ptr %22, align 8, !tbaa !5
  %188 = fsub double %187, 5.000000e-01
  %189 = load double, ptr %22, align 8, !tbaa !5
  %190 = call double @log(double noundef %189) #5
  %191 = call double @llvm.fmuladd.f64(double %188, double %190, double %186)
  store double %191, ptr %15, align 8, !tbaa !5
  %192 = load double, ptr %15, align 8, !tbaa !5
  %193 = call double @exp(double noundef %192) #5
  store double %193, ptr %13, align 8, !tbaa !5
  br label %198

194:                                              ; preds = %154
  %195 = load double, ptr %19, align 8, !tbaa !5
  store double %195, ptr %13, align 8, !tbaa !5
  %196 = load double, ptr %13, align 8, !tbaa !5
  store double %196, ptr %16, align 8, !tbaa !5
  %197 = load double, ptr %16, align 8, !tbaa !5
  store double %197, ptr %2, align 8
  store i32 1, ptr %26, align 4
  br label %216

198:                                              ; preds = %179
  br label %199

199:                                              ; preds = %198, %153
  br label %200

200:                                              ; preds = %199, %76
  %201 = load i32, ptr %9, align 4, !tbaa !9
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %206

203:                                              ; preds = %200
  %204 = load double, ptr %13, align 8, !tbaa !5
  %205 = fneg double %204
  store double %205, ptr %13, align 8, !tbaa !5
  br label %206

206:                                              ; preds = %203, %200
  %207 = load double, ptr %5, align 8, !tbaa !5
  %208 = fcmp une double %207, 1.000000e+00
  br i1 %208, label %209, label %213

209:                                              ; preds = %206
  %210 = load double, ptr %5, align 8, !tbaa !5
  %211 = load double, ptr %13, align 8, !tbaa !5
  %212 = fdiv double %210, %211
  store double %212, ptr %13, align 8, !tbaa !5
  br label %213

213:                                              ; preds = %209, %206
  %214 = load double, ptr %13, align 8, !tbaa !5
  store double %214, ptr %16, align 8, !tbaa !5
  %215 = load double, ptr %16, align 8, !tbaa !5
  store double %215, ptr %2, align 8
  store i32 1, ptr %26, align 4
  br label %216

216:                                              ; preds = %213, %194, %72, %57
  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 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 64, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %4) #5
  %217 = load double, ptr %2, align 8
  ret double %217
}

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}


; 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.c = external hidden unnamed_addr constant [7 x double], align 16
@__const.r8_gamma.p = external hidden unnamed_addr constant [8 x double], align 16
@__const.r8_gamma.q = 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)
declare double @sin(double noundef) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind memory(write) uwtable
define dso_local double @r8_gamma(double noundef %0) local_unnamed_addr #2 {
  %2 = fcmp ugt double %0, 0.000000e+00
  br i1 %2, label %19, label %3

3:                                                ; preds = %1
  %4 = fneg double %0
  %5 = fptosi double %4 to i32
  %6 = sitofp i32 %5 to double
  %7 = fsub double %4, %6
  %8 = fcmp une double %7, 0.000000e+00
  br i1 %8, label %9, label %138

9:                                                ; preds = %3
  %10 = fmul double %6, 5.000000e-01
  %11 = fptosi double %10 to i32
  %12 = sitofp i32 %11 to double
  %13 = fmul double %12, 2.000000e+00
  %14 = fcmp oeq double %13, %6
  %15 = fmul double %7, 0x400921FB54442D18
  %16 = tail call double @sin(double noundef %15) #3
  %17 = fdiv double 0xC00921FB54442D18, %16
  %18 = fsub double 1.000000e+00, %0
  br label %19

19:                                               ; preds = %9, %1
  %.189 = phi i1 [ %14, %9 ], [ true, %1 ]
  %.081 = phi double [ %17, %9 ], [ 1.000000e+00, %1 ]
  %.079 = phi double [ %18, %9 ], [ %0, %1 ]
  %20 = fcmp olt double %.079, 0x3CB0000000000000
  br i1 %20, label %21, label %25

21:                                               ; preds = %19
  %22 = fcmp ult double %.079, 2.230000e-308
  br i1 %22, label %138, label %23

23:                                               ; preds = %21
  %24 = fdiv double 1.000000e+00, %.079
  br label %.loopexit

25:                                               ; preds = %19
  %26 = fcmp olt double %.079, 1.200000e+01
  br i1 %26, label %27, label %103

27:                                               ; preds = %25
  %28 = fcmp olt double %.079, 1.000000e+00
  br i1 %28, label %29, label %31

29:                                               ; preds = %27
  %30 = fadd double %.079, 1.000000e+00
  br label %37

31:                                               ; preds = %27
  %32 = fptosi double %.079 to i32
  %33 = add nsw i32 %32, -1
  %34 = sitofp i32 %33 to double
  %35 = fsub double %.079, %34
  %36 = fadd double %35, -1.000000e+00
  br label %37

37:                                               ; preds = %31, %29
  %.086 = phi i32 [ 0, %29 ], [ %33, %31 ]
  %.1 = phi double [ %30, %29 ], [ %35, %31 ]
  %.0 = phi double [ %.079, %29 ], [ %36, %31 ]
  %38 = load double, ptr @__const.r8_gamma.p, align 16, !tbaa !5
  %39 = fadd double %38, 0.000000e+00
  %40 = fmul double %.0, %39
  %41 = load double, ptr @__const.r8_gamma.q, align 16, !tbaa !5
  %42 = fadd double %.0, %41
  %43 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.p, i64 8), align 8, !tbaa !5
  %44 = fadd double %40, %43
  %45 = fmul double %.0, %44
  %46 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.q, i64 8), align 8, !tbaa !5
  %47 = tail call double @llvm.fmuladd.f64(double %42, double %.0, double %46)
  %48 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.p, i64 16), align 16, !tbaa !5
  %49 = fadd double %45, %48
  %50 = fmul double %.0, %49
  %51 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.q, i64 16), align 16, !tbaa !5
  %52 = tail call double @llvm.fmuladd.f64(double %47, double %.0, double %51)
  %53 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.p, i64 24), align 8, !tbaa !5
  %54 = fadd double %50, %53
  %55 = fmul double %.0, %54
  %56 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.q, i64 24), align 8, !tbaa !5
  %57 = tail call double @llvm.fmuladd.f64(double %52, double %.0, double %56)
  %58 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.p, i64 32), align 16, !tbaa !5
  %59 = fadd double %55, %58
  %60 = fmul double %.0, %59
  %61 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.q, i64 32), align 16, !tbaa !5
  %62 = tail call double @llvm.fmuladd.f64(double %57, double %.0, double %61)
  %63 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.p, i64 40), align 8, !tbaa !5
  %64 = fadd double %60, %63
  %65 = fmul double %.0, %64
  %66 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.q, i64 40), align 8, !tbaa !5
  %67 = tail call double @llvm.fmuladd.f64(double %62, double %.0, double %66)
  %68 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.p, i64 48), align 16, !tbaa !5
  %69 = fadd double %65, %68
  %70 = fmul double %.0, %69
  %71 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.q, i64 48), align 16, !tbaa !5
  %72 = tail call double @llvm.fmuladd.f64(double %67, double %.0, double %71)
  %73 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.p, i64 56), align 8, !tbaa !5
  %74 = fadd double %70, %73
  %75 = fmul double %.0, %74
  %76 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.q, i64 56), align 8, !tbaa !5
  %77 = tail call double @llvm.fmuladd.f64(double %72, double %.0, double %76)
  %78 = fdiv double %75, %77
  %79 = fadd double %78, 1.000000e+00
  %80 = fcmp olt double %.079, %.1
  br i1 %80, label %81, label %83

81:                                               ; preds = %37
  %82 = fdiv double %79, %.079
  br label %.loopexit

83:                                               ; preds = %37
  %84 = fcmp uge double %.1, %.079
  %.not102 = icmp slt i32 %.086, 1
  %or.cond = select i1 %84, i1 true, i1 %.not102
  br i1 %or.cond, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %83
  %85 = add nsw i32 %.086, -1
  %xtraiter = and i32 %.086, 7
  %86 = icmp ult i32 %85, 7
  br i1 %86, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i32 %.086, 2147483640
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.2105 = phi double [ %.1, %.lr.ph.preheader.new ], [ %102, %.lr.ph ]
  %.090103 = phi double [ %79, %.lr.ph.preheader.new ], [ %101, %.lr.ph ]
  %niter = phi i32 [ 0, %.lr.ph.preheader.new ], [ %niter.next.7, %.lr.ph ]
  %87 = fmul double %.090103, %.2105
  %88 = fadd double %.2105, 1.000000e+00
  %89 = fmul double %87, %88
  %90 = fadd double %88, 1.000000e+00
  %91 = fmul double %89, %90
  %92 = fadd double %90, 1.000000e+00
  %93 = fmul double %91, %92
  %94 = fadd double %92, 1.000000e+00
  %95 = fmul double %93, %94
  %96 = fadd double %94, 1.000000e+00
  %97 = fmul double %95, %96
  %98 = fadd double %96, 1.000000e+00
  %99 = fmul double %97, %98
  %100 = fadd double %98, 1.000000e+00
  %101 = fmul double %99, %100
  %102 = fadd double %100, 1.000000e+00
  %niter.next.7 = add i32 %niter, 8
  %niter.ncmp.7 = icmp eq i32 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !9

103:                                              ; preds = %25
  %104 = fcmp ugt double %.079, 1.716240e+02
  br i1 %104, label %138, label %105

105:                                              ; preds = %103
  %106 = fmul double %.079, %.079
  %107 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.c, i64 48), align 16, !tbaa !5
  %108 = fdiv double %107, %106
  %109 = load double, ptr @__const.r8_gamma.c, align 16, !tbaa !5
  %110 = fadd double %108, %109
  %111 = fdiv double %110, %106
  %112 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.c, i64 8), align 8, !tbaa !5
  %113 = fadd double %111, %112
  %114 = fdiv double %113, %106
  %115 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.c, i64 16), align 16, !tbaa !5
  %116 = fadd double %114, %115
  %117 = fdiv double %116, %106
  %118 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.c, i64 24), align 8, !tbaa !5
  %119 = fadd double %117, %118
  %120 = fdiv double %119, %106
  %121 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.c, i64 32), align 16, !tbaa !5
  %122 = fadd double %120, %121
  %123 = fdiv double %122, %106
  %124 = load double, ptr getelementptr inbounds (i8, ptr @__const.r8_gamma.c, i64 40), align 8, !tbaa !5
  %125 = fadd double %123, %124
  %126 = fdiv double %125, %.079
  %127 = fsub double %126, %.079
  %128 = fadd double %127, 0x3FED67F1C864BEB5
  %129 = fadd double %.079, -5.000000e-01
  %130 = tail call double @log(double noundef %.079) #3
  %131 = tail call double @llvm.fmuladd.f64(double %129, double %130, double %128)
  %132 = tail call double @exp(double noundef %131) #3
  br label %.loopexit

.loopexit.loopexit.unr-lcssa:                     ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph.preheader ], [ %101, %.lr.ph ]
  %.2105.unr = phi double [ %.1, %.lr.ph.preheader ], [ %102, %.lr.ph ]
  %.090103.unr = phi double [ %79, %.lr.ph.preheader ], [ %101, %.lr.ph ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.loopexit.loopexit.unr-lcssa, %.lr.ph.epil
  %.2105.epil = phi double [ %134, %.lr.ph.epil ], [ %.2105.unr, %.loopexit.loopexit.unr-lcssa ]
  %.090103.epil = phi double [ %133, %.lr.ph.epil ], [ %.090103.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %133 = fmul double %.090103.epil, %.2105.epil
  %134 = fadd double %.2105.epil, 1.000000e+00
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.loopexit, label %.lr.ph.epil, !llvm.loop !11

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.lr.ph.epil, %105, %83, %81, %23
  %.191 = phi double [ %24, %23 ], [ %82, %81 ], [ %79, %83 ], [ %132, %105 ], [ %.lcssa.ph, %.loopexit.loopexit.unr-lcssa ], [ %133, %.lr.ph.epil ]
  %135 = fneg double %.191
  %.292 = select i1 %.189, double %.191, double %135
  %136 = fcmp une double %.081, 1.000000e+00
  %137 = fdiv double %.081, %.292
  %.3 = select i1 %136, double %137, double %.292
  br label %138

138:                                              ; preds = %103, %21, %3, %.loopexit
  %.078 = phi double [ %.3, %.loopexit ], [ 1.790000e+308, %3 ], [ 1.790000e+308, %21 ], [ 1.790000e+308, %103 ]
  ret double %.078
}

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 = { nofree nounwind 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 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.unroll.disable"}


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