; LLVM IR from EdoPro98/SimSiPM :: src/SiPMRandom.ll (ZN4sipm10SiPMRandom12randGaussianEdd)

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

; 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 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_ZN4sipm10SiPMRandom12randGaussianEdd(ptr noundef nonnull align 64 dereferenceable(524416) %0, double noundef %1, double noundef %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca double, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %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
  store ptr %0, ptr %5, align 8, !tbaa !5
  store double %1, ptr %6, align 8, !tbaa !9
  store double %2, ptr %7, align 8, !tbaa !9
  %20 = load ptr, ptr %5, align 8
  br label %21

21:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %22 = call noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %20) #6
  store double %22, ptr %8, align 8, !tbaa !9
  %23 = load double, ptr %8, align 8, !tbaa !9
  %24 = fcmp ogt double %23, 0x3FE0838D38EBB77C
  br i1 %24, label %25, label %32

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %26 = load double, ptr %8, align 8, !tbaa !9
  %27 = call double @llvm.fmuladd.f64(double 0x401087EABA6255CF, double %26, double 0xC0090FD574C4AB9F)
  store double %27, ptr %9, align 8, !tbaa !9
  %28 = load double, ptr %9, align 8, !tbaa !9
  %29 = load double, ptr %7, align 8, !tbaa !9
  %30 = load double, ptr %6, align 8, !tbaa !9
  %31 = call double @llvm.fmuladd.f64(double %28, double %29, double %30)
  store double %31, ptr %4, align 8
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %195

32:                                               ; preds = %21
  %33 = load double, ptr %8, align 8, !tbaa !9
  %34 = fcmp olt double %33, 0x3FBBA4B436CB3A9E
  br i1 %34, label %35, label %52

35:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %36 = load double, ptr %8, align 8, !tbaa !9
  %37 = call double @llvm.fmuladd.f64(double 0x40328588B01256F0, double %36, double -1.000000e+00)
  store double %37, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %38 = load double, ptr %11, align 8, !tbaa !9
  %39 = fcmp ogt double %38, 0.000000e+00
  br i1 %39, label %40, label %43

40:                                               ; preds = %35
  %41 = load double, ptr %11, align 8, !tbaa !9
  %42 = fadd double 1.000000e+00, %41
  br label %46

43:                                               ; preds = %35
  %44 = load double, ptr %11, align 8, !tbaa !9
  %45 = fadd double -1.000000e+00, %44
  br label %46

46:                                               ; preds = %43, %40
  %47 = phi double [ %42, %40 ], [ %45, %43 ]
  store double %47, ptr %12, align 8, !tbaa !9
  %48 = load double, ptr %12, align 8, !tbaa !9
  %49 = load double, ptr %7, align 8, !tbaa !9
  %50 = load double, ptr %6, align 8, !tbaa !9
  %51 = call double @llvm.fmuladd.f64(double %48, double %49, double %50)
  store double %51, ptr %4, align 8
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %195

52:                                               ; preds = %32
  %53 = load double, ptr %8, align 8, !tbaa !9
  %54 = fcmp olt double %53, 0x3FDEF8E58E289108
  br i1 %54, label %55, label %130

55:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %56 = call noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %20) #6
  %57 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %56, double -1.000000e+00)
  store double %57, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %58 = load double, ptr %13, align 8, !tbaa !9
  %59 = fcmp ogt double %58, 0.000000e+00
  br i1 %59, label %60, label %63

60:                                               ; preds = %55
  %61 = load double, ptr %13, align 8, !tbaa !9
  %62 = fsub double 2.000000e+00, %61
  br label %66

63:                                               ; preds = %55
  %64 = load double, ptr %13, align 8, !tbaa !9
  %65 = fsub double -2.000000e+00, %64
  br label %66

66:                                               ; preds = %63, %60
  %67 = phi double [ %62, %60 ], [ %65, %63 ]
  store double %67, ptr %14, align 8, !tbaa !9
  %68 = load double, ptr %8, align 8, !tbaa !9
  %69 = fsub double 0x3FF72C00B2A4CFD0, %68
  %70 = load double, ptr %14, align 8, !tbaa !9
  %71 = invoke noundef double @_ZSt3absd(double noundef %70)
          to label %72 unwind label %199

72:                                               ; preds = %66
  %73 = fadd double 0x3FF77B0B43D5EDB3, %71
  %74 = fmul double %69, %73
  %75 = fcmp olt double %74, 0x400A7509BDDDB56C
  br i1 %75, label %76, label %81

76:                                               ; preds = %72
  %77 = load double, ptr %14, align 8, !tbaa !9
  %78 = load double, ptr %7, align 8, !tbaa !9
  %79 = load double, ptr %6, align 8, !tbaa !9
  %80 = call double @llvm.fmuladd.f64(double %77, double %78, double %79)
  store double %80, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %127

81:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %82 = load double, ptr %13, align 8, !tbaa !9
  %83 = load double, ptr %13, align 8, !tbaa !9
  %84 = fmul double %82, %83
  store double %84, ptr %15, align 8, !tbaa !9
  %85 = load double, ptr %8, align 8, !tbaa !9
  %86 = fadd double %85, 0x3FF0955F3671562F
  %87 = load double, ptr %15, align 8, !tbaa !9
  %88 = fadd double 0x400D0CE0F8B15FBD, %87
  %89 = fmul double %86, %88
  %90 = fcmp olt double %89, 0x40152EF1FBB8FC13
  br i1 %90, label %91, label %96

91:                                               ; preds = %81
  %92 = load double, ptr %13, align 8, !tbaa !9
  %93 = load double, ptr %7, align 8, !tbaa !9
  %94 = load double, ptr %6, align 8, !tbaa !9
  %95 = call double @llvm.fmuladd.f64(double %92, double %93, double %94)
  store double %95, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %126

96:                                               ; preds = %81
  %97 = load double, ptr %8, align 8, !tbaa !9
  %98 = fsub double 0x3FE2F1096E24062B, %97
  %99 = load double, ptr %14, align 8, !tbaa !9
  %100 = load double, ptr %14, align 8, !tbaa !9
  %101 = call double @llvm.fmuladd.f64(double %99, double %100, double 0x3FDCE6BB25ACF922)
  %102 = fneg double %101
  %103 = fmul double %102, 5.000000e-01
  %104 = call double @exp(double noundef %103) #6
  %105 = fcmp olt double %98, %104
  br i1 %105, label %106, label %111

106:                                              ; preds = %96
  %107 = load double, ptr %14, align 8, !tbaa !9
  %108 = load double, ptr %7, align 8, !tbaa !9
  %109 = load double, ptr %6, align 8, !tbaa !9
  %110 = call double @llvm.fmuladd.f64(double %107, double %108, double %109)
  store double %110, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %126

111:                                              ; preds = %96
  %112 = load double, ptr %8, align 8, !tbaa !9
  %113 = fadd double %112, 0x3FD80FB88075C260
  %114 = load double, ptr %15, align 8, !tbaa !9
  %115 = fadd double %114, 0x3FDCE6BB25ACF922
  %116 = fneg double %115
  %117 = fmul double %116, 5.000000e-01
  %118 = call double @exp(double noundef %117) #6
  %119 = fcmp olt double %113, %118
  br i1 %119, label %120, label %125

120:                                              ; preds = %111
  %121 = load double, ptr %13, align 8, !tbaa !9
  %122 = load double, ptr %7, align 8, !tbaa !9
  %123 = load double, ptr %6, align 8, !tbaa !9
  %124 = call double @llvm.fmuladd.f64(double %121, double %122, double %123)
  store double %124, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %126

125:                                              ; preds = %111
  store i32 0, ptr %10, align 4
  br label %126

126:                                              ; preds = %125, %120, %106, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %127

127:                                              ; preds = %126, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %128 = load i32, ptr %10, align 4
  switch i32 %128, label %195 [
    i32 0, label %129
  ]

129:                                              ; preds = %127
  br label %130

130:                                              ; preds = %129, %52
  br label %131

131:                                              ; preds = %194, %130
  br label %132

132:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %133 = call noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %20) #6
  store double %133, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %134 = call noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %20) #6
  %135 = fmul double 0x3FC7F9B983B3980C, %134
  store double %135, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %136 = load double, ptr %16, align 8, !tbaa !9
  %137 = call double @llvm.fmuladd.f64(double 0xBFE7440D9C966643, double %136, double 0x3FDD427BFD834C46)
  %138 = load double, ptr %17, align 8, !tbaa !9
  %139 = fsub double %137, %138
  store double %139, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %140 = load double, ptr %18, align 8, !tbaa !9
  %141 = fcmp ogt double %140, 0.000000e+00
  br i1 %141, label %142, label %147

142:                                              ; preds = %132
  %143 = load double, ptr %17, align 8, !tbaa !9
  %144 = load double, ptr %16, align 8, !tbaa !9
  %145 = fdiv double %143, %144
  %146 = fadd double 2.000000e+00, %145
  store double %146, ptr %19, align 8, !tbaa !9
  br label %157

