; LLVM IR from Tinker-Twins/3D-LIDAR-Localization :: fast_gicp/thirdparty/nvbio/contrib/htslib (kfunc)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.hgacc_t = type { i32, i32, i32, i32, double }

; 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 uwtable
define dso_local double @kt_fisher_exact(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #1 {
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca %struct.hgacc_t, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store i32 %0, ptr %9, align 4, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !5
  store i32 %3, ptr %12, align 4, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %29 = load i32, ptr %9, align 4, !tbaa !5
  %30 = load i32, ptr %10, align 4, !tbaa !5
  %31 = add nsw i32 %29, %30
  store i32 %31, ptr %25, align 4, !tbaa !5
  %32 = load i32, ptr %9, align 4, !tbaa !5
  %33 = load i32, ptr %11, align 4, !tbaa !5
  %34 = add nsw i32 %32, %33
  store i32 %34, ptr %26, align 4, !tbaa !5
  %35 = load i32, ptr %9, align 4, !tbaa !5
  %36 = load i32, ptr %10, align 4, !tbaa !5
  %37 = add nsw i32 %35, %36
  %38 = load i32, ptr %11, align 4, !tbaa !5
  %39 = add nsw i32 %37, %38
  %40 = load i32, ptr %12, align 4, !tbaa !5
  %41 = add nsw i32 %39, %40
  store i32 %41, ptr %27, align 4, !tbaa !5
  %42 = load i32, ptr %26, align 4, !tbaa !5
  %43 = load i32, ptr %25, align 4, !tbaa !5
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %45, label %47

45:                                               ; preds = %7
  %46 = load i32, ptr %26, align 4, !tbaa !5
  br label %49

47:                                               ; preds = %7
  %48 = load i32, ptr %25, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %47, %45
  %50 = phi i32 [ %46, %45 ], [ %48, %47 ]
  store i32 %50, ptr %18, align 4, !tbaa !5
  %51 = load i32, ptr %25, align 4, !tbaa !5
  %52 = load i32, ptr %26, align 4, !tbaa !5
  %53 = add nsw i32 %51, %52
  %54 = load i32, ptr %27, align 4, !tbaa !5
  %55 = sub nsw i32 %53, %54
  store i32 %55, ptr %19, align 4, !tbaa !5
  %56 = load i32, ptr %19, align 4, !tbaa !5
  %57 = icmp slt i32 %56, 0
  br i1 %57, label %58, label %59

58:                                               ; preds = %49
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %58, %49
  %60 = load ptr, ptr %14, align 8, !tbaa !9
  store double 1.000000e+00, ptr %60, align 8, !tbaa !11
  %61 = load ptr, ptr %13, align 8, !tbaa !9
  store double 1.000000e+00, ptr %61, align 8, !tbaa !11
  %62 = load ptr, ptr %15, align 8, !tbaa !9
  store double 1.000000e+00, ptr %62, align 8, !tbaa !11
  %63 = load i32, ptr %19, align 4, !tbaa !5
  %64 = load i32, ptr %18, align 4, !tbaa !5
  %65 = icmp eq i32 %63, %64
  br i1 %65, label %66, label %67

66:                                               ; preds = %59
  store double 1.000000e+00, ptr %8, align 8
  store i32 1, ptr %28, align 4
  br label %185

67:                                               ; preds = %59
  %68 = load i32, ptr %9, align 4, !tbaa !5
  %69 = load i32, ptr %25, align 4, !tbaa !5
  %70 = load i32, ptr %26, align 4, !tbaa !5
  %71 = load i32, ptr %27, align 4, !tbaa !5
  %72 = call double @hypergeo_acc(i32 noundef %68, i32 noundef %69, i32 noundef %70, i32 noundef %71, ptr noundef %24)
  store double %72, ptr %21, align 8, !tbaa !11
  %73 = load i32, ptr %19, align 4, !tbaa !5
  %74 = call double @hypergeo_acc(i32 noundef %73, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef %24)
  store double %74, ptr %20, align 8, !tbaa !11
  store double 0.000000e+00, ptr %22, align 8, !tbaa !11
  %75 = load i32, ptr %19, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %16, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %94, %67
  %78 = load double, ptr %20, align 8, !tbaa !11
  %79 = load double, ptr %21, align 8, !tbaa !11
  %80 = fmul double 0x3FEFFFFFFAA19C47, %79
  %81 = fcmp olt double %78, %80
  br i1 %81, label %82, label %86

82:                                               ; preds = %77
  %83 = load i32, ptr %16, align 4, !tbaa !5
  %84 = load i32, ptr %18, align 4, !tbaa !5
  %85 = icmp sle i32 %83, %84
  br label %86

86:                                               ; preds = %82, %77
  %87 = phi i1 [ false, %77 ], [ %85, %82 ]
  br i1 %87, label %88, label %97

88:                                               ; preds = %86
  %89 = load double, ptr %20, align 8, !tbaa !11
  %90 = load double, ptr %22, align 8, !tbaa !11
  %91 = fadd double %90, %89
  store double %91, ptr %22, align 8, !tbaa !11
  %92 = load i32, ptr %16, align 4, !tbaa !5
  %93 = call double @hypergeo_acc(i32 noundef %92, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef %24)
  store double %93, ptr %20, align 8, !tbaa !11
  br label %94

94:                                               ; preds = %88
  %95 = load i32, ptr %16, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %16, align 4, !tbaa !5
  br label %77, !llvm.loop !13

97:                                               ; preds = %86
  %98 = load i32, ptr %16, align 4, !tbaa !5
  %99 = add nsw i32 %98, -1
  store i32 %99, ptr %16, align 4, !tbaa !5
  %100 = load double, ptr %20, align 8, !tbaa !11
  %101 = load double, ptr %21, align 8, !tbaa !11
  %102 = fmul double 0x3FF0000002AF31DC, %101
  %103 = fcmp olt double %100, %102
  br i1 %103, label %104, label %108

104:                                              ; preds = %97
  %105 = load double, ptr %20, align 8, !tbaa !11
  %106 = load double, ptr %22, align 8, !tbaa !11
  %107 = fadd double %106, %105
  store double %107, ptr %22, align 8, !tbaa !11
  br label %111

108:                                              ; preds = %97
  %109 = load i32, ptr %16, align 4, !tbaa !5
  %110 = add nsw i32 %109, -1
  store i32 %110, ptr %16, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %108, %104
  %112 = load i32, ptr %18, align 4, !tbaa !5
  %113 = call double @hypergeo_acc(i32 noundef %112, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef %24)
  store double %113, ptr %20, align 8, !tbaa !11
  store double 0.000000e+00, ptr %23, align 8, !tbaa !11
  %114 = load i32, ptr %18, align 4, !tbaa !5
  %115 = sub nsw i32 %114, 1
  store i32 %115, ptr %17, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %132, %111
  %117 = load double, ptr %20, align 8, !tbaa !11
  %118 = load double, ptr %21, align 8, !tbaa !11
  %119 = fmul double 0x3FEFFFFFFAA19C47, %118
  %120 = fcmp olt double %117, %119
  br i1 %120, label %121, label %124

121:                                              ; preds = %116
  %122 = load i32, ptr %17, align 4, !tbaa !5
  %123 = icmp sge i32 %122, 0
  br label %124

124:                                              ; preds = %121, %116
  %125 = phi i1 [ false, %116 ], [ %123, %121 ]
  br i1 %125, label %126, label %135

126:                                              ; preds = %124
  %127 = load double, ptr %20, align 8, !tbaa !11
  %128 = load double, ptr %23, align 8, !tbaa !11
  %129 = fadd double %128, %127
  store double %129, ptr %23, align 8, !tbaa !11
  %130 = load i32, ptr %17, align 4, !tbaa !5
  %131 = call double @hypergeo_acc(i32 noundef %130, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef %24)
  store double %131, ptr %20, align 8, !tbaa !11
  br label %132

132:                                              ; preds = %126
  %133 = load i32, ptr %17, align 4, !tbaa !5
  %134 = add nsw i32 %133, -1
  store i32 %134, ptr %17, align 4, !tbaa !5
  br label %116, !llvm.loop !15

135:                                              ; preds = %124
  %136 = load i32, ptr %17, align 4, !tbaa !5
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %17, align 4, !tbaa !5
  %138 = load double, ptr %20, align 8, !tbaa !11
  %139 = load double, ptr %21, align 8, !tbaa !11
  %140 = fmul double 0x3FF0000002AF31DC, %139
  %141 = fcmp olt double %138, %140
  br i1 %141, label %142, label %146

142:                                              ; preds = %135
  %143 = load double, ptr %20, align 8, !tbaa !11
  %144 = load double, ptr %23, align 8, !tbaa !11
  %145 = fadd double %144, %143
  store double %145, ptr %23, align 8, !tbaa !11
  br label %149

146:                                              ; preds = %135
  %147 = load i32, ptr %17, align 4, !tbaa !5
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %17, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %146, %142
  %150 = load double, ptr %22, align 8, !tbaa !11
  %151 = load double, ptr %23, align 8, !tbaa !11
  %152 = fadd double %150, %151
  %153 = load ptr, ptr %15, align 8, !tbaa !9
  store double %152, ptr %153, align 8, !tbaa !11
  %154 = load ptr, ptr %15, align 8, !tbaa !9
  %155 = load double, ptr %154, align 8, !tbaa !11
  %156 = fcmp ogt double %155, 1.000000e+00
  br i1 %156, label %157, label %159

157:                                              ; preds = %149
  %158 = load ptr, ptr %15, align 8, !tbaa !9
  store double 1.000000e+00, ptr %158, align 8, !tbaa !11
  br label %159

159:                                              ; preds = %157, %149
  %160 = load i32, ptr %16, align 4, !tbaa !5
  %161 = load i32, ptr %9, align 4, !tbaa !5
  %162 = sub nsw i32 %160, %161
  %163 = call i32 @llvm.abs.i32(i32 %162, i1 true)
  %164 = load i32, ptr %17, align 4, !tbaa !5
  %165 = load i32, ptr %9, align 4, !tbaa !5
  %166 = sub nsw i32 %164, %165
  %167 = call i32 @llvm.abs.i32(i32 %166, i1 true)
  %168 = icmp slt i32 %163, %167
  br i1 %168, label %169, label %174

169:                                              ; preds = %159
  %170 = load double, ptr %22, align 8, !tbaa !11
  %171 = fsub double 1.000000e+00, %170
  %172 = load double, ptr %21, align 8, !tbaa !11
  %173 = fadd double %171, %172
  store double %173, ptr %23, align 8, !tbaa !11
  br label %179

174:                                              ; preds = %159
  %175 = load double, ptr %23, align 8, !tbaa !11
  %176 = fsub double 1.000000e+00, %175
  %177 = load double, ptr %21, align 8, !tbaa !11
  %178 = fadd double %176, %177
  store double %178, ptr %22, align 8, !tbaa !11
  br label %179

179:                                              ; preds = %174, %169
  %180 = load double, ptr %22, align 8, !tbaa !11
  %181 = load ptr, ptr %13, align 8, !tbaa !9
  store double %180, ptr %181, align 8, !tbaa !11
  %182 = load double, ptr %23, align 8, !tbaa !11
  %183 = load ptr, ptr %14, align 8, !tbaa !9
  store double %182, ptr %183, align 8, !tbaa !11
  %184 = load double, ptr %21, align 8, !tbaa !11
  store double %184, ptr %8, align 8
  store i32 1, ptr %28, align 4
  br label %185

185:                                              ; preds = %179, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  %186 = load double, ptr %8, align 8
  ret double %186
}

; Function Attrs: nounwind uwtable
declare hidden double @hypergeo_acc(i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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

%struct.hgacc_t = type { i32, i32, i32, i32, double }

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

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

; Function Attrs: nounwind uwtable
define dso_local double @kt_fisher_exact(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5, ptr nocapture noundef writeonly %6) local_unnamed_addr #1 {
  %8 = alloca %struct.hgacc_t, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  %9 = add nsw i32 %1, %0
  %10 = add nsw i32 %2, %0
  %11 = add nsw i32 %9, %2
  %12 = add nsw i32 %11, %3
  %13 = tail call i32 @llvm.smin.i32(i32 %10, i32 %9)
  %14 = add nsw i32 %10, %9
  %15 = sub i32 %14, %12
  %spec.store.select = tail call i32 @llvm.smax.i32(i32 %15, i32 0)
  store double 1.000000e+00, ptr %5, align 8, !tbaa !5
  store double 1.000000e+00, ptr %4, align 8, !tbaa !5
  store double 1.000000e+00, ptr %6, align 8, !tbaa !5
  %16 = icmp eq i32 %spec.store.select, %13
  br i1 %16, label %56, label %17

17:                                               ; preds = %7
  %18 = call double @hypergeo_acc(i32 noundef %0, i32 noundef %9, i32 noundef %10, i32 noundef %12, ptr noundef nonnull %8)
  %19 = call double @hypergeo_acc(i32 noundef %spec.store.select, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %8)
  %20 = fmul double %18, 0x3FEFFFFFFAA19C47
  %21 = fcmp olt double %19, %20
  %22 = icmp slt i32 %spec.store.select, %13
  %23 = and i1 %21, %22
  br i1 %23, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %17, %.lr.ph
  %.074.in88 = phi i32 [ %.074, %.lr.ph ], [ %spec.store.select, %17 ]
  %.07987 = phi double [ %24, %.lr.ph ], [ 0.000000e+00, %17 ]
  %.08286 = phi double [ %25, %.lr.ph ], [ %19, %17 ]
  %.074 = add nuw nsw i32 %.074.in88, 1
  %24 = fadd double %.08286, %.07987
  %25 = call double @hypergeo_acc(i32 noundef %.074, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %8)
  %26 = fcmp olt double %25, %20
  %27 = icmp slt i32 %.074, %13
  %28 = and i1 %26, %27
  br i1 %28, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %17
  %.082.lcssa = phi double [ %19, %17 ], [ %25, %.lr.ph ]
  %.079.lcssa = phi double [ 0.000000e+00, %17 ], [ %24, %.lr.ph ]
  %.074.in.lcssa = phi i32 [ %spec.store.select, %17 ], [ %.074, %.lr.ph ]
  %29 = fmul double %18, 0x3FF0000002AF31DC
  %30 = fcmp uge double %.082.lcssa, %29
  %31 = fadd double %.082.lcssa, %.079.lcssa
  %.180 = select i1 %30, double %.079.lcssa, double %31
  %32 = sext i1 %30 to i32
  %33 = call double @hypergeo_acc(i32 noundef %13, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %8)
  %34 = fcmp olt double %33, %20
  %35 = icmp sgt i32 %13, 0
  %36 = and i1 %34, %35
  br i1 %36, label %.lr.ph96, label %._crit_edge97

.lr.ph96:                                         ; preds = %._crit_edge, %.lr.ph96
  %.075.in94 = phi i32 [ %.075, %.lr.ph96 ], [ %13, %._crit_edge ]
  %.07793 = phi double [ %37, %.lr.ph96 ], [ 0.000000e+00, %._crit_edge ]
  %.18392 = phi double [ %38, %.lr.ph96 ], [ %33, %._crit_edge ]
  %.075 = add nsw i32 %.075.in94, -1
  %37 = fadd double %.18392, %.07793
  %38 = call double @hypergeo_acc(i32 noundef %.075, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %8)
  %39 = fcmp olt double %38, %20
  %40 = icmp ugt i32 %.075.in94, 1
  %41 = and i1 %39, %40
  br i1 %41, label %.lr.ph96, label %._crit_edge97, !llvm.loop !11

._crit_edge97:                                    ; preds = %.lr.ph96, %._crit_edge
  %.183.lcssa = phi double [ %33, %._crit_edge ], [ %38, %.lr.ph96 ]
  %.077.lcssa = phi double [ 0.000000e+00, %._crit_edge ], [ %37, %.lr.ph96 ]
  %.075.in.lcssa = phi i32 [ %13, %._crit_edge ], [ %.075, %.lr.ph96 ]
  %42 = fcmp uge double %.183.lcssa, %29
  %43 = fadd double %.183.lcssa, %.077.lcssa
  %.178 = select i1 %42, double %.077.lcssa, double %43
  %44 = zext i1 %42 to i32
  %45 = fadd double %.180, %.178
  %46 = fcmp ogt double %45, 1.000000e+00
  %storemerge = select i1 %46, double 1.000000e+00, double %45
  store double %storemerge, ptr %6, align 8, !tbaa !5
  %.1 = sub i32 %32, %0
  %47 = add i32 %.1, %.074.in.lcssa
  %48 = call i32 @llvm.abs.i32(i32 %47, i1 true)
  %.176 = sub i32 %44, %0
  %49 = add i32 %.176, %.075.in.lcssa
  %50 = call i32 @llvm.abs.i32(i32 %49, i1 true)
  %51 = icmp ult i32 %48, %50
  %52 = fsub double 1.000000e+00, %.180
  %53 = fadd double %18, %52
  %54 = fsub double 1.000000e+00, %.178
  %55 = fadd double %18, %54
  %.281 = select i1 %51, double %.180, double %55
  %.2 = select i1 %51, double %53, double %.178
  store double %.281, ptr %4, align 8, !tbaa !5
  store double %.2, ptr %5, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %7, %._crit_edge97
  %.0 = phi double [ %18, %._crit_edge97 ], [ 1.000000e+00, %7 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  ret double %.0
}

; Function Attrs: nounwind uwtable
declare hidden double @hypergeo_acc(i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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