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

; 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] }
%struct.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }

@qh_qh = external global %struct.qhT, align 8
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [130 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [152 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [130 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [45 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

; 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
declare dso_local void @qh_check_bestdist() #1

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

declare double @qh_maxouter() #2

declare void @qh_errexit2(i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_check_point(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_check_points() #1 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  store ptr null, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store double 0xFFEFFFFFFFFFFFFF, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %12 = call double @qh_maxouter()
  store double %12, ptr %5, align 8, !tbaa !9
  %13 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 134), align 8, !tbaa !11
  %14 = load double, ptr %5, align 8, !tbaa !9
  %15 = fadd double %14, %13
  store double %15, ptr %5, align 8, !tbaa !9
  %16 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !15
  %17 = icmp sge i32 %16, 1
  br i1 %17, label %18, label %21

18:                                               ; preds = %0
  %19 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %20 = load double, ptr %5, align 8, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %19, i32 noundef 1025, ptr noundef @.str.24, double noundef %20)
  br label %21

21:                                               ; preds = %18, %0
  %22 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 181), align 4, !tbaa !17
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %31

24:                                               ; preds = %21
  %25 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 181), align 4, !tbaa !17
  %26 = sitofp i32 %25 to float
  %27 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 112), align 8, !tbaa !18
  %28 = sitofp i32 %27 to float
  %29 = fmul float %26, %28
  %30 = fpext float %29 to double
  store double %30, ptr %4, align 8, !tbaa !9
  br label %38

31:                                               ; preds = %21
  %32 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 178), align 8, !tbaa !19
  %33 = sitofp i32 %32 to float
  %34 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 112), align 8, !tbaa !18
  %35 = sitofp i32 %34 to float
  %36 = fmul float %33, %35
  %37 = fpext float %36 to double
  store double %37, ptr %4, align 8, !tbaa !9
  br label %38

38:                                               ; preds = %31, %24
  %39 = load double, ptr %4, align 8, !tbaa !9
  %40 = fcmp oge double %39, 1.000000e+06
  br i1 %40, label %41, label %53

41:                                               ; preds = %38
  %42 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 198), align 8, !tbaa !20
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %53, label %44

44:                                               ; preds = %41
  %45 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 84), align 8, !tbaa !21
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %52

47:                                               ; preds = %44
  %48 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 39), align 4, !tbaa !22
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %52

50:                                               ; preds = %47
  %51 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %51, i32 noundef 7075, ptr noundef @.str.25)
  br label %52

52:                                               ; preds = %50, %47, %44
  call void @qh_check_bestdist()
  br label %239

53:                                               ; preds = %41, %38
  %54 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 198), align 8, !tbaa !20
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %57

56:                                               ; preds = %53
  store i32 1, ptr %11, align 4, !tbaa !23
  br label %58

57:                                               ; preds = %53
  store i32 0, ptr %11, align 4, !tbaa !23
  br label %58

58:                                               ; preds = %57, %56
  %59 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 37), align 4, !tbaa !24
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %63

61:                                               ; preds = %58
  %62 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %62, i32 noundef 7076, ptr noundef @.str.26)
  br label %72

63:                                               ; preds = %58
  %64 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 84), align 8, !tbaa !21
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %69, label %66

66:                                               ; preds = %63
  %67 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 46), align 4, !tbaa !25
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %71

69:                                               ; preds = %66, %63
  %70 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %70, i32 noundef 7077, ptr noundef @.str.27)
  br label %71

71:                                               ; preds = %69, %66
  br label %72

72:                                               ; preds = %71, %61
  %73 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 63), align 8, !tbaa !26
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %94

75:                                               ; preds = %72
  %76 = load i32, ptr %11, align 4, !tbaa !23
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %85

78:                                               ; preds = %75
  %79 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %80 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 48), align 4, !tbaa !27
  %81 = icmp ne i32 %80, 0
  %82 = zext i1 %81 to i64
  %83 = select i1 %81, ptr @.str.3, ptr @.str.4
  %84 = load double, ptr %4, align 8, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %79, i32 noundef 8098, ptr noundef @.str.28, ptr noundef %83, double noundef %84)
  br label %93

85:                                               ; preds = %75
  %86 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %87 = load double, ptr %5, align 8, !tbaa !9
  %88 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 48), align 4, !tbaa !27
  %89 = icmp ne i32 %88, 0
  %90 = zext i1 %89 to i64
  %91 = select i1 %89, ptr @.str.3, ptr @.str.4
  %92 = load double, ptr %4, align 8, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %86, i32 noundef 8099, ptr noundef @.str.29, double noundef %87, ptr noundef %91, double noundef %92)
  br label %93

93:                                               ; preds = %85, %78
  br label %94

94:                                               ; preds = %93, %72
  %95 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !28
  store ptr %95, ptr %1, align 8, !tbaa !5
  br label %96

96:                                               ; preds = %208, %94
  %97 = load ptr, ptr %1, align 8, !tbaa !5
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %104

99:                                               ; preds = %96
  %100 = load ptr, ptr %1, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.facetT, ptr %100, i32 0, i32 7
  %102 = load ptr, ptr %101, align 8, !tbaa !29
  %103 = icmp ne ptr %102, null
  br label %104

104:                                              ; preds = %99, %96
  %105 = phi i1 [ false, %96 ], [ %103, %99 ]
  br i1 %105, label %106, label %212

106:                                              ; preds = %104
  %107 = load ptr, ptr %1, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.facetT, ptr %107, i32 0, i32 15
  %109 = load i32, ptr %108, align 8
  %110 = lshr i32 %109, 19
  %111 = and i32 %110, 1
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %117, label %113

113:                                              ; preds = %106
  %114 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 48), align 4, !tbaa !27
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %117

116:                                              ; preds = %113
  br label %208

117:                                              ; preds = %113, %106
  %118 = load ptr, ptr %1, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.facetT, ptr %118, i32 0, i32 15
  %120 = load i32, ptr %119, align 8
  %121 = lshr i32 %120, 16
  %122 = and i32 %121, 1
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %125

124:                                              ; preds = %117
  br label %208

125:                                              ; preds = %117
  %126 = load ptr, ptr %1, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.facetT, ptr %126, i32 0, i32 3
  %128 = load ptr, ptr %127, align 8, !tbaa !31
  %129 = icmp ne ptr %128, null
  br i1 %129, label %140, label %130

130:                                              ; preds = %125
  %131 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %132 = load ptr, ptr %1, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.facetT, ptr %132, i32 0, i32 14
  %134 = load i32, ptr %133, align 4, !tbaa !32
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %131, i32 noundef 7061, ptr noundef @.str.30, i32 noundef %134)
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = icmp ne ptr %135, null
  br i1 %136, label %139, label %137

137:                                              ; preds = %130
  %138 = load ptr, ptr %1, align 8, !tbaa !5
  store ptr %138, ptr %2, align 8, !tbaa !5
  br label %139

139:                                              ; preds = %137, %130
  br label %208

140:                                              ; preds = %125
  %141 = load i32, ptr %11, align 4, !tbaa !23
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %149

143:                                              ; preds = %140
  %144 = load ptr, ptr %1, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.facetT, ptr %144, i32 0, i32 1
  %146 = load double, ptr %145, align 8, !tbaa !33
  %147 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 134), align 8, !tbaa !11
  %148 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %147, double %146)
  store double %148, ptr %5, align 8, !tbaa !9
  br label %149

149:                                              ; preds = %143, %140
  store i32 0, ptr %10, align 4, !tbaa !23
  %150 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 113), align 8, !tbaa !34
  store ptr %150, ptr %7, align 8, !tbaa !5
  %151 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 113), align 8, !tbaa !34
  %152 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !35
  %153 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 112), align 8, !tbaa !18
  %154 = mul nsw i32 %152, %153
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds double, ptr %151, i64 %155
  store ptr %156, ptr %9, align 8, !tbaa !5
  br label %157

157:                                              ; preds = %169, %149
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = icmp ult ptr %158, %159
  br i1 %160, label %161, label %174

161:                                              ; preds = %157
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !36
  %164 = icmp ne ptr %162, %163
  br i1 %164, label %165, label %168

165:                                              ; preds = %161
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = load ptr, ptr %1, align 8, !tbaa !5
  call void @qh_check_point(ptr noundef %166, ptr noundef %167, ptr noundef %5, ptr noundef %6, ptr noundef %2, ptr noundef %3, ptr noundef %10)
  br label %168

168:                                              ; preds = %165, %161
  br label %169

169:                                              ; preds = %168
  %170 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !35
  %171 = load ptr, ptr %7, align 8, !tbaa !5
  %172 = sext i32 %170 to i64
  %173 = getelementptr inbounds double, ptr %171, i64 %172
  store ptr %173, ptr %7, align 8, !tbaa !5
  br label %157, !llvm.loop !37

174:                                              ; preds = %157
  store ptr null, ptr %7, align 8, !tbaa !5
  %175 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 225), align 8, !tbaa !39
  %176 = icmp ne ptr %175, null
  br i1 %176, label %177, label %195

177:                                              ; preds = %174
  %178 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 225), align 8, !tbaa !39
  %179 = getelementptr inbounds %struct.setT, ptr %178, i32 0, i32 1
  %180 = getelementptr inbounds [1 x %union.setelemT], ptr %179, i64 0, i64 0
  store ptr %180, ptr %8, align 8, !tbaa !5
  br label %181

181:                                              ; preds = %193, %177
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  %183 = getelementptr inbounds ptr, ptr %182, i32 1
  store ptr %183, ptr %8, align 8, !tbaa !5
  %184 = load ptr, ptr %182, align 8, !tbaa !5
  store ptr %184, ptr %7, align 8, !tbaa !5
  %185 = icmp ne ptr %184, null
  br i1 %185, label %186, label %194

186:                                              ; preds = %181
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !36
  %189 = icmp ne ptr %187, %188
  br i1 %189, label %190, label %193

190:                                              ; preds = %186
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = load ptr, ptr %1, align 8, !tbaa !5
  call void @qh_check_point(ptr noundef %191, ptr noundef %192, ptr noundef %5, ptr noundef %6, ptr noundef %2, ptr noundef %3, ptr noundef %10)
  br label %193

193:                                              ; preds = %190, %186
  br label %181, !llvm.loop !40

194:                                              ; preds = %181
  br label %195

195:                                              ; preds = %194, %174
  %196 = load i32, ptr %10, align 4, !tbaa !23
  %197 = icmp sge i32 %196, 10
  br i1 %197, label %198, label %207

198:                                              ; preds = %195
  %199 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %200 = load i32, ptr %10, align 4, !tbaa !23
  %201 = sub nsw i32 %200, 10
  %202 = add nsw i32 %201, 1
  %203 = load ptr, ptr %1, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.facetT, ptr %203, i32 0, i32 14
  %205 = load i32, ptr %204, align 4, !tbaa !32
  %206 = load double, ptr %6, align 8, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %199, i32 noundef 6422, ptr noundef @.str.31, i32 noundef %202, i32 noundef %205, double noundef %206)
  br label %207

207:                                              ; preds = %198, %195
  br label %208

208:                                              ; preds = %207, %139, %124, %116
  %209 = load ptr, ptr %1, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.facetT, ptr %209, i32 0, i32 7
  %211 = load ptr, ptr %210, align 8, !tbaa !29
  store ptr %211, ptr %1, align 8, !tbaa !5
  br label %96, !llvm.loop !41

212:                                              ; preds = %104
  %213 = load double, ptr %6, align 8, !tbaa !9
  %214 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 148), align 8, !tbaa !42
  %215 = fcmp ogt double %213, %214
  br i1 %215, label %216, label %222

216:                                              ; preds = %212
  %217 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %218 = load double, ptr %6, align 8, !tbaa !9
  %219 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 148), align 8, !tbaa !42
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %217, i32 noundef 6112, ptr noundef @.str.32, double noundef %218, double noundef %219)
  %220 = load ptr, ptr %2, align 8, !tbaa !5
  %221 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 3, ptr noundef %220, ptr noundef %221)
  br label %232

222:                                              ; preds = %212
  %223 = load ptr, ptr %2, align 8, !tbaa !5
  %224 = icmp ne ptr %223, null
  br i1 %224, label %225, label %231

225:                                              ; preds = %222
  %226 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 148), align 8, !tbaa !42
  %227 = fcmp ogt double %226, 0x7FDFFFFFFFFFFFFF
  br i1 %227, label %228, label %231