147:                                              ; preds = %132
  %148 = load double, ptr %16, align 8, !tbaa !9
  %149 = fsub double 1.000000e+00, %148
  store double %149, ptr %16, align 8, !tbaa !9
  %150 = load double, ptr %17, align 8, !tbaa !9
  %151 = fsub double 0x3FC7F9B983B3980C, %150
  store double %151, ptr %17, align 8, !tbaa !9
  %152 = load double, ptr %17, align 8, !tbaa !9
  %153 = load double, ptr %16, align 8, !tbaa !9
  %154 = fdiv double %152, %153
  %155 = fadd double 2.000000e+00, %154
  %156 = fneg double %155
  store double %156, ptr %19, align 8, !tbaa !9
  br label %157

157:                                              ; preds = %147, %142
  %158 = load double, ptr %17, align 8, !tbaa !9
  %159 = fsub double %158, 0x3FEC54B3A30C076B
  %160 = load double, ptr %16, align 8, !tbaa !9
  %161 = fadd double %159, %160
  %162 = load double, ptr %16, align 8, !tbaa !9
  %163 = fadd double 0x3FD1BAD253935DBD, %162
  %164 = call double @llvm.fmuladd.f64(double %161, double %163, double 0x3FCF64CBF12A862E)
  %165 = fcmp olt double %164, 0.000000e+00
  br i1 %165, label %166, label %171

166:                                              ; preds = %157
  %167 = load double, ptr %19, align 8, !tbaa !9
  %168 = load double, ptr %7, align 8, !tbaa !9
  %169 = load double, ptr %6, align 8, !tbaa !9
  %170 = call double @llvm.fmuladd.f64(double %167, double %168, double %169)
  store double %170, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %192

171:                                              ; preds = %157
  %172 = load double, ptr %17, align 8, !tbaa !9
  %173 = load double, ptr %16, align 8, !tbaa !9
  %174 = fadd double %173, 0x3FA3F23FD77F2D05
  %175 = fcmp olt double %172, %174
  br i1 %175, label %176, label %191

176:                                              ; preds = %171
  %177 = load double, ptr %19, align 8, !tbaa !9
  %178 = load double, ptr %19, align 8, !tbaa !9
  %179 = fmul double %177, %178
  %180 = load double, ptr %16, align 8, !tbaa !9
  %181 = call double @log(double noundef %180) #6
  %182 = fsub double 0x3FE01805C0878FC4, %181
  %183 = fmul double 4.000000e+00, %182
  %184 = fcmp olt double %179, %183
  br i1 %184, label %185, label %190

185:                                              ; preds = %176
  %186 = load double, ptr %19, align 8, !tbaa !9
  %187 = load double, ptr %7, align 8, !tbaa !9
  %188 = load double, ptr %6, align 8, !tbaa !9
  %189 = call double @llvm.fmuladd.f64(double %186, double %187, double %188)
  store double %189, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %192

190:                                              ; preds = %176
  br label %191

191:                                              ; preds = %190, %171
  store i32 0, ptr %10, align 4
  br label %192

192:                                              ; preds = %191, %185, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %193 = load i32, ptr %10, align 4
  switch i32 %193, label %195 [
    i32 0, label %194
  ]

194:                                              ; preds = %192
  br label %131, !llvm.loop !11

195:                                              ; preds = %192, %127, %46, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %196 = load double, ptr %4, align 8
  ret double %196

197:                                              ; No predecessors!
  br label %198

198:                                              ; preds = %197
  unreachable

199:                                              ; preds = %66
  %200 = landingpad { ptr, i32 }
          catch ptr null
  %201 = extractvalue { ptr, i32 } %200, 0
  call void @__clang_call_terminate(ptr %201) #7
  unreachable
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #5

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noinline noreturn nounwind uwtable "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 #6 = { nounwind }
attributes #7 = { noreturn 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_ZN4sipm10SiPMRandom12randGaussianEdd(ptr noundef nonnull align 64 dereferenceable(524416) %0, double noundef %1, double noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = tail call noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %0) #4
  %5 = fcmp ogt double %4, 0x3FE0838D38EBB77C
  br i1 %5, label %6, label %8

6:                                                ; preds = %3
  %7 = tail call double @llvm.fmuladd.f64(double %4, double 0x401087EABA6255CF, double 0xC0090FD574C4AB9F)
  br label %.thread

8:                                                ; preds = %3
  %9 = fcmp olt double %4, 0x3FBBA4B436CB3A9E
  br i1 %9, label %10, label %14

10:                                               ; preds = %8
  %11 = tail call double @llvm.fmuladd.f64(double %4, double 0x40328588B01256F0, double -1.000000e+00)
  %12 = fcmp ogt double %11, 0.000000e+00
  %.v75 = select i1 %12, double 1.000000e+00, double -1.000000e+00
  %13 = fadd double %11, %.v75
  br label %.thread

14:                                               ; preds = %8
  %15 = fcmp olt double %4, 0x3FDEF8E58E289108
  br i1 %15, label %16, label %.preheader

16:                                               ; preds = %14
  %17 = tail call noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %0) #4
  %18 = tail call double @llvm.fmuladd.f64(double %17, double 2.000000e+00, double -1.000000e+00)
  %19 = fcmp ogt double %18, 0.000000e+00
  %.v = select i1 %19, double 2.000000e+00, double -2.000000e+00
  %20 = fsub double %.v, %18
  %21 = fsub double 0x3FF72C00B2A4CFD0, %4
  %22 = tail call noundef double @_ZSt3absd(double noundef %20)
  %23 = fadd double %22, 0x3FF77B0B43D5EDB3
  %24 = fmul double %21, %23
  %25 = fcmp olt double %24, 0x400A7509BDDDB56C
  br i1 %25, label %.thread, label %26

26:                                               ; preds = %16
  %27 = fmul double %18, %18
  %28 = fadd double %4, 0x3FF0955F3671562F
  %29 = fadd double %27, 0x400D0CE0F8B15FBD
  %30 = fmul double %28, %29
  %31 = fcmp olt double %30, 0x40152EF1FBB8FC13
  br i1 %31, label %.thread, label %32

32:                                               ; preds = %26
  %33 = fsub double 0x3FE2F1096E24062B, %4
  %34 = tail call double @llvm.fmuladd.f64(double %20, double %20, double 0x3FDCE6BB25ACF922)
  %35 = fmul double %34, -5.000000e-01
  %36 = tail call double @exp(double noundef %35) #4
  %37 = fcmp olt double %33, %36
  br i1 %37, label %.thread, label %38

38:                                               ; preds = %32
  %39 = fadd double %4, 0x3FD80FB88075C260
  %40 = fadd double %27, 0x3FDCE6BB25ACF922
  %41 = fmul double %40, -5.000000e-01
  %42 = tail call double @exp(double noundef %41) #4
  %43 = fcmp olt double %39, %42
  br i1 %43, label %.thread, label %.preheader

.preheader:                                       ; preds = %38, %14
  br label %44

44:                                               ; preds = %.backedge, %.preheader
  %45 = tail call noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %0) #4
  %46 = tail call noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %0) #4
  %47 = fmul double %46, 0x3FC7F9B983B3980C
  %48 = tail call double @llvm.fmuladd.f64(double %45, double 0xBFE7440D9C966643, double 0x3FDD427BFD834C46)
  %49 = fcmp ogt double %48, %47
  br i1 %49, label %50, label %53

50:                                               ; preds = %44
  %51 = fdiv double %47, %45
  %52 = fadd double %51, 2.000000e+00
  br label %59

53:                                               ; preds = %44
  %54 = fsub double 1.000000e+00, %45
  %55 = fsub double 0x3FC7F9B983B3980C, %47
  %56 = fdiv double %55, %54
  %57 = fadd double %56, 2.000000e+00
  %58 = fneg double %57
  br label %59

59:                                               ; preds = %53, %50
  %.069 = phi double [ %45, %50 ], [ %54, %53 ]
  %.068 = phi double [ %47, %50 ], [ %55, %53 ]
  %.0 = phi double [ %52, %50 ], [ %58, %53 ]
  %60 = fadd double %.068, 0xBFEC54B3A30C076B
  %61 = fadd double %.069, %60
  %62 = fadd double %.069, 0x3FD1BAD253935DBD
  %63 = tail call double @llvm.fmuladd.f64(double %61, double %62, double 0x3FCF64CBF12A862E)
  %64 = fcmp olt double %63, 0.000000e+00
  br i1 %64, label %.thread, label %65

65:                                               ; preds = %59
  %66 = fadd double %.069, 0x3FA3F23FD77F2D05
  %67 = fcmp olt double %.068, %66
  br i1 %67, label %68, label %.backedge

.backedge:                                        ; preds = %65, %68
  br label %44, !llvm.loop !5

68:                                               ; preds = %65
  %69 = fmul double %.0, %.0
  %70 = tail call double @log(double noundef %.069) #4
  %71 = fsub double 0x3FE01805C0878FC4, %70
  %72 = fmul double %71, 4.000000e+00
  %73 = fcmp olt double %69, %72
  br i1 %73, label %.thread, label %.backedge

.thread:                                          ; preds = %68, %59, %38, %32, %26, %16, %10, %6
  %.0.lcssa84.sink = phi double [ %13, %10 ], [ %7, %6 ], [ %20, %16 ], [ %18, %26 ], [ %20, %32 ], [ %18, %38 ], [ %.0, %59 ], [ %.0, %68 ]
  %74 = tail call double @llvm.fmuladd.f64(double %.0.lcssa84.sink, double %2, double %1)
  ret double %74
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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 = { inlinehint mustprogress 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass