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

; 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: nounwind
declare float @logf(float noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4sipm10SiPMRandom4RandIfEET_v(ptr noundef nonnull align 64 dereferenceable(524416)) #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef float @_ZN4sipm10SiPMRandom13randGaussianFEff(ptr noundef nonnull align 64 dereferenceable(524416) %0, float noundef %1, float noundef %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca float, align 4
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store float %1, ptr %6, align 4, !tbaa !9
  store float %2, ptr %7, align 4, !tbaa !9
  %20 = load ptr, ptr %5, align 8
  br label %21

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

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

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

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

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

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

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

52:                                               ; preds = %32
  %53 = load float, ptr %8, align 4, !tbaa !9
  %54 = fcmp olt float %53, 0x3FDEF8E580000000
  br i1 %54, label %55, label %134

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

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

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

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

72:                                               ; preds = %66
  %73 = fadd float 0x3FF77B0B40000000, %71
  %74 = fmul float %69, %73
  %75 = fcmp olt float %74, 0x400A7509C0000000
  br i1 %75, label %76, label %81

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

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

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

96:                                               ; preds = %81
  %97 = load float, ptr %8, align 4, !tbaa !9
  %98 = fsub float 0x3FE2F10960000000, %97
  %99 = fpext float %98 to double
  %100 = load float, ptr %14, align 4, !tbaa !9
  %101 = load float, ptr %14, align 4, !tbaa !9
  %102 = call float @llvm.fmuladd.f32(float %100, float %101, float 0x3FDCE6BB20000000)
  %103 = fneg float %102
  %104 = fpext float %103 to double
  %105 = fmul double %104, 5.000000e-01
  %106 = call double @exp(double noundef %105) #6
  %107 = fcmp olt double %99, %106
  br i1 %107, label %108, label %113

108:                                              ; preds = %96
  %109 = load float, ptr %14, align 4, !tbaa !9
  %110 = load float, ptr %7, align 4, !tbaa !9
  %111 = load float, ptr %6, align 4, !tbaa !9
  %112 = call float @llvm.fmuladd.f32(float %109, float %110, float %111)
  store float %112, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %130

113:                                              ; preds = %96
  %114 = load float, ptr %8, align 4, !tbaa !9
  %115 = fadd float %114, 0x3FD80FB880000000
  %116 = fpext float %115 to double
  %117 = load float, ptr %15, align 4, !tbaa !9
  %118 = fadd float %117, 0x3FDCE6BB20000000
  %119 = fneg float %118
  %120 = fpext float %119 to double
  %121 = fmul double %120, 5.000000e-01
  %122 = call double @exp(double noundef %121) #6
  %123 = fcmp olt double %116, %122
  br i1 %123, label %124, label %129

124:                                              ; preds = %113
  %125 = load float, ptr %13, align 4, !tbaa !9
  %126 = load float, ptr %7, align 4, !tbaa !9
  %127 = load float, ptr %6, align 4, !tbaa !9
  %128 = call float @llvm.fmuladd.f32(float %125, float %126, float %127)
  store float %128, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %130

129:                                              ; preds = %113
  store i32 0, ptr %10, align 4
  br label %130

130:                                              ; preds = %129, %124, %108, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %131

131:                                              ; preds = %130, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %132 = load i32, ptr %10, align 4
  switch i32 %132, label %199 [
    i32 0, label %133
  ]

133:                                              ; preds = %131
  br label %134

134:                                              ; preds = %133, %52
  br label %135

135:                                              ; preds = %198, %134
  br label %136

136:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %137 = call noundef float @_ZN4sipm10SiPMRandom4RandIfEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %20) #6
  store float %137, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %138 = call noundef float @_ZN4sipm10SiPMRandom4RandIfEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %20) #6
  %139 = fmul float 0x3FC7F9B980000000, %138
  store float %139, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %140 = load float, ptr %16, align 4, !tbaa !9
  %141 = call float @llvm.fmuladd.f32(float 0xBFE7440DA0000000, float %140, float 0x3FDD427C00000000)
  %142 = load float, ptr %17, align 4, !tbaa !9
  %143 = fsub float %141, %142
  store float %143, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %144 = load float, ptr %18, align 4, !tbaa !9
  %145 = fcmp ogt float %144, 0.000000e+00
  br i1 %145, label %146, label %151

146:                                              ; preds = %136
  %147 = load float, ptr %17, align 4, !tbaa !9
  %148 = load float, ptr %16, align 4, !tbaa !9
  %149 = fdiv float %147, %148
  %150 = fadd float 2.000000e+00, %149
  store float %150, ptr %19, align 4, !tbaa !9
  br label %161

151:                                              ; preds = %136
  %152 = load float, ptr %16, align 4, !tbaa !9
  %153 = fsub float 1.000000e+00, %152
  store float %153, ptr %16, align 4, !tbaa !9
  %154 = load float, ptr %17, align 4, !tbaa !9
  %155 = fsub float 0x3FC7F9B980000000, %154
  store float %155, ptr %17, align 4, !tbaa !9
  %156 = load float, ptr %17, align 4, !tbaa !9
  %157 = load float, ptr %16, align 4, !tbaa !9
  %158 = fdiv float %156, %157
  %159 = fadd float 2.000000e+00, %158
  %160 = fneg float %159
  store float %160, ptr %19, align 4, !tbaa !9
  br label %161

161:                                              ; preds = %151, %146
  %162 = load float, ptr %17, align 4, !tbaa !9
  %163 = fsub float %162, 0x3FEC54B3A0000000
  %164 = load float, ptr %16, align 4, !tbaa !9
  %165 = fadd float %163, %164
  %166 = load float, ptr %16, align 4, !tbaa !9
  %167 = fadd float 0x3FD1BAD260000000, %166
  %168 = call float @llvm.fmuladd.f32(float %165, float %167, float 0x3FCF64CC00000000)
  %169 = fcmp olt float %168, 0.000000e+00
  br i1 %169, label %170, label %175

170:                                              ; preds = %161
  %171 = load float, ptr %19, align 4, !tbaa !9
  %172 = load float, ptr %7, align 4, !tbaa !9
  %173 = load float, ptr %6, align 4, !tbaa !9
  %174 = call float @llvm.fmuladd.f32(float %171, float %172, float %173)
  store float %174, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %196

175:                                              ; preds = %161
  %176 = load float, ptr %17, align 4, !tbaa !9
  %177 = load float, ptr %16, align 4, !tbaa !9
  %178 = fadd float %177, 0x3FA3F23FE0000000
  %179 = fcmp olt float %176, %178
  br i1 %179, label %180, label %195

180:                                              ; preds = %175
  %181 = load float, ptr %19, align 4, !tbaa !9
  %182 = load float, ptr %19, align 4, !tbaa !9
  %183 = fmul float %181, %182
  %184 = load float, ptr %16, align 4, !tbaa !9
  %185 = call float @logf(float noundef %184) #6
  %186 = fsub float 0x3FE01805C0000000, %185
  %187 = fmul float 4.000000e+00, %186
  %188 = fcmp olt float %183, %187
  br i1 %188, label %189, label %194

189:                                              ; preds = %180
  %190 = load float, ptr %19, align 4, !tbaa !9
  %191 = load float, ptr %7, align 4, !tbaa !9
  %192 = load float, ptr %6, align 4, !tbaa !9
  %193 = call float @llvm.fmuladd.f32(float %190, float %191, float %192)
  store float %193, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %196

194:                                              ; preds = %180
  br label %195

195:                                              ; preds = %194, %175
  store i32 0, ptr %10, align 4
  br label %196

196:                                              ; preds = %195, %189, %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %197 = load i32, ptr %10, align 4
  switch i32 %197, label %199 [
    i32 0, label %198
  ]

198:                                              ; preds = %196
  br label %135, !llvm.loop !11

199:                                              ; preds = %196, %131, %46, %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %200 = load float, ptr %4, align 4
  ret float %200

201:                                              ; No predecessors!
  br label %202

202:                                              ; preds = %201
  unreachable

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

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

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 = { 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 #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"float", !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: mustprogress nofree nounwind willreturn memory(write)
declare float @logf(float noundef) local_unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

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

6:                                                ; preds = %3
  %7 = tail call float @llvm.fmuladd.f32(float %4, float 0x401087EAC0000000, float 0xC0090FD580000000)
  br label %.thread

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

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

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

16:                                               ; preds = %14
  %17 = tail call noundef float @_ZN4sipm10SiPMRandom4RandIfEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %0) #4
  %18 = tail call float @llvm.fmuladd.f32(float %17, float 2.000000e+00, float -1.000000e+00)
  %19 = fcmp ogt float %18, 0.000000e+00
  %.v = select i1 %19, float 2.000000e+00, float -2.000000e+00
  %20 = fsub float %.v, %18
  %21 = fsub float 0x3FF72C00C0000000, %4
  %22 = tail call noundef float @_ZSt3absf(float noundef %20)
  %23 = fadd float %22, 0x3FF77B0B40000000
  %24 = fmul float %21, %23
  %25 = fcmp olt float %24, 0x400A7509C0000000
  br i1 %25, label %.thread, label %26

26:                                               ; preds = %16
  %27 = fmul float %18, %18
  %28 = fadd float %4, 0x3FF0955F40000000
  %29 = fadd float %27, 0x400D0CE100000000
  %30 = fmul float %28, %29
  %31 = fcmp olt float %30, 0x40152EF200000000
  br i1 %31, label %.thread, label %32

32:                                               ; preds = %26
  %33 = fsub float 0x3FE2F10960000000, %4
  %34 = fpext float %33 to double
  %35 = tail call float @llvm.fmuladd.f32(float %20, float %20, float 0x3FDCE6BB20000000)
  %36 = fneg float %35
  %37 = fpext float %36 to double
  %38 = fmul double %37, 5.000000e-01
  %39 = tail call double @exp(double noundef %38) #4
  %40 = fcmp ogt double %39, %34
  br i1 %40, label %.thread, label %41

41:                                               ; preds = %32
  %42 = fadd float %4, 0x3FD80FB880000000
  %43 = fpext float %42 to double
  %44 = fadd float %27, 0x3FDCE6BB20000000
  %45 = fneg float %44
  %46 = fpext float %45 to double
  %47 = fmul double %46, 5.000000e-01
  %48 = tail call double @exp(double noundef %47) #4
  %49 = fcmp ogt double %48, %43
  br i1 %49, label %.thread, label %.preheader

.preheader:                                       ; preds = %41, %14
  br label %50

50:                                               ; preds = %.backedge, %.preheader
  %51 = tail call noundef float @_ZN4sipm10SiPMRandom4RandIfEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %0) #4
  %52 = tail call noundef float @_ZN4sipm10SiPMRandom4RandIfEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %0) #4
  %53 = fmul float %52, 0x3FC7F9B980000000
  %54 = tail call float @llvm.fmuladd.f32(float %51, float 0xBFE7440DA0000000, float 0x3FDD427C00000000)
  %55 = fcmp ogt float %54, %53
  br i1 %55, label %56, label %59

56:                                               ; preds = %50
  %57 = fdiv float %53, %51
  %58 = fadd float %57, 2.000000e+00
  br label %65

59:                                               ; preds = %50
  %60 = fsub float 1.000000e+00, %51
  %61 = fsub float 0x3FC7F9B980000000, %53
  %62 = fdiv float %61, %60
  %63 = fadd float %62, 2.000000e+00
  %64 = fneg float %63
  br label %65

65:                                               ; preds = %59, %56
  %.069 = phi float [ %51, %56 ], [ %60, %59 ]
  %.068 = phi float [ %53, %56 ], [ %61, %59 ]
  %.0 = phi float [ %58, %56 ], [ %64, %59 ]
  %66 = fadd float %.068, 0xBFEC54B3A0000000
  %67 = fadd float %.069, %66
  %68 = fadd float %.069, 0x3FD1BAD260000000
  %69 = tail call float @llvm.fmuladd.f32(float %67, float %68, float 0x3FCF64CC00000000)
  %70 = fcmp olt float %69, 0.000000e+00
  br i1 %70, label %.thread, label %71

71:                                               ; preds = %65
  %72 = fadd float %.069, 0x3FA3F23FE0000000
  %73 = fcmp olt float %.068, %72
  br i1 %73, label %74, label %.backedge

.backedge:                                        ; preds = %71, %74
  br label %50, !llvm.loop !5

74:                                               ; preds = %71
  %75 = fmul float %.0, %.0
  %76 = tail call float @logf(float noundef %.069) #4
  %77 = fsub float 0x3FE01805C0000000, %76
  %78 = fmul float %77, 4.000000e+00
  %79 = fcmp olt float %75, %78
  br i1 %79, label %.thread, label %.backedge

.thread:                                          ; preds = %74, %65, %41, %32, %26, %16, %10, %6
  %.0.lcssa84.sink = phi float [ %13, %10 ], [ %7, %6 ], [ %20, %16 ], [ %18, %26 ], [ %20, %32 ], [ %18, %41 ], [ %.0, %65 ], [ %.0, %74 ]
  %80 = tail call float @llvm.fmuladd.f32(float %.0.lcssa84.sink, float %2, float %1)
  ret float %80
}

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

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

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