228:                                              ; preds = %225
  %229 = load ptr, ptr %2, align 8, !tbaa !5
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 3, ptr noundef %229, ptr noundef %230)
  br label %231

231:                                              ; preds = %228, %225, %222
  br label %232

232:                                              ; preds = %231, %216
  %233 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !15
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %235, label %238

235:                                              ; preds = %232
  %236 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %237 = load double, ptr %6, align 8, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %236, i32 noundef 21, ptr noundef @.str.33, double noundef %237)
  br label %238

238:                                              ; preds = %235, %232
  br label %239

239:                                              ; preds = %238, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret void
}

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

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


; 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.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [130 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [152 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [130 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [45 x i8], align 1

; 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
declare dso_local void @qh_check_bestdist() local_unnamed_addr #1

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

declare double @qh_maxouter() local_unnamed_addr #2

declare void @qh_errexit2(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_check_point(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_check_points() local_unnamed_addr #1 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store ptr null, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  store ptr null, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  store double 0xFFEFFFFFFFFFFFFF, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %6 = tail call double @qh_maxouter() #4
  %7 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1784), align 8, !tbaa !11
  %8 = fadd double %6, %7
  store double %8, ptr %3, align 8, !tbaa !9
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %11, label %13

11:                                               ; preds = %0
  %12 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %12, i32 noundef 1025, ptr noundef nonnull @.str.24, double noundef %8) #4
  br label %13

13:                                               ; preds = %11, %0
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2580), align 4, !tbaa !17
  %.not = icmp eq i32 %14, 0
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2568), align 8
  %.sink82 = select i1 %.not, i32 %15, i32 %14
  %16 = sitofp i32 %.sink82 to float
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !18
  %18 = sitofp i32 %17 to float
  %19 = fmul float %16, %18
  %.036 = fpext float %19 to double
  %20 = fcmp ult float %19, 1.000000e+06
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2672), align 8
  %22 = icmp ne i32 %21, 0
  %or.cond = select i1 %20, i1 true, i1 %22
  br i1 %or.cond, label %31, label %23

23:                                               ; preds = %13
  %24 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 504), align 8, !tbaa !19
  %25 = icmp ne i32 %24, 0
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 188), align 4
  %27 = icmp ne i32 %26, 0
  %or.cond3 = select i1 %25, i1 %27, i1 false
  br i1 %or.cond3, label %28, label %30

28:                                               ; preds = %23
  %29 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %29, i32 noundef 7075, ptr noundef nonnull @.str.25) #4
  br label %30

30:                                               ; preds = %28, %23
  tail call void @qh_check_bestdist()
  br label %128

31:                                               ; preds = %13
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 180), align 4, !tbaa !20
  %.not44 = icmp eq i32 %32, 0
  br i1 %.not44, label %35, label %33

33:                                               ; preds = %31
  %34 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %34, i32 noundef 7076, ptr noundef nonnull @.str.26) #4
  br label %42

35:                                               ; preds = %31
  %36 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 504), align 8, !tbaa !19
  %37 = icmp ne i32 %36, 0
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 228), align 4
  %39 = icmp ne i32 %38, 0
  %or.cond5 = select i1 %37, i1 true, i1 %39
  br i1 %or.cond5, label %40, label %42

40:                                               ; preds = %35
  %41 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %41, i32 noundef 7077, ptr noundef nonnull @.str.27) #4
  br label %42

42:                                               ; preds = %40, %35, %33
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 296), align 8, !tbaa !21
  %.not45 = icmp eq i32 %43, 0
  br i1 %.not45, label %50, label %44

44:                                               ; preds = %42
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 236), align 4, !tbaa !22
  %.not48 = icmp eq i32 %46, 0
  %47 = select i1 %.not48, ptr @.str.4, ptr @.str.3
  br i1 %22, label %48, label %49

48:                                               ; preds = %44
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %45, i32 noundef 8098, ptr noundef nonnull @.str.28, ptr noundef nonnull %47, double noundef %.036) #4
  br label %50

49:                                               ; preds = %44
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %45, i32 noundef 8099, ptr noundef nonnull @.str.29, double noundef %8, ptr noundef nonnull %47, double noundef %.036) #4
  br label %50

50:                                               ; preds = %48, %49, %42
  %.03369 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !5
  %.not4970 = icmp eq ptr %.03369, null
  br i1 %.not4970, label %.critedge, label %.lr.ph73

.lr.ph73:                                         ; preds = %50, %109
  %.03371 = phi ptr [ %.033, %109 ], [ %.03369, %50 ]
  %51 = getelementptr inbounds i8, ptr %.03371, i64 56
  %52 = load ptr, ptr %51, align 8, !tbaa !23
  %.not50 = icmp eq ptr %52, null
  br i1 %.not50, label %.critedge.loopexit, label %53

53:                                               ; preds = %.lr.ph73
  %54 = getelementptr inbounds i8, ptr %.03371, i64 112
  %55 = load i32, ptr %54, align 8
  %56 = and i32 %55, 524288
  %57 = icmp ne i32 %56, 0
  %58 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 236), align 4
  %59 = icmp eq i32 %58, 0
  %or.cond7.not63 = select i1 %57, i1 true, i1 %59
  %60 = and i32 %55, 65536
  %.not52 = icmp eq i32 %60, 0
  %or.cond60 = and i1 %.not52, %or.cond7.not63
  br i1 %or.cond60, label %61, label %109

61:                                               ; preds = %53
  %62 = getelementptr inbounds i8, ptr %.03371, i64 24
  %63 = load ptr, ptr %62, align 8, !tbaa !25
  %.not53 = icmp eq ptr %63, null
  br i1 %.not53, label %64, label %70

64:                                               ; preds = %61
  %65 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  %66 = getelementptr inbounds i8, ptr %.03371, i64 108
  %67 = load i32, ptr %66, align 4, !tbaa !26
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %65, i32 noundef 7061, ptr noundef nonnull @.str.30, i32 noundef %67) #4
  %68 = load ptr, ptr %1, align 8, !tbaa !5
  %.not54 = icmp eq ptr %68, null
  br i1 %.not54, label %69, label %109

69:                                               ; preds = %64
  store ptr %.03371, ptr %1, align 8, !tbaa !5
  br label %109

70:                                               ; preds = %61
  br i1 %22, label %71, label %76

71:                                               ; preds = %70
  %72 = getelementptr inbounds i8, ptr %.03371, i64 8
  %73 = load double, ptr %72, align 8, !tbaa !27
  %74 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1784), align 8, !tbaa !11
  %75 = call double @llvm.fmuladd.f64(double %74, double 2.000000e+00, double %73)
  store double %75, ptr %3, align 8, !tbaa !9
  br label %76

76:                                               ; preds = %71, %70
  store i32 0, ptr %5, align 4, !tbaa !28
  %77 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 648), align 8, !tbaa !29
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !30
  %79 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !18
  %80 = mul nsw i32 %79, %78
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %77, i64 %81
  %83 = icmp sgt i32 %80, 0
  br i1 %83, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %76
  %.pre75 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 104), align 8, !tbaa !31
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %87
  %84 = phi i32 [ %88, %87 ], [ %78, %.lr.ph.preheader ]
  %85 = phi ptr [ %89, %87 ], [ %.pre75, %.lr.ph.preheader ]
  %.03564 = phi ptr [ %91, %87 ], [ %77, %.lr.ph.preheader ]
  %.not59 = icmp eq ptr %.03564, %85
  br i1 %.not59, label %87, label %86

86:                                               ; preds = %.lr.ph
  call void @qh_check_point(ptr noundef %.03564, ptr noundef nonnull %.03371, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %5)
  %.pre = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 104), align 8, !tbaa !31
  %.pre76 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !30
  br label %87

87:                                               ; preds = %.lr.ph, %86
  %88 = phi i32 [ %84, %.lr.ph ], [ %.pre76, %86 ]
  %89 = phi ptr [ %85, %.lr.ph ], [ %.pre, %86 ]
  %90 = sext i32 %88 to i64
  %91 = getelementptr inbounds double, ptr %.03564, i64 %90
  %92 = icmp ult ptr %91, %82
  br i1 %92, label %.lr.ph, label %._crit_edge, !llvm.loop !32

._crit_edge:                                      ; preds = %87, %76
  %93 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2832), align 8, !tbaa !34
  %.not56 = icmp eq ptr %93, null
  br i1 %.not56, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %._crit_edge
  %.03465 = getelementptr inbounds i8, ptr %93, i64 8
  %94 = load ptr, ptr %.03465, align 8, !tbaa !5
  %.not5766 = icmp eq ptr %94, null
  br i1 %.not5766, label %.loopexit, label %.lr.ph68.preheader

.lr.ph68.preheader:                               ; preds = %.preheader
  %.pre78 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 104), align 8, !tbaa !31
  br label %.lr.ph68

.lr.ph68:                                         ; preds = %.lr.ph68.preheader, %98
  %95 = phi ptr [ %99, %98 ], [ %.pre78, %.lr.ph68.preheader ]
  %96 = phi ptr [ %100, %98 ], [ %94, %.lr.ph68.preheader ]
  %.03467 = phi ptr [ %.034, %98 ], [ %.03465, %.lr.ph68.preheader ]
  %.not58 = icmp eq ptr %96, %95
  br i1 %.not58, label %98, label %97

97:                                               ; preds = %.lr.ph68
  call void @qh_check_point(ptr noundef nonnull %96, ptr noundef nonnull %.03371, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %5)
  %.pre77 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 104), align 8, !tbaa !31
  br label %98

98:                                               ; preds = %97, %.lr.ph68
  %99 = phi ptr [ %.pre77, %97 ], [ %95, %.lr.ph68 ]
  %.034 = getelementptr inbounds i8, ptr %.03467, i64 8
  %100 = load ptr, ptr %.034, align 8, !tbaa !5
  %.not57 = icmp eq ptr %100, null
  br i1 %.not57, label %.loopexit, label %.lr.ph68, !llvm.loop !35

.loopexit:                                        ; preds = %98, %.preheader, %._crit_edge
  %101 = load i32, ptr %5, align 4, !tbaa !28
  %102 = icmp sgt i32 %101, 9
  br i1 %102, label %103, label %109

103:                                              ; preds = %.loopexit
  %104 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  %105 = add nsw i32 %101, -9
  %106 = getelementptr inbounds i8, ptr %.03371, i64 108
  %107 = load i32, ptr %106, align 4, !tbaa !26
  %108 = load double, ptr %4, align 8, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %104, i32 noundef 6422, ptr noundef nonnull @.str.31, i32 noundef %105, i32 noundef %107, double noundef %108) #4
  br label %109

109:                                              ; preds = %.loopexit, %103, %64, %69, %53
  %.033 = load ptr, ptr %51, align 8, !tbaa !5
  %.not49 = icmp eq ptr %.033, null
  br i1 %.not49, label %.critedge.loopexit, label %.lr.ph73, !llvm.loop !36

.critedge.loopexit:                               ; preds = %109, %.lr.ph73
  %.pre79 = load double, ptr %4, align 8, !tbaa !9
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %50
  %110 = phi double [ %.pre79, %.critedge.loopexit ], [ 0xFFEFFFFFFFFFFFFF, %50 ]
  %111 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1896), align 8
  %112 = fcmp ogt double %110, %111
  br i1 %112, label %113, label %117

113:                                              ; preds = %.critedge
  %114 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %114, i32 noundef 6112, ptr noundef nonnull @.str.32, double noundef %110, double noundef %111) #4
  %115 = load ptr, ptr %1, align 8, !tbaa !5
  %116 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 3, ptr noundef %115, ptr noundef %116) #4
  br label %123

117:                                              ; preds = %.critedge
  %118 = load ptr, ptr %1, align 8, !tbaa !5
  %119 = icmp ne ptr %118, null
  %120 = fcmp ogt double %111, 0x7FDFFFFFFFFFFFFF
  %or.cond9 = and i1 %120, %119
  br i1 %or.cond9, label %121, label %123

121:                                              ; preds = %117
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 3, ptr noundef nonnull %118, ptr noundef %122) #4
  br label %123

123:                                              ; preds = %117, %121, %113
  %124 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  %.not51 = icmp eq i32 %124, 0
  br i1 %.not51, label %128, label %125

125:                                              ; preds = %123
  %126 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  %127 = load double, ptr %4, align 8, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %126, i32 noundef 21, ptr noundef nonnull @.str.33, double noundef %127) #4
  br label %128

128:                                              ; preds = %123, %125, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret void
}

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


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass