; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull (geom2)

; 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.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@qh_qh = external global %struct.qhT, align 8
@.str.2 = external hidden unnamed_addr constant [43 x i8], align 1

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

declare void @qh_fprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1

; 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 @qh_detjoggle(ptr noundef %0, i32 noundef %1, i32 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store double 0xFFEFFFFFFFFFFFFF, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store double 0.000000e+00, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %18 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 83), align 4, !tbaa !13
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %22

20:                                               ; preds = %3
  %21 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 134), align 8, !tbaa !16
  store double %21, ptr %8, align 8, !tbaa !11
  br label %137

22:                                               ; preds = %3
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %129, %22
  %24 = load i32, ptr %17, align 4, !tbaa !9
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %27, label %132

27:                                               ; preds = %23
  %28 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 82), align 8, !tbaa !17
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %37

30:                                               ; preds = %27
  %31 = load i32, ptr %17, align 4, !tbaa !9
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = sub nsw i32 %32, 1
  %34 = icmp eq i32 %31, %33
  br i1 %34, label %35, label %37

35:                                               ; preds = %30
  %36 = load double, ptr %16, align 8, !tbaa !11
  store double %36, ptr %7, align 8, !tbaa !11
  br label %119

37:                                               ; preds = %30, %27
  %38 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 17), align 8, !tbaa !18
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %50

40:                                               ; preds = %37
  %41 = load i32, ptr %17, align 4, !tbaa !9
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = sub nsw i32 %42, 1
  %44 = icmp eq i32 %41, %43
  br i1 %44, label %45, label %50

45:                                               ; preds = %40
  %46 = load double, ptr %14, align 8, !tbaa !11
  %47 = fmul double 2.000000e+00, %46
  %48 = load double, ptr %14, align 8, !tbaa !11
  %49 = fmul double %47, %48
  store double %49, ptr %7, align 8, !tbaa !11
  br label %118

50:                                               ; preds = %40, %37
  store double 0xFFEFFFFFFFFFFFFF, ptr %10, align 8, !tbaa !11
  store double 0x7FEFFFFFFFFFFFFF, ptr %11, align 8, !tbaa !11
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %51, ptr %12, align 8, !tbaa !5
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !19
  %54 = load i32, ptr %5, align 4, !tbaa !9
  %55 = mul nsw i32 %53, %54
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds double, ptr %52, i64 %56
  store ptr %57, ptr %13, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %91, %50
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = icmp ult ptr %59, %60
  br i1 %61, label %62, label %96

62:                                               ; preds = %58
  %63 = load double, ptr %10, align 8, !tbaa !11
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = load i32, ptr %17, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds double, ptr %64, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !11
  %69 = fcmp olt double %63, %68
  br i1 %69, label %70, label %76

70:                                               ; preds = %62
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds double, ptr %71, i64 %73
  %75 = load double, ptr %74, align 8, !tbaa !11
  store double %75, ptr %10, align 8, !tbaa !11
  br label %76

76:                                               ; preds = %70, %62
  %77 = load double, ptr %11, align 8, !tbaa !11
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = load i32, ptr %17, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %78, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !11
  %83 = fcmp ogt double %77, %82
  br i1 %83, label %84, label %90

84:                                               ; preds = %76
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = load i32, ptr %17, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds double, ptr %85, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !11
  store double %89, ptr %11, align 8, !tbaa !11
  br label %90

90:                                               ; preds = %84, %76
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !19
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = sext i32 %92 to i64
  %95 = getelementptr inbounds double, ptr %93, i64 %94
  store ptr %95, ptr %12, align 8, !tbaa !5
  br label %58, !llvm.loop !20

96:                                               ; preds = %58
  %97 = load double, ptr %16, align 8, !tbaa !11
  %98 = load double, ptr %10, align 8, !tbaa !11
  %99 = load double, ptr %11, align 8, !tbaa !11
  %100 = fsub double %98, %99
  %101 = fcmp olt double %97, %100
  br i1 %101, label %102, label %106

102:                                              ; preds = %96
  %103 = load double, ptr %10, align 8, !tbaa !11
  %104 = load double, ptr %11, align 8, !tbaa !11
  %105 = fsub double %103, %104
  store double %105, ptr %16, align 8, !tbaa !11
  br label %106

106:                                              ; preds = %102, %96
  %107 = load double, ptr %10, align 8, !tbaa !11
  %108 = load double, ptr %11, align 8, !tbaa !11
  %109 = fneg double %108
  %110 = fcmp olt double %107, %109
  br i1 %110, label %111, label %114

111:                                              ; preds = %106
  %112 = load double, ptr %11, align 8, !tbaa !11
  %113 = fneg double %112
  br label %116

114:                                              ; preds = %106
  %115 = load double, ptr %10, align 8, !tbaa !11
  br label %116

116:                                              ; preds = %114, %111
  %117 = phi double [ %113, %111 ], [ %115, %114 ]
  store double %117, ptr %7, align 8, !tbaa !11
  br label %118

118:                                              ; preds = %116, %45
  br label %119

119:                                              ; preds = %118, %35
  %120 = load double, ptr %7, align 8, !tbaa !11
  %121 = load double, ptr %15, align 8, !tbaa !11
  %122 = fadd double %121, %120
  store double %122, ptr %15, align 8, !tbaa !11
  %123 = load double, ptr %14, align 8, !tbaa !11
  %124 = load double, ptr %7, align 8, !tbaa !11
  %125 = fcmp olt double %123, %124
  br i1 %125, label %126, label %128

126:                                              ; preds = %119
  %127 = load double, ptr %7, align 8, !tbaa !11
  store double %127, ptr %14, align 8, !tbaa !11
  br label %128

128:                                              ; preds = %126, %119
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %17, align 4, !tbaa !9
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %17, align 4, !tbaa !9
  br label %23, !llvm.loop !22

132:                                              ; preds = %23
  %133 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !19
  %134 = load double, ptr %14, align 8, !tbaa !11
  %135 = load double, ptr %15, align 8, !tbaa !11
  %136 = call double @qh_distround(i32 noundef %133, double noundef %134, double noundef %135)
  store double %136, ptr %8, align 8, !tbaa !11
  br label %137

137:                                              ; preds = %132, %20
  %138 = load double, ptr %8, align 8, !tbaa !11
  %139 = fmul double %138, 3.000000e+04
  store double %139, ptr %9, align 8, !tbaa !11
  %140 = load double, ptr %9, align 8, !tbaa !11
  %141 = fcmp olt double %140, 0x3D9D4C0000000000
  br i1 %141, label %142, label %143

142:                                              ; preds = %137
  store double 0x3D9D4C0000000000, ptr %9, align 8, !tbaa !11
  br label %143

143:                                              ; preds = %142, %137
  %144 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !23
  %145 = icmp sge i32 %144, 2
  br i1 %145, label %146, label %150

146:                                              ; preds = %143
  %147 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !24
  %148 = load double, ptr %9, align 8, !tbaa !11
  %149 = load double, ptr %16, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %147, i32 noundef 2001, ptr noundef @.str.2, double noundef %148, double noundef %149)
  br label %150

150:                                              ; preds = %146, %143
  %151 = load double, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret double %151
}

; Function Attrs: nounwind uwtable
declare dso_local double @qh_distround(i32 noundef, double noundef, double noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 500}
!14 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !12, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !12, i64 64, !12, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !6, i64 104, !10, i64 112, !10, i64 116, !6, i64 120, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !12, i64 160, !12, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !12, i64 192, !12, i64 200, !10, i64 208, !10, i64 212, !12, i64 216, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !7, i64 300, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !12, i64 448, !12, i64 456, !12, i64 464, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !12, i64 552, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !12, i64 592, !10, i64 600, !6, i64 608, !6, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !6, i64 648, !10, i64 656, !6, i64 664, !10, i64 672, !7, i64 676, !10, i64 932, !7, i64 936, !7, i64 1192, !10, i64 1704, !10, i64 1708, !10, i64 1712, !10, i64 1716, !10, i64 1720, !10, i64 1724, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !12, i64 1760, !12, i64 1768, !12, i64 1776, !12, i64 1784, !12, i64 1792, !12, i64 1800, !12, i64 1808, !12, i64 1816, !12, i64 1824, !12, i64 1832, !12, i64 1840, !12, i64 1848, !12, i64 1856, !12, i64 1864, !6, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !12, i64 1904, !10, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !6, i64 2408, !6, i64 2416, !6, i64 2424, !6, i64 2432, !10, i64 2440, !10, i64 2444, !10, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !10, i64 2496, !10, i64 2500, !6, i64 2504, !10, i64 2512, !6, i64 2520, !10, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !10, i64 2568, !10, i64 2572, !10, i64 2576, !10, i64 2580, !10, i64 2584, !10, i64 2588, !10, i64 2592, !10, i64 2596, !15, i64 2600, !10, i64 2608, !10, i64 2612, !10, i64 2616, !10, i64 2620, !10, i64 2624, !6, i64 2632, !6, i64 2640, !10, i64 2648, !10, i64 2652, !10, i64 2656, !12, i64 2664, !10, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !12, i64 2728, !12, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !12, i64 2768, !12, i64 2776, !10, i64 2784, !10, i64 2788, !10, i64 2792, !10, i64 2796, !6, i64 2800, !6, i64 2808, !6, i64 2816, !6, i64 2824, !6, i64 2832, !6, i64 2840, !6, i64 2848, !6, i64 2856, !6, i64 2864, !10, i64 2872, !6, i64 2880, !6, i64 2888, !10, i64 2896, !10, i64 2900, !10, i64 2904, !6, i64 2912, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, i64 2944, !10, i64 2952, !10, i64 2956, !10, i64 2960, !10, i64 2964, !10, i64 2968, !10, i64 2972, !6, i64 2976, !6, i64 2984, !10, i64 2992}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !12, i64 1784}
!17 = !{!14, !10, i64 496}
!18 = !{!14, !10, i64 80}
!19 = !{!14, !10, i64 632}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!14, !10, i64 136}
!24 = !{!14, !6, i64 2424}


; 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.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@.str.2 = external hidden unnamed_addr constant [43 x i8], align 1

declare void @qh_fprintf(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local double @qh_detjoggle(ptr noundef readonly %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 500), align 4, !tbaa !5
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %.preheader, label %67

.preheader:                                       ; preds = %3
  %5 = icmp sgt i32 %2, 0
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8
  %.fr = freeze i32 %.pre
  br i1 %5, label %.lr.ph77, label %._crit_edge78

.lr.ph77:                                         ; preds = %.preheader
  %6 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 496), align 8, !tbaa !13
  %.fr115 = freeze i32 %6
  %.not63 = icmp ne i32 %.fr115, 0
  %7 = add nsw i32 %2, -1
  %8 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 80), align 8
  %.fr114 = freeze i32 %8
  %.not64 = icmp ne i32 %.fr114, 0
  %9 = mul i32 %.fr, %1
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds double, ptr %0, i64 %10
  %12 = icmp sgt i32 %9, 0
  %13 = sext i32 %.fr to i64
  br i1 %12, label %.lr.ph77.split.us.preheader, label %.lr.ph77.split

.lr.ph77.split.us.preheader:                      ; preds = %.lr.ph77
  %14 = zext nneg i32 %7 to i64
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %.lr.ph77.split.us

.lr.ph77.split.us:                                ; preds = %.lr.ph77.split.us.preheader, %26
  %indvars.iv = phi i64 [ 0, %.lr.ph77.split.us.preheader ], [ %indvars.iv.next, %26 ]
  %.04674.us = phi double [ 0.000000e+00, %.lr.ph77.split.us.preheader ], [ %.2.us, %26 ]
  %.04773.us = phi double [ 0.000000e+00, %.lr.ph77.split.us.preheader ], [ %27, %26 ]
  %.04872.us = phi double [ 0xFFEFFFFFFFFFFFFF, %.lr.ph77.split.us.preheader ], [ %.149.us, %26 ]
  %15 = icmp eq i64 %indvars.iv, %14
  %or.cond.us = select i1 %.not63, i1 %15, i1 false
  br i1 %or.cond.us, label %26, label %16

16:                                               ; preds = %.lr.ph77.split.us
  %or.cond67.us = select i1 %.not64, i1 %15, i1 false
  br i1 %or.cond67.us, label %23, label %.lr.ph.us

.lr.ph.us:                                        ; preds = %16, %.lr.ph.us
  %.05170.us = phi ptr [ %21, %.lr.ph.us ], [ %0, %16 ]
  %.05269.us = phi double [ %.153.us, %.lr.ph.us ], [ 0x7FEFFFFFFFFFFFFF, %16 ]
  %.05468.us = phi double [ %.155.us, %.lr.ph.us ], [ 0xFFEFFFFFFFFFFFFF, %16 ]
  %17 = getelementptr inbounds double, ptr %.05170.us, i64 %indvars.iv
  %18 = load double, ptr %17, align 8, !tbaa !14
  %19 = fcmp olt double %.05468.us, %18
  %.155.us = select i1 %19, double %18, double %.05468.us
  %20 = fcmp ogt double %.05269.us, %18
  %.153.us = select i1 %20, double %18, double %.05269.us
  %21 = getelementptr inbounds double, ptr %.05170.us, i64 %13
  %22 = icmp ult ptr %21, %11
  br i1 %22, label %.lr.ph.us, label %._crit_edge.us, !llvm.loop !15

23:                                               ; preds = %16
  %24 = fmul double %.04872.us, 2.000000e+00
  %25 = fmul double %.04872.us, %24
  br label %26

26:                                               ; preds = %23, %._crit_edge.us, %.lr.ph77.split.us
  %.050.us = phi double [ %25, %23 ], [ %33, %._crit_edge.us ], [ %.04674.us, %.lr.ph77.split.us ]
  %.2.us = phi double [ %.04674.us, %23 ], [ %.1.us, %._crit_edge.us ], [ %.04674.us, %.lr.ph77.split.us ]
  %27 = fadd double %.04773.us, %.050.us
  %28 = fcmp olt double %.04872.us, %.050.us
  %.149.us = select i1 %28, double %.050.us, double %.04872.us
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond128.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond128.not, label %._crit_edge78, label %.lr.ph77.split.us, !llvm.loop !17

._crit_edge.us:                                   ; preds = %.lr.ph.us
  %29 = fsub double %.155.us, %.153.us
  %30 = fcmp olt double %.04674.us, %29
  %.1.us = select i1 %30, double %29, double %.04674.us
  %31 = fneg double %.153.us
  %32 = fcmp olt double %.155.us, %31
  %33 = select i1 %32, double %31, double %.155.us
  br label %26

.lr.ph77.split:                                   ; preds = %.lr.ph77
  br i1 %.not64, label %.lr.ph77.split.split, label %.lr.ph77.split.split.us

.lr.ph77.split.split.us:                          ; preds = %.lr.ph77.split
  br i1 %.not63, label %.lr.ph77.split.split.us.split.preheader, label %.lr.ph77.split.split.us.split.us.preheader

.lr.ph77.split.split.us.split.us.preheader:       ; preds = %.lr.ph77.split.split.us
  %xtraiter = and i32 %2, 7
  %34 = icmp ult i32 %2, 8
  br i1 %34, label %._crit_edge78.loopexit151.unr-lcssa, label %.lr.ph77.split.split.us.split.us.preheader.new

.lr.ph77.split.split.us.split.us.preheader.new:   ; preds = %.lr.ph77.split.split.us.split.us.preheader
  %unroll_iter = and i32 %2, 2147483640
  br label %.lr.ph77.split.split.us.split.us

.lr.ph77.split.split.us.split.preheader:          ; preds = %.lr.ph77.split.split.us
  %xtraiter154 = and i32 %2, 1
  %35 = icmp eq i32 %7, 0
  br i1 %35, label %._crit_edge78.loopexit149.unr-lcssa, label %.lr.ph77.split.split.us.split.preheader.new

.lr.ph77.split.split.us.split.preheader.new:      ; preds = %.lr.ph77.split.split.us.split.preheader
  %unroll_iter159 = and i32 %2, 2147483646
  %36 = add nsw i32 %2, -2
  br label %.lr.ph77.split.split.us.split

.lr.ph77.split.split.us.split.us:                 ; preds = %.lr.ph77.split.split.us.split.us, %.lr.ph77.split.split.us.split.us.preheader.new
  %.04773.us85.us = phi double [ 0.000000e+00, %.lr.ph77.split.split.us.split.us.preheader.new ], [ %44, %.lr.ph77.split.split.us.split.us ]
  %niter = phi i32 [ 0, %.lr.ph77.split.split.us.split.us.preheader.new ], [ %niter.next.7, %.lr.ph77.split.split.us.split.us ]
  %37 = fadd double %.04773.us85.us, 0xFFEFFFFFFFFFFFFF
  %38 = fadd double %37, 0xFFEFFFFFFFFFFFFF
  %39 = fadd double %38, 0xFFEFFFFFFFFFFFFF
  %40 = fadd double %39, 0xFFEFFFFFFFFFFFFF
  %41 = fadd double %40, 0xFFEFFFFFFFFFFFFF
  %42 = fadd double %41, 0xFFEFFFFFFFFFFFFF
  %43 = fadd double %42, 0xFFEFFFFFFFFFFFFF
  %44 = fadd double %43, 0xFFEFFFFFFFFFFFFF
  %niter.next.7 = add i32 %niter, 8
  %niter.ncmp.7 = icmp eq i32 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge78.loopexit151.unr-lcssa, label %.lr.ph77.split.split.us.split.us, !llvm.loop !17

.lr.ph77.split.split.us.split:                    ; preds = %.lr.ph77.split.split.us.split, %.lr.ph77.split.split.us.split.preheader.new
  %.075.us84 = phi i32 [ 0, %.lr.ph77.split.split.us.split.preheader.new ], [ %51, %.lr.ph77.split.split.us.split ]
  %.04773.us85 = phi double [ 0.000000e+00, %.lr.ph77.split.split.us.split.preheader.new ], [ %49, %.lr.ph77.split.split.us.split ]
  %.04872.us86 = phi double [ 0xFFEFFFFFFFFFFFFF, %.lr.ph77.split.split.us.split.preheader.new ], [ %.149.us90.1, %.lr.ph77.split.split.us.split ]
  %niter160 = phi i32 [ 0, %.lr.ph77.split.split.us.split.preheader.new ], [ %niter160.next.1, %.lr.ph77.split.split.us.split ]
  %45 = icmp eq i32 %.075.us84, %7
  %.050.us89 = select i1 %45, double 0.000000e+00, double 0xFFEFFFFFFFFFFFFF
  %46 = fadd double %.04773.us85, %.050.us89
  %47 = fcmp olt double %.04872.us86, %.050.us89
  %.149.us90 = select i1 %47, double %.050.us89, double %.04872.us86
  %48 = icmp eq i32 %.075.us84, %36
  %.050.us89.1 = select i1 %48, double 0.000000e+00, double 0xFFEFFFFFFFFFFFFF
  %49 = fadd double %46, %.050.us89.1
  %50 = fcmp olt double %.149.us90, %.050.us89.1
  %.149.us90.1 = select i1 %50, double %.050.us89.1, double %.149.us90
  %51 = add nuw nsw i32 %.075.us84, 2
  %niter160.next.1 = add i32 %niter160, 2
  %niter160.ncmp.1 = icmp eq i32 %niter160.next.1, %unroll_iter159
  br i1 %niter160.ncmp.1, label %._crit_edge78.loopexit149.unr-lcssa, label %.lr.ph77.split.split.us.split, !llvm.loop !17

.lr.ph77.split.split:                             ; preds = %.lr.ph77.split
  br i1 %.not63, label %.lr.ph77.split.split.split.preheader, label %.lr.ph77.split.split.split.us.preheader

.lr.ph77.split.split.split.us.preheader:          ; preds = %.lr.ph77.split.split
  %xtraiter161 = and i32 %2, 1
  %52 = icmp eq i32 %7, 0
  br i1 %52, label %._crit_edge78.loopexit147.unr-lcssa, label %.lr.ph77.split.split.split.us.preheader.new

.lr.ph77.split.split.split.us.preheader.new:      ; preds = %.lr.ph77.split.split.split.us.preheader
  %unroll_iter166 = and i32 %2, 2147483646
  %53 = add nsw i32 %2, -2
  br label %.lr.ph77.split.split.split.us

.lr.ph77.split.split.split.preheader:             ; preds = %.lr.ph77.split.split
  %xtraiter168 = and i32 %2, 1
  %54 = icmp eq i32 %7, 0
  br i1 %54, label %._crit_edge78.loopexit145.unr-lcssa, label %.lr.ph77.split.split.split.preheader.new

.lr.ph77.split.split.split.preheader.new:         ; preds = %.lr.ph77.split.split.split.preheader
  %unroll_iter173 = and i32 %2, 2147483646
  %55 = add nsw i32 %2, -2
  br label %.lr.ph77.split.split.split

.lr.ph77.split.split.split.us:                    ; preds = %.lr.ph77.split.split.split.us, %.lr.ph77.split.split.split.us.preheader.new
  %.075.us97 = phi i32 [ 0, %.lr.ph77.split.split.split.us.preheader.new ], [ %66, %.lr.ph77.split.split.split.us ]
  %.04773.us98 = phi double [ 0.000000e+00, %.lr.ph77.split.split.split.us.preheader.new ], [ %64, %.lr.ph77.split.split.split.us ]
  %.04872.us99 = phi double [ 0xFFEFFFFFFFFFFFFF, %.lr.ph77.split.split.split.us.preheader.new ], [ %.149.us102.1, %.lr.ph77.split.split.split.us ]
  %niter167 = phi i32 [ 0, %.lr.ph77.split.split.split.us.preheader.new ], [ %niter167.next.1, %.lr.ph77.split.split.split.us ]
  %56 = icmp eq i32 %.075.us97, %7
  %57 = fmul double %.04872.us99, 2.000000e+00
  %58 = fmul double %.04872.us99, %57
  %.050.us101 = select i1 %56, double %58, double 0xFFEFFFFFFFFFFFFF
  %59 = fadd double %.04773.us98, %.050.us101
  %60 = fcmp olt double %.04872.us99, %.050.us101
  %.149.us102 = select i1 %60, double %.050.us101, double %.04872.us99
  %61 = icmp eq i32 %.075.us97, %53
  %62 = fmul double %.149.us102, 2.000000e+00
  %63 = fmul double %.149.us102, %62
  %.050.us101.1 = select i1 %61, double %63, double 0xFFEFFFFFFFFFFFFF
  %64 = fadd double %59, %.050.us101.1
  %65 = fcmp olt double %.149.us102, %.050.us101.1
  %.149.us102.1 = select i1 %65, double %.050.us101.1, double %.149.us102
  %66 = add nuw nsw i32 %.075.us97, 2
  %niter167.next.1 = add i32 %niter167, 2
  %niter167.ncmp.1 = icmp eq i32 %niter167.next.1, %unroll_iter166
  br i1 %niter167.ncmp.1, label %._crit_edge78.loopexit147.unr-lcssa, label %.lr.ph77.split.split.split.us, !llvm.loop !17

67:                                               ; preds = %3
  %68 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1784), align 8, !tbaa !18
  br label %89

.lr.ph77.split.split.split:                       ; preds = %.lr.ph77.split.split.split, %.lr.ph77.split.split.split.preheader.new
  %.075 = phi i32 [ 0, %.lr.ph77.split.split.split.preheader.new ], [ %75, %.lr.ph77.split.split.split ]
  %.04773 = phi double [ 0.000000e+00, %.lr.ph77.split.split.split.preheader.new ], [ %73, %.lr.ph77.split.split.split ]
  %.04872 = phi double [ 0xFFEFFFFFFFFFFFFF, %.lr.ph77.split.split.split.preheader.new ], [ %.149.1, %.lr.ph77.split.split.split ]
  %niter174 = phi i32 [ 0, %.lr.ph77.split.split.split.preheader.new ], [ %niter174.next.1, %.lr.ph77.split.split.split ]
  %69 = icmp eq i32 %.075, %7
  %.050 = select i1 %69, double 0.000000e+00, double 0xFFEFFFFFFFFFFFFF
  %70 = fadd double %.04773, %.050
  %71 = fcmp olt double %.04872, %.050
  %.149 = select i1 %71, double %.050, double %.04872
  %72 = icmp eq i32 %.075, %55
  %.050.1 = select i1 %72, double 0.000000e+00, double 0xFFEFFFFFFFFFFFFF
  %73 = fadd double %70, %.050.1
  %74 = fcmp olt double %.149, %.050.1
  %.149.1 = select i1 %74, double %.050.1, double %.149
  %75 = add nuw nsw i32 %.075, 2
  %niter174.next.1 = add i32 %niter174, 2
  %niter174.ncmp.1 = icmp eq i32 %niter174.next.1, %unroll_iter173
  br i1 %niter174.ncmp.1, label %._crit_edge78.loopexit145.unr-lcssa, label %.lr.ph77.split.split.split, !llvm.loop !17

._crit_edge78.loopexit145.unr-lcssa:              ; preds = %.lr.ph77.split.split.split, %.lr.ph77.split.split.split.preheader
  %.lcssa146.ph = phi double [ poison, %.lr.ph77.split.split.split.preheader ], [ %73, %.lr.ph77.split.split.split ]
  %.149.lcssa.ph = phi double [ poison, %.lr.ph77.split.split.split.preheader ], [ %.149.1, %.lr.ph77.split.split.split ]
  %.075.unr = phi i32 [ 0, %.lr.ph77.split.split.split.preheader ], [ %75, %.lr.ph77.split.split.split ]
  %.04773.unr = phi double [ 0.000000e+00, %.lr.ph77.split.split.split.preheader ], [ %73, %.lr.ph77.split.split.split ]
  %.04872.unr = phi double [ 0xFFEFFFFFFFFFFFFF, %.lr.ph77.split.split.split.preheader ], [ %.149.1, %.lr.ph77.split.split.split ]
  %lcmp.mod170.not = icmp eq i32 %xtraiter168, 0
  br i1 %lcmp.mod170.not, label %._crit_edge78, label %.lr.ph77.split.split.split.epil

.lr.ph77.split.split.split.epil:                  ; preds = %._crit_edge78.loopexit145.unr-lcssa
  %76 = icmp eq i32 %.075.unr, %7
  %.050.epil = select i1 %76, double 0.000000e+00, double 0xFFEFFFFFFFFFFFFF
  %77 = fadd double %.04773.unr, %.050.epil
  %78 = fcmp olt double %.04872.unr, %.050.epil
  %.149.epil = select i1 %78, double %.050.epil, double %.04872.unr
  br label %._crit_edge78

._crit_edge78.loopexit147.unr-lcssa:              ; preds = %.lr.ph77.split.split.split.us, %.lr.ph77.split.split.split.us.preheader
  %.lcssa148.ph = phi double [ poison, %.lr.ph77.split.split.split.us.preheader ], [ %64, %.lr.ph77.split.split.split.us ]
  %.149.us102.lcssa.ph = phi double [ poison, %.lr.ph77.split.split.split.us.preheader ], [ %.149.us102.1, %.lr.ph77.split.split.split.us ]
  %.075.us97.unr = phi i32 [ 0, %.lr.ph77.split.split.split.us.preheader ], [ %66, %.lr.ph77.split.split.split.us ]
  %.04773.us98.unr = phi double [ 0.000000e+00, %.lr.ph77.split.split.split.us.preheader ], [ %64, %.lr.ph77.split.split.split.us ]
  %.04872.us99.unr = phi double [ 0xFFEFFFFFFFFFFFFF, %.lr.ph77.split.split.split.us.preheader ], [ %.149.us102.1, %.lr.ph77.split.split.split.us ]
  %lcmp.mod163.not = icmp eq i32 %xtraiter161, 0
  br i1 %lcmp.mod163.not, label %._crit_edge78, label %.lr.ph77.split.split.split.us.epil

.lr.ph77.split.split.split.us.epil:               ; preds = %._crit_edge78.loopexit147.unr-lcssa
  %79 = icmp eq i32 %.075.us97.unr, %7
  %80 = fmul double %.04872.us99.unr, 2.000000e+00
  %81 = fmul double %.04872.us99.unr, %80
  %.050.us101.epil = select i1 %79, double %81, double 0xFFEFFFFFFFFFFFFF
  %82 = fadd double %.04773.us98.unr, %.050.us101.epil
  %83 = fcmp olt double %.04872.us99.unr, %.050.us101.epil
  %.149.us102.epil = select i1 %83, double %.050.us101.epil, double %.04872.us99.unr
  br label %._crit_edge78

._crit_edge78.loopexit149.unr-lcssa:              ; preds = %.lr.ph77.split.split.us.split, %.lr.ph77.split.split.us.split.preheader
  %.lcssa150.ph = phi double [ poison, %.lr.ph77.split.split.us.split.preheader ], [ %49, %.lr.ph77.split.split.us.split ]
  %.149.us90.lcssa.ph = phi double [ poison, %.lr.ph77.split.split.us.split.preheader ], [ %.149.us90.1, %.lr.ph77.split.split.us.split ]
  %.075.us84.unr = phi i32 [ 0, %.lr.ph77.split.split.us.split.preheader ], [ %51, %.lr.ph77.split.split.us.split ]
  %.04773.us85.unr = phi double [ 0.000000e+00, %.lr.ph77.split.split.us.split.preheader ], [ %49, %.lr.ph77.split.split.us.split ]
  %.04872.us86.unr = phi double [ 0xFFEFFFFFFFFFFFFF, %.lr.ph77.split.split.us.split.preheader ], [ %.149.us90.1, %.lr.ph77.split.split.us.split ]
  %lcmp.mod156.not = icmp eq i32 %xtraiter154, 0
  br i1 %lcmp.mod156.not, label %._crit_edge78, label %.lr.ph77.split.split.us.split.epil

.lr.ph77.split.split.us.split.epil:               ; preds = %._crit_edge78.loopexit149.unr-lcssa
  %84 = icmp eq i32 %.075.us84.unr, %7
  %.050.us89.epil = select i1 %84, double 0.000000e+00, double 0xFFEFFFFFFFFFFFFF
  %85 = fadd double %.04773.us85.unr, %.050.us89.epil
  %86 = fcmp olt double %.04872.us86.unr, %.050.us89.epil
  %.149.us90.epil = select i1 %86, double %.050.us89.epil, double %.04872.us86.unr
  br label %._crit_edge78

._crit_edge78.loopexit151.unr-lcssa:              ; preds = %.lr.ph77.split.split.us.split.us, %.lr.ph77.split.split.us.split.us.preheader
  %.lcssa152.ph = phi double [ poison, %.lr.ph77.split.split.us.split.us.preheader ], [ %44, %.lr.ph77.split.split.us.split.us ]
  %.04773.us85.us.unr = phi double [ 0.000000e+00, %.lr.ph77.split.split.us.split.us.preheader ], [ %44, %.lr.ph77.split.split.us.split.us ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge78, label %.lr.ph77.split.split.us.split.us.epil

.lr.ph77.split.split.us.split.us.epil:            ; preds = %._crit_edge78.loopexit151.unr-lcssa, %.lr.ph77.split.split.us.split.us.epil
  %.04773.us85.us.epil = phi double [ %87, %.lr.ph77.split.split.us.split.us.epil ], [ %.04773.us85.us.unr, %._crit_edge78.loopexit151.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.lr.ph77.split.split.us.split.us.epil ], [ 0, %._crit_edge78.loopexit151.unr-lcssa ]
  %87 = fadd double %.04773.us85.us.epil, 0xFFEFFFFFFFFFFFFF
  %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 %._crit_edge78, label %.lr.ph77.split.split.us.split.us.epil, !llvm.loop !19

._crit_edge78:                                    ; preds = %._crit_edge78.loopexit151.unr-lcssa, %.lr.ph77.split.split.us.split.us.epil, %.lr.ph77.split.split.us.split.epil, %._crit_edge78.loopexit149.unr-lcssa, %.lr.ph77.split.split.split.us.epil, %._crit_edge78.loopexit147.unr-lcssa, %.lr.ph77.split.split.split.epil, %._crit_edge78.loopexit145.unr-lcssa, %26, %.preheader
  %.048.lcssa = phi double [ 0xFFEFFFFFFFFFFFFF, %.preheader ], [ %.149.us, %26 ], [ %.149.lcssa.ph, %._crit_edge78.loopexit145.unr-lcssa ], [ %.149.epil, %.lr.ph77.split.split.split.epil ], [ %.149.us102.lcssa.ph, %._crit_edge78.loopexit147.unr-lcssa ], [ %.149.us102.epil, %.lr.ph77.split.split.split.us.epil ], [ %.149.us90.lcssa.ph, %._crit_edge78.loopexit149.unr-lcssa ], [ %.149.us90.epil, %.lr.ph77.split.split.us.split.epil ], [ 0xFFEFFFFFFFFFFFFF, %.lr.ph77.split.split.us.split.us.epil ], [ 0xFFEFFFFFFFFFFFFF, %._crit_edge78.loopexit151.unr-lcssa ]
  %.047.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %27, %26 ], [ %.lcssa146.ph, %._crit_edge78.loopexit145.unr-lcssa ], [ %77, %.lr.ph77.split.split.split.epil ], [ %.lcssa148.ph, %._crit_edge78.loopexit147.unr-lcssa ], [ %82, %.lr.ph77.split.split.split.us.epil ], [ %.lcssa150.ph, %._crit_edge78.loopexit149.unr-lcssa ], [ %85, %.lr.ph77.split.split.us.split.epil ], [ %.lcssa152.ph, %._crit_edge78.loopexit151.unr-lcssa ], [ %87, %.lr.ph77.split.split.us.split.us.epil ]
  %.046.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %.2.us, %26 ], [ 0.000000e+00, %._crit_edge78.loopexit145.unr-lcssa ], [ 0.000000e+00, %.lr.ph77.split.split.split.epil ], [ 0.000000e+00, %._crit_edge78.loopexit147.unr-lcssa ], [ 0.000000e+00, %.lr.ph77.split.split.split.us.epil ], [ 0.000000e+00, %._crit_edge78.loopexit149.unr-lcssa ], [ 0.000000e+00, %.lr.ph77.split.split.us.split.epil ], [ 0.000000e+00, %.lr.ph77.split.split.us.split.us.epil ], [ 0.000000e+00, %._crit_edge78.loopexit151.unr-lcssa ]
  %88 = tail call double @qh_distround(i32 noundef %.fr, double noundef %.048.lcssa, double noundef %.047.lcssa)
  br label %89

89:                                               ; preds = %._crit_edge78, %67
  %.057 = phi double [ %68, %67 ], [ %88, %._crit_edge78 ]
  %.3 = phi double [ 0.000000e+00, %67 ], [ %.046.lcssa, %._crit_edge78 ]
  %90 = fmul double %.057, 3.000000e+04
  %91 = fcmp olt double %90, 0x3D9D4C0000000000
  %.056 = select i1 %91, double 0x3D9D4C0000000000, double %90
  %92 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !21
  %93 = icmp sgt i32 %92, 1
  br i1 %93, label %94, label %96

94:                                               ; preds = %89
  %95 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !22
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %95, i32 noundef 2001, ptr noundef nonnull @.str.2, double noundef %.056, double noundef %.3) #2
  br label %96

96:                                               ; preds = %94, %89
  ret double %.056
}

; Function Attrs: nounwind uwtable
declare dso_local double @qh_distround(i32 noundef, double noundef, double noundef) local_unnamed_addr #1

attributes #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 #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 = { 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, !7, i64 500}
!6 = !{!"qhT", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !10, i64 64, !10, i64 72, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !11, i64 104, !7, i64 112, !7, i64 116, !11, i64 120, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !10, i64 160, !10, i64 168, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !10, i64 192, !10, i64 200, !7, i64 208, !7, i64 212, !10, i64 216, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !7, i64 292, !7, i64 296, !8, i64 300, !7, i64 416, !7, i64 420, !7, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !7, i64 444, !10, i64 448, !10, i64 456, !10, i64 464, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !7, i64 512, !7, i64 516, !7, i64 520, !7, i64 524, !7, i64 528, !7, i64 532, !7, i64 536, !7, i64 540, !7, i64 544, !10, i64 552, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !7, i64 584, !7, i64 588, !10, i64 592, !7, i64 600, !11, i64 608, !11, i64 616, !7, i64 624, !7, i64 628, !7, i64 632, !7, i64 636, !7, i64 640, !11, i64 648, !7, i64 656, !11, i64 664, !7, i64 672, !8, i64 676, !7, i64 932, !8, i64 936, !8, i64 1192, !7, i64 1704, !7, i64 1708, !7, i64 1712, !7, i64 1716, !7, i64 1720, !7, i64 1724, !11, i64 1728, !11, i64 1736, !11, i64 1744, !11, i64 1752, !10, i64 1760, !10, i64 1768, !10, i64 1776, !10, i64 1784, !10, i64 1792, !10, i64 1800, !10, i64 1808, !10, i64 1816, !10, i64 1824, !10, i64 1832, !10, i64 1840, !10, i64 1848, !10, i64 1856, !10, i64 1864, !11, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !10, i64 1904, !7, i64 1912, !8, i64 1916, !8, i64 1928, !8, i64 2128, !8, i64 2168, !8, i64 2368, !11, i64 2408, !11, i64 2416, !11, i64 2424, !11, i64 2432, !7, i64 2440, !7, i64 2444, !7, i64 2448, !11, i64 2456, !11, i64 2464, !11, i64 2472, !11, i64 2480, !11, i64 2488, !7, i64 2496, !7, i64 2500, !11, i64 2504, !7, i64 2512, !11, i64 2520, !7, i64 2528, !11, i64 2536, !11, i64 2544, !11, i64 2552, !11, i64 2560, !7, i64 2568, !7, i64 2572, !7, i64 2576, !7, i64 2580, !7, i64 2584, !7, i64 2588, !7, i64 2592, !7, i64 2596, !12, i64 2600, !7, i64 2608, !7, i64 2612, !7, i64 2616, !7, i64 2620, !7, i64 2624, !11, i64 2632, !11, i64 2640, !7, i64 2648, !7, i64 2652, !7, i64 2656, !10, i64 2664, !7, i64 2672, !10, i64 2680, !10, i64 2688, !10, i64 2696, !7, i64 2704, !7, i64 2708, !7, i64 2712, !7, i64 2716, !7, i64 2720, !10, i64 2728, !10, i64 2736, !7, i64 2744, !7, i64 2748, !7, i64 2752, !7, i64 2756, !7, i64 2760, !7, i64 2764, !10, i64 2768, !10, i64 2776, !7, i64 2784, !7, i64 2788, !7, i64 2792, !7, i64 2796, !11, i64 2800, !11, i64 2808, !11, i64 2816, !11, i64 2824, !11, i64 2832, !11, i64 2840, !11, i64 2848, !11, i64 2856, !11, i64 2864, !7, i64 2872, !11, i64 2880, !11, i64 2888, !7, i64 2896, !7, i64 2900, !7, i64 2904, !11, i64 2912, !10, i64 2920, !10, i64 2928, !10, i64 2936, !10, i64 2944, !7, i64 2952, !7, i64 2956, !7, i64 2960, !7, i64 2964, !7, i64 2968, !7, i64 2972, !11, i64 2976, !11, i64 2984, !7, i64 2992}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !7, i64 496}
!14 = !{!10, !10, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!6, !10, i64 1784}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = !{!6, !7, i64 136}
!22 = !{!6, !11, i64 2424}


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