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

@qh_qh = external global %struct.qhT, align 8
@.str.55 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [16 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

declare void @qh_errexit(i32 noundef, ptr 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: nounwind uwtable
declare dso_local double @qh_determinant(ptr noundef, i32 noundef, ptr noundef) #3

declare i32 @qh_pointid(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @qh_divzero(double noundef, double noundef, double noundef, ptr noundef) #3

declare void @qh_memfree(ptr noundef, i32 noundef) #1

declare ptr @qh_settemp(i32 noundef) #1

declare i32 @qh_setsize(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_voronoi_center(i32 noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, 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
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca double, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %23 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 161), align 4, !tbaa !11
  %24 = call ptr @qh_memalloc(i32 noundef %23)
  store ptr %24, ptr %8, align 8, !tbaa !9
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %25 = load ptr, ptr %4, align 8, !tbaa !9
  %26 = call i32 @qh_setsize(ptr noundef %25)
  store i32 %26, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %27 = load i32, ptr %13, align 4, !tbaa !5
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = add nsw i32 %28, 1
  %30 = icmp eq i32 %27, %29
  br i1 %30, label %31, label %33

31:                                               ; preds = %2
  %32 = load ptr, ptr %4, align 8, !tbaa !9
  store ptr %32, ptr %9, align 8, !tbaa !9
  br label %52

33:                                               ; preds = %2
  %34 = load i32, ptr %13, align 4, !tbaa !5
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  %37 = icmp slt i32 %34, %36
  br i1 %37, label %38, label %45

38:                                               ; preds = %33
  %39 = load ptr, ptr %8, align 8, !tbaa !9
  %40 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 161), align 4, !tbaa !11
  call void @qh_memfree(ptr noundef %39, i32 noundef %40)
  %41 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %41, i32 noundef 6025, ptr noundef @.str.85, i32 noundef %43)
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null)
  %44 = load ptr, ptr %4, align 8, !tbaa !9
  store ptr %44, ptr %9, align 8, !tbaa !9
  br label %51

45:                                               ; preds = %33
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  %48 = call ptr @qh_settemp(i32 noundef %47)
  store ptr %48, ptr %9, align 8, !tbaa !9
  %49 = load i32, ptr %3, align 4, !tbaa !5
  %50 = load ptr, ptr %4, align 8, !tbaa !9
  call void @qh_maxsimplex(i32 noundef %49, ptr noundef %50, ptr noundef null, i32 noundef 0, ptr noundef %9)
  br label %51

51:                                               ; preds = %45, %38
  br label %52

52:                                               ; preds = %51, %31
  %53 = load ptr, ptr %9, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.setT, ptr %53, i32 0, i32 1
  %55 = getelementptr inbounds [1 x %union.setelemT], ptr %54, i64 0, i64 0
  %56 = load ptr, ptr %55, align 8, !tbaa !16
  store ptr %56, ptr %7, align 8, !tbaa !9
  %57 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 227), align 8, !tbaa !17
  store ptr %57, ptr %14, align 8, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %100, %52
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %62, label %103

62:                                               ; preds = %58
  %63 = load ptr, ptr %14, align 8, !tbaa !9
  %64 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 228), align 8, !tbaa !18
  %65 = load i32, ptr %12, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds ptr, ptr %64, i64 %66
  store ptr %63, ptr %67, align 8, !tbaa !9
  store ptr null, ptr %5, align 8, !tbaa !9
  %68 = load ptr, ptr %9, align 8, !tbaa !9
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %99

70:                                               ; preds = %62
  %71 = load ptr, ptr %9, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.setT, ptr %71, i32 0, i32 1
  %73 = getelementptr inbounds [1 x %union.setelemT], ptr %72, i64 0, i64 0
  store ptr %73, ptr %6, align 8, !tbaa !9
  br label %74

74:                                               ; preds = %97, %70
  %75 = load ptr, ptr %6, align 8, !tbaa !9
  %76 = getelementptr inbounds ptr, ptr %75, i32 1
  store ptr %76, ptr %6, align 8, !tbaa !9
  %77 = load ptr, ptr %75, align 8, !tbaa !9
  store ptr %77, ptr %5, align 8, !tbaa !9
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %98

79:                                               ; preds = %74
  %80 = load ptr, ptr %5, align 8, !tbaa !9
  %81 = load ptr, ptr %7, align 8, !tbaa !9
  %82 = icmp ne ptr %80, %81
  br i1 %82, label %83, label %97

83:                                               ; preds = %79
  %84 = load ptr, ptr %5, align 8, !tbaa !9
  %85 = load i32, ptr %12, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds double, ptr %84, i64 %86
  %88 = load double, ptr %87, align 8, !tbaa !19
  %89 = load ptr, ptr %7, align 8, !tbaa !9
  %90 = load i32, ptr %12, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %89, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !19
  %94 = fsub double %88, %93
  %95 = load ptr, ptr %14, align 8, !tbaa !9
  %96 = getelementptr inbounds double, ptr %95, i32 1
  store ptr %96, ptr %14, align 8, !tbaa !9
  store double %94, ptr %95, align 8, !tbaa !19
  br label %97

97:                                               ; preds = %83, %79
  br label %74, !llvm.loop !20

98:                                               ; preds = %74
  br label %99

99:                                               ; preds = %98, %62
  br label %100

100:                                              ; preds = %99
  %101 = load i32, ptr %12, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %12, align 4, !tbaa !5
  br label %58, !llvm.loop !22

103:                                              ; preds = %58
  %104 = load ptr, ptr %14, align 8, !tbaa !9
  store ptr %104, ptr %17, align 8, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %136, %103
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = load i32, ptr %3, align 4, !tbaa !5
  %108 = icmp slt i32 %106, %107
  br i1 %108, label %109, label %139

109:                                              ; preds = %105
  store double 0.000000e+00, ptr %16, align 8, !tbaa !19
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %129, %109
  %111 = load i32, ptr %12, align 4, !tbaa !5
  %112 = load i32, ptr %3, align 4, !tbaa !5
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %114, label %132

114:                                              ; preds = %110
  %115 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 228), align 8, !tbaa !18
  %116 = load i32, ptr %12, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds ptr, ptr %115, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !9
  %120 = load i32, ptr %10, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %119, i64 %121
  store ptr %122, ptr %15, align 8, !tbaa !9
  %123 = load ptr, ptr %15, align 8, !tbaa !9
  %124 = load double, ptr %123, align 8, !tbaa !19
  %125 = load ptr, ptr %15, align 8, !tbaa !9
  %126 = load double, ptr %125, align 8, !tbaa !19
  %127 = load double, ptr %16, align 8, !tbaa !19
  %128 = call double @llvm.fmuladd.f64(double %124, double %126, double %127)
  store double %128, ptr %16, align 8, !tbaa !19
  br label %129

129:                                              ; preds = %114
  %130 = load i32, ptr %12, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %12, align 4, !tbaa !5
  br label %110, !llvm.loop !23

132:                                              ; preds = %110
  %133 = load double, ptr %16, align 8, !tbaa !19
  %134 = load ptr, ptr %14, align 8, !tbaa !9
  %135 = getelementptr inbounds double, ptr %134, i32 1
  store ptr %135, ptr %14, align 8, !tbaa !9
  store double %133, ptr %134, align 8, !tbaa !19
  br label %136

136:                                              ; preds = %132
  %137 = load i32, ptr %10, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %10, align 4, !tbaa !5
  br label %105, !llvm.loop !24

139:                                              ; preds = %105
  %140 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 228), align 8, !tbaa !18
  %141 = load i32, ptr %3, align 4, !tbaa !5
  %142 = call double @qh_determinant(ptr noundef %140, i32 noundef %141, ptr noundef %21)
  store double %142, ptr %19, align 8, !tbaa !19
  %143 = load double, ptr %19, align 8, !tbaa !19
  %144 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 141), align 8, !tbaa !25
  %145 = call double @qh_divzero(double noundef 5.000000e-01, double noundef %143, double noundef %144, ptr noundef %22)
  store double %145, ptr %20, align 8, !tbaa !19
  %146 = load i32, ptr %22, align 4, !tbaa !5
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %166

148:                                              ; preds = %139
  %149 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %149, ptr %12, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %154, %148
  %151 = load i32, ptr %12, align 4, !tbaa !5
  %152 = add nsw i32 %151, -1
  store i32 %152, ptr %12, align 4, !tbaa !5
  %153 = icmp ne i32 %151, 0
  br i1 %153, label %154, label %159

154:                                              ; preds = %150
  %155 = load ptr, ptr %8, align 8, !tbaa !9
  %156 = load i32, ptr %12, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds double, ptr %155, i64 %157
  store double -1.010100e+01, ptr %158, align 8, !tbaa !19
  br label %150, !llvm.loop !26

159:                                              ; preds = %150
  %160 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !27
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %165

162:                                              ; preds = %159
  %163 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %164 = load ptr, ptr %9, align 8, !tbaa !9
  call void @qh_printpoints(ptr noundef %163, ptr noundef @.str.86, ptr noundef %164)
  br label %165

165:                                              ; preds = %162, %159
  br label %293

166:                                              ; preds = %139
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %167

167:                                              ; preds = %252, %166
  %168 = load i32, ptr %10, align 4, !tbaa !5
  %169 = load i32, ptr %3, align 4, !tbaa !5
  %170 = icmp slt i32 %168, %169
  br i1 %170, label %171, label %255

171:                                              ; preds = %167
  %172 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 227), align 8, !tbaa !17
  store ptr %172, ptr %14, align 8, !tbaa !9
  %173 = load ptr, ptr %17, align 8, !tbaa !9
  store ptr %173, ptr %18, align 8, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %174

174:                                              ; preds = %234, %171
  %175 = load i32, ptr %12, align 4, !tbaa !5
  %176 = load i32, ptr %3, align 4, !tbaa !5
  %177 = icmp slt i32 %175, %176
  br i1 %177, label %178, label %237

178:                                              ; preds = %174
  %179 = load ptr, ptr %14, align 8, !tbaa !9
  %180 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 228), align 8, !tbaa !18
  %181 = load i32, ptr %12, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds ptr, ptr %180, i64 %182
  store ptr %179, ptr %183, align 8, !tbaa !9
  %184 = load i32, ptr %12, align 4, !tbaa !5
  %185 = load i32, ptr %10, align 4, !tbaa !5
  %186 = icmp eq i32 %184, %185
  br i1 %186, label %187, label %200

187:                                              ; preds = %178
  %188 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %188, ptr %11, align 4, !tbaa !5
  br label %189

189:                                              ; preds = %193, %187
  %190 = load i32, ptr %11, align 4, !tbaa !5
  %191 = add nsw i32 %190, -1
  store i32 %191, ptr %11, align 4, !tbaa !5
  %192 = icmp ne i32 %190, 0
  br i1 %192, label %193, label %199

193:                                              ; preds = %189
  %194 = load ptr, ptr %18, align 8, !tbaa !9
  %195 = getelementptr inbounds double, ptr %194, i32 1
  store ptr %195, ptr %18, align 8, !tbaa !9
  %196 = load double, ptr %194, align 8, !tbaa !19
  %197 = load ptr, ptr %14, align 8, !tbaa !9
  %198 = getelementptr inbounds double, ptr %197, i32 1
  store ptr %198, ptr %14, align 8, !tbaa !9
  store double %196, ptr %197, align 8, !tbaa !19
  br label %189, !llvm.loop !28

199:                                              ; preds = %189
  br label %233

200:                                              ; preds = %178
  store ptr null, ptr %5, align 8, !tbaa !9
  %201 = load ptr, ptr %9, align 8, !tbaa !9
  %202 = icmp ne ptr %201, null
  br i1 %202, label %203, label %232

203:                                              ; preds = %200
  %204 = load ptr, ptr %9, align 8, !tbaa !9
  %205 = getelementptr inbounds %struct.setT, ptr %204, i32 0, i32 1
  %206 = getelementptr inbounds [1 x %union.setelemT], ptr %205, i64 0, i64 0
  store ptr %206, ptr %6, align 8, !tbaa !9
  br label %207

207:                                              ; preds = %230, %203
  %208 = load ptr, ptr %6, align 8, !tbaa !9
  %209 = getelementptr inbounds ptr, ptr %208, i32 1
  store ptr %209, ptr %6, align 8, !tbaa !9
  %210 = load ptr, ptr %208, align 8, !tbaa !9
  store ptr %210, ptr %5, align 8, !tbaa !9
  %211 = icmp ne ptr %210, null
  br i1 %211, label %212, label %231

212:                                              ; preds = %207
  %213 = load ptr, ptr %5, align 8, !tbaa !9
  %214 = load ptr, ptr %7, align 8, !tbaa !9
  %215 = icmp ne ptr %213, %214
  br i1 %215, label %216, label %230

216:                                              ; preds = %212
  %217 = load ptr, ptr %5, align 8, !tbaa !9
  %218 = load i32, ptr %12, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds double, ptr %217, i64 %219
  %221 = load double, ptr %220, align 8, !tbaa !19
  %222 = load ptr, ptr %7, align 8, !tbaa !9
  %223 = load i32, ptr %12, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds double, ptr %222, i64 %224
  %226 = load double, ptr %225, align 8, !tbaa !19
  %227 = fsub double %221, %226
  %228 = load ptr, ptr %14, align 8, !tbaa !9
  %229 = getelementptr inbounds double, ptr %228, i32 1
  store ptr %229, ptr %14, align 8, !tbaa !9
  store double %227, ptr %228, align 8, !tbaa !19
  br label %230

230:                                              ; preds = %216, %212
  br label %207, !llvm.loop !29

231:                                              ; preds = %207
  br label %232

232:                                              ; preds = %231, %200
  br label %233

233:                                              ; preds = %232, %199
  br label %234

234:                                              ; preds = %233
  %235 = load i32, ptr %12, align 4, !tbaa !5
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %12, align 4, !tbaa !5
  br label %174, !llvm.loop !30

237:                                              ; preds = %174
  %238 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 228), align 8, !tbaa !18
  %239 = load i32, ptr %3, align 4, !tbaa !5
  %240 = call double @qh_determinant(ptr noundef %238, i32 noundef %239, ptr noundef %21)
  %241 = load double, ptr %20, align 8, !tbaa !19
  %242 = load ptr, ptr %7, align 8, !tbaa !9
  %243 = load i32, ptr %10, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds double, ptr %242, i64 %244
  %246 = load double, ptr %245, align 8, !tbaa !19
  %247 = call double @llvm.fmuladd.f64(double %240, double %241, double %246)
  %248 = load ptr, ptr %8, align 8, !tbaa !9
  %249 = load i32, ptr %10, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds double, ptr %248, i64 %250
  store double %247, ptr %251, align 8, !tbaa !19
  br label %252

252:                                              ; preds = %237
  %253 = load i32, ptr %10, align 4, !tbaa !5
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %10, align 4, !tbaa !5
  br label %167, !llvm.loop !31

255:                                              ; preds = %167
  %256 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !27
  %257 = icmp sge i32 %256, 3
  br i1 %257, label %258, label %292

258:                                              ; preds = %255
  %259 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %260 = load double, ptr %19, align 8, !tbaa !19
  %261 = load double, ptr %20, align 8, !tbaa !19
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %259, i32 noundef 3061, ptr noundef @.str.87, double noundef %260, double noundef %261)
  %262 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %263 = load i32, ptr %3, align 4, !tbaa !5
  call void @qh_printmatrix(ptr noundef %262, ptr noundef @.str.88, ptr noundef %8, i32 noundef 1, i32 noundef %263)
  %264 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !27
  %265 = icmp sge i32 %264, 5
  br i1 %265, label %266, label %291

266:                                              ; preds = %258
  %267 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %268 = load ptr, ptr %9, align 8, !tbaa !9
  call void @qh_printpoints(ptr noundef %267, ptr noundef @.str.89, ptr noundef %268)
  store ptr null, ptr %5, align 8, !tbaa !9
  %269 = load ptr, ptr %9, align 8, !tbaa !9
  %270 = icmp ne ptr %269, null
  br i1 %270, label %271, label %289

271:                                              ; preds = %266
  %272 = load ptr, ptr %9, align 8, !tbaa !9
  %273 = getelementptr inbounds %struct.setT, ptr %272, i32 0, i32 1
  %274 = getelementptr inbounds [1 x %union.setelemT], ptr %273, i64 0, i64 0
  store ptr %274, ptr %6, align 8, !tbaa !9
  br label %275

275:                                              ; preds = %280, %271
  %276 = load ptr, ptr %6, align 8, !tbaa !9
  %277 = getelementptr inbounds ptr, ptr %276, i32 1
  store ptr %277, ptr %6, align 8, !tbaa !9
  %278 = load ptr, ptr %276, align 8, !tbaa !9
  store ptr %278, ptr %5, align 8, !tbaa !9
  %279 = icmp ne ptr %278, null
  br i1 %279, label %280, label %288

280:                                              ; preds = %275
  %281 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %282 = load ptr, ptr %5, align 8, !tbaa !9
  %283 = call i32 @qh_pointid(ptr noundef %282)
  %284 = load ptr, ptr %5, align 8, !tbaa !9
  %285 = load ptr, ptr %8, align 8, !tbaa !9
  %286 = load i32, ptr %3, align 4, !tbaa !5
  %287 = call double @qh_pointdist(ptr noundef %284, ptr noundef %285, i32 noundef %286)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %281, i32 noundef 8034, ptr noundef @.str.90, i32 noundef %283, double noundef %287)
  br label %275, !llvm.loop !32

288:                                              ; preds = %275
  br label %289

289:                                              ; preds = %288, %266
  %290 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %290, i32 noundef 8035, ptr noundef @.str.55)
  br label %291

291:                                              ; preds = %289, %258
  br label %292

292:                                              ; preds = %291, %255
  br label %293

293:                                              ; preds = %292, %165
  %294 = load ptr, ptr %9, align 8, !tbaa !9
  %295 = load ptr, ptr %4, align 8, !tbaa !9
  %296 = icmp ne ptr %294, %295
  br i1 %296, label %297, label %298

297:                                              ; preds = %293
  call void @qh_settempfree(ptr noundef %9)
  br label %298

298:                                              ; preds = %297, %293
  %299 = load ptr, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  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
  ret ptr %299
}

declare void @qh_settempfree(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_maxsimplex(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local double @qh_pointdist(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @qh_printmatrix(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #3

declare ptr @qh_memalloc(i32 noundef) #1

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

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


; 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.55 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [16 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

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

declare void @qh_errexit(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @qh_determinant(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @qh_pointid(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @qh_divzero(double noundef, double noundef, double noundef, ptr noundef) local_unnamed_addr #3

declare void @qh_memfree(ptr noundef, i32 noundef) local_unnamed_addr #1

declare ptr @qh_settemp(i32 noundef) local_unnamed_addr #1

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_voronoi_center(i32 noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %7 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2444), align 4, !tbaa !5
  %8 = tail call ptr @qh_memalloc(i32 noundef %7) #4
  store ptr %8, ptr %3, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %9 = tail call i32 @qh_setsize(ptr noundef %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %10 = add nsw i32 %0, 1
  %11 = icmp eq i32 %9, %10
  br i1 %11, label %12, label %13

12:                                               ; preds = %2
  store ptr %1, ptr %4, align 8, !tbaa !13
  br label %19

13:                                               ; preds = %2
  %.not = icmp sgt i32 %9, %0
  br i1 %.not, label %17, label %14

14:                                               ; preds = %13
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2444), align 4, !tbaa !5
  tail call void @qh_memfree(ptr noundef %8, i32 noundef %15) #4
  %16 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %16, i32 noundef 6025, ptr noundef nonnull @.str.85, i32 noundef %10) #4
  tail call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null) #4
  store ptr %1, ptr %4, align 8, !tbaa !13
  br label %19

17:                                               ; preds = %13
  %18 = tail call ptr @qh_settemp(i32 noundef %10) #4
  store ptr %18, ptr %4, align 8, !tbaa !13
  call void @qh_maxsimplex(i32 noundef %0, ptr noundef %1, ptr noundef null, i32 noundef 0, ptr noundef nonnull %4)
  %.pre = load ptr, ptr %4, align 8, !tbaa !13
  br label %19

19:                                               ; preds = %14, %17, %12
  %20 = phi ptr [ %1, %14 ], [ %.pre, %17 ], [ %1, %12 ]
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2848), align 8, !tbaa !16
  %24 = icmp sgt i32 %0, 0
  br i1 %24, label %.lr.ph134.preheader, label %._crit_edge142

.lr.ph134.preheader:                              ; preds = %19
  %wide.trip.count = zext nneg i32 %0 to i64
  br label %.lr.ph134

.preheader125:                                    ; preds = %.loopexit127
  br i1 %24, label %.preheader124.lr.ph, label %._crit_edge142

.preheader124.lr.ph:                              ; preds = %.preheader125
  %25 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2856), align 8
  %wide.trip.count184 = zext nneg i32 %0 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %26 = icmp ult i32 %0, 4
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader124.us

.preheader124.us:                                 ; preds = %._crit_edge.us, %.preheader124.lr.ph
  %indvars.iv181 = phi i64 [ %indvars.iv.next182, %._crit_edge.us ], [ 0, %.preheader124.lr.ph ]
  %.4140.us = phi ptr [ %52, %._crit_edge.us ], [ %.3, %.preheader124.lr.ph ]
  br i1 %26, label %._crit_edge.us.unr-lcssa, label %.preheader124.us.new

.preheader124.us.new:                             ; preds = %.preheader124.us, %.preheader124.us.new
  %indvars.iv176 = phi i64 [ %indvars.iv.next177.3, %.preheader124.us.new ], [ 0, %.preheader124.us ]
  %.083137.us = phi double [ %46, %.preheader124.us.new ], [ 0.000000e+00, %.preheader124.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader124.us.new ], [ 0, %.preheader124.us ]
  %27 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv176
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = getelementptr inbounds double, ptr %28, i64 %indvars.iv181
  %30 = load double, ptr %29, align 8, !tbaa !17
  %31 = call double @llvm.fmuladd.f64(double %30, double %30, double %.083137.us)
  %indvars.iv.next177 = or disjoint i64 %indvars.iv176, 1
  %32 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv.next177
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  %34 = getelementptr inbounds double, ptr %33, i64 %indvars.iv181
  %35 = load double, ptr %34, align 8, !tbaa !17
  %36 = call double @llvm.fmuladd.f64(double %35, double %35, double %31)
  %indvars.iv.next177.1 = or disjoint i64 %indvars.iv176, 2
  %37 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv.next177.1
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  %39 = getelementptr inbounds double, ptr %38, i64 %indvars.iv181
  %40 = load double, ptr %39, align 8, !tbaa !17
  %41 = call double @llvm.fmuladd.f64(double %40, double %40, double %36)
  %indvars.iv.next177.2 = or disjoint i64 %indvars.iv176, 3
  %42 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv.next177.2
  %43 = load ptr, ptr %42, align 8, !tbaa !13
  %44 = getelementptr inbounds double, ptr %43, i64 %indvars.iv181
  %45 = load double, ptr %44, align 8, !tbaa !17
  %46 = call double @llvm.fmuladd.f64(double %45, double %45, double %41)
  %indvars.iv.next177.3 = add nuw nsw i64 %indvars.iv176, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.us.unr-lcssa, label %.preheader124.us.new, !llvm.loop !18

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader124.us.new, %.preheader124.us
  %.lcssa234.ph = phi double [ poison, %.preheader124.us ], [ %46, %.preheader124.us.new ]
  %indvars.iv176.unr = phi i64 [ 0, %.preheader124.us ], [ %indvars.iv.next177.3, %.preheader124.us.new ]
  %.083137.us.unr = phi double [ 0.000000e+00, %.preheader124.us ], [ %46, %.preheader124.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %indvars.iv176.epil = phi i64 [ %indvars.iv.next177.epil, %.epil.preheader ], [ %indvars.iv176.unr, %._crit_edge.us.unr-lcssa ]
  %.083137.us.epil = phi double [ %51, %.epil.preheader ], [ %.083137.us.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %47 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv176.epil
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = getelementptr inbounds double, ptr %48, i64 %indvars.iv181
  %50 = load double, ptr %49, align 8, !tbaa !17
  %51 = call double @llvm.fmuladd.f64(double %50, double %50, double %.083137.us.epil)
  %indvars.iv.next177.epil = add nuw nsw i64 %indvars.iv176.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge.us, label %.epil.preheader, !llvm.loop !20

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %.lcssa234 = phi double [ %.lcssa234.ph, %._crit_edge.us.unr-lcssa ], [ %51, %.epil.preheader ]
  %52 = getelementptr inbounds i8, ptr %.4140.us, i64 8
  store double %.lcssa234, ptr %.4140.us, align 8, !tbaa !17
  %indvars.iv.next182 = add nuw nsw i64 %indvars.iv181, 1
  %exitcond185.not = icmp eq i64 %indvars.iv.next182, %wide.trip.count184
  br i1 %exitcond185.not, label %._crit_edge142, label %.preheader124.us, !llvm.loop !22

.lr.ph134:                                        ; preds = %.lr.ph134.preheader, %.loopexit127
  %indvars.iv = phi i64 [ 0, %.lr.ph134.preheader ], [ %indvars.iv.next, %.loopexit127 ]
  %.085133 = phi ptr [ %23, %.lr.ph134.preheader ], [ %.3, %.loopexit127 ]
  %53 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2856), align 8, !tbaa !23
  %54 = getelementptr inbounds ptr, ptr %53, i64 %indvars.iv
  store ptr %.085133, ptr %54, align 8, !tbaa !13
  %55 = load ptr, ptr %4, align 8, !tbaa !13
  %.not114 = icmp eq ptr %55, null
  br i1 %.not114, label %.loopexit127, label %.preheader126

.preheader126:                                    ; preds = %.lr.ph134
  %.0128 = getelementptr inbounds i8, ptr %55, i64 8
  %56 = load ptr, ptr %.0128, align 8, !tbaa !13
  %.not116129 = icmp eq ptr %56, null
  br i1 %.not116129, label %.loopexit127, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader126
  %57 = getelementptr inbounds double, ptr %22, i64 %indvars.iv
  br label %58

58:                                               ; preds = %.lr.ph, %66
  %59 = phi ptr [ %56, %.lr.ph ], [ %67, %66 ]
  %.0131 = phi ptr [ %.0128, %.lr.ph ], [ %.0, %66 ]
  %.186130 = phi ptr [ %.085133, %.lr.ph ], [ %.287, %66 ]
  %.not117 = icmp eq ptr %59, %22
  br i1 %.not117, label %66, label %60

60:                                               ; preds = %58
  %61 = getelementptr inbounds double, ptr %59, i64 %indvars.iv
  %62 = load double, ptr %61, align 8, !tbaa !17
  %63 = load double, ptr %57, align 8, !tbaa !17
  %64 = fsub double %62, %63
  %65 = getelementptr inbounds i8, ptr %.186130, i64 8
  store double %64, ptr %.186130, align 8, !tbaa !17
  br label %66

66:                                               ; preds = %60, %58
  %.287 = phi ptr [ %65, %60 ], [ %.186130, %58 ]
  %.0 = getelementptr inbounds i8, ptr %.0131, i64 8
  %67 = load ptr, ptr %.0, align 8, !tbaa !13
  %.not116 = icmp eq ptr %67, null
  br i1 %.not116, label %.loopexit127, label %58, !llvm.loop !24

.loopexit127:                                     ; preds = %66, %.preheader126, %.lr.ph134
  %.3 = phi ptr [ %.085133, %.lr.ph134 ], [ %.085133, %.preheader126 ], [ %.287, %66 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader125, label %.lr.ph134, !llvm.loop !25

._crit_edge142:                                   ; preds = %._crit_edge.us, %19, %.preheader125
  %.085.lcssa200 = phi ptr [ %.3, %.preheader125 ], [ %23, %19 ], [ %.3, %._crit_edge.us ]
  %68 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2856), align 8, !tbaa !23
  %69 = call double @qh_determinant(ptr noundef %68, i32 noundef %0, ptr noundef nonnull %5)
  %70 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1840), align 8, !tbaa !26
  %71 = call double @qh_divzero(double noundef 5.000000e-01, double noundef %69, double noundef %70, ptr noundef nonnull %6)
  %72 = load i32, ptr %6, align 4, !tbaa !27
  %.not103 = icmp eq i32 %72, 0
  br i1 %.not103, label %.preheader122, label %.preheader123

.preheader123:                                    ; preds = %._crit_edge142
  %.not111143 = icmp eq i32 %0, 0
  br i1 %.not111143, label %._crit_edge, label %.lr.ph145

.lr.ph145:                                        ; preds = %.preheader123
  %73 = sext i32 %0 to i64
  %min.iters.check = icmp ult i32 %0, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph145
  %indvars.iv186.ph = phi i64 [ %73, %.lr.ph145 ], [ %ind.end, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph145
  %n.vec = and i64 %73, -4
  %ind.end = and i64 %73, 3
  %invariant.gep = getelementptr double, ptr %8, i64 %73
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %74 = xor i64 %index, -1
  %gep = getelementptr double, ptr %invariant.gep, i64 %74
  %75 = getelementptr inbounds i8, ptr %gep, i64 -8
  %76 = getelementptr inbounds i8, ptr %gep, i64 -24
  store <2 x double> <double -1.010100e+01, double -1.010100e+01>, ptr %75, align 8, !tbaa !17
  store <2 x double> <double -1.010100e+01, double -1.010100e+01>, ptr %76, align 8, !tbaa !17
  %index.next = add nuw i64 %index, 4
  %77 = icmp eq i64 %index.next, %n.vec
  br i1 %77, label %middle.block, label %vector.body, !llvm.loop !28

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %73
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

.preheader122:                                    ; preds = %._crit_edge142
  br i1 %24, label %.lr.ph163.us.preheader, label %._crit_edge167

.lr.ph163.us.preheader:                           ; preds = %.preheader122
  %wide.trip.count197 = zext nneg i32 %0 to i64
  %min.iters.check211 = icmp ult i32 %0, 4
  %n.vec214 = and i64 %wide.trip.count197, 2147483644
  %78 = shl nuw nsw i64 %n.vec214, 3
  %.cast = trunc nuw nsw i64 %n.vec214 to i32
  %ind.end217 = sub nsw i32 %0, %.cast
  %79 = shl nuw nsw i64 %n.vec214, 3
  %cmp.n230 = icmp eq i64 %n.vec214, %wide.trip.count197
  br label %.lr.ph163.us

.lr.ph163.us:                                     ; preds = %.lr.ph163.us.preheader, %._crit_edge164.split.us
  %indvars.iv194 = phi i64 [ 0, %.lr.ph163.us.preheader ], [ %indvars.iv.next195, %._crit_edge164.split.us ]
  %80 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2848), align 8, !tbaa !16
  br label %81

81:                                               ; preds = %.lr.ph163.us, %.loopexit121.us
  %indvars.iv189 = phi i64 [ 0, %.lr.ph163.us ], [ %indvars.iv.next190, %.loopexit121.us ]
  %.078161.us = phi ptr [ %.085.lcssa200, %.lr.ph163.us ], [ %.280.us, %.loopexit121.us ]
  %.5160.us = phi ptr [ %80, %.lr.ph163.us ], [ %.9.us, %.loopexit121.us ]
  %82 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2856), align 8, !tbaa !23
  %83 = getelementptr inbounds ptr, ptr %82, i64 %indvars.iv189
  store ptr %.5160.us, ptr %83, align 8, !tbaa !13
  %84 = icmp eq i64 %indvars.iv189, %indvars.iv194
  br i1 %84, label %.preheader118.us.preheader, label %95

.preheader118.us.preheader:                       ; preds = %81
  %.078161.us208 = ptrtoint ptr %.078161.us to i64
  %.5160.us207 = ptrtoint ptr %.5160.us to i64
  %85 = sub i64 %.5160.us207, %.078161.us208
  %diff.check = icmp ult i64 %85, 32
  %or.cond = select i1 %min.iters.check211, i1 true, i1 %diff.check
  br i1 %or.cond, label %.preheader118.us.preheader231, label %vector.ph212

.preheader118.us.preheader231:                    ; preds = %middle.block209, %.preheader118.us.preheader
  %.179155.us.ph = phi ptr [ %.078161.us, %.preheader118.us.preheader ], [ %ind.end215, %middle.block209 ]
  %.084154.us.ph = phi i32 [ %0, %.preheader118.us.preheader ], [ %ind.end217, %middle.block209 ]
  %.6153.us.ph = phi ptr [ %.5160.us, %.preheader118.us.preheader ], [ %ind.end219, %middle.block209 ]
  %86 = add nsw i32 %.084154.us.ph, -1
  %xtraiter236 = and i32 %.084154.us.ph, 7
  %lcmp.mod237.not = icmp eq i32 %xtraiter236, 0
  br i1 %lcmp.mod237.not, label %.preheader118.us.prol.loopexit, label %.preheader118.us.prol

.preheader118.us.prol:                            ; preds = %.preheader118.us.preheader231, %.preheader118.us.prol
  %.179155.us.prol = phi ptr [ %88, %.preheader118.us.prol ], [ %.179155.us.ph, %.preheader118.us.preheader231 ]
  %.084154.us.prol = phi i32 [ %87, %.preheader118.us.prol ], [ %.084154.us.ph, %.preheader118.us.preheader231 ]
  %.6153.us.prol = phi ptr [ %90, %.preheader118.us.prol ], [ %.6153.us.ph, %.preheader118.us.preheader231 ]
  %prol.iter = phi i32 [ %prol.iter.next, %.preheader118.us.prol ], [ 0, %.preheader118.us.preheader231 ]
  %87 = add nsw i32 %.084154.us.prol, -1
  %88 = getelementptr inbounds i8, ptr %.179155.us.prol, i64 8
  %89 = load double, ptr %.179155.us.prol, align 8, !tbaa !17
  %90 = getelementptr inbounds i8, ptr %.6153.us.prol, i64 8
  store double %89, ptr %.6153.us.prol, align 8, !tbaa !17
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter236
  br i1 %prol.iter.cmp.not, label %.preheader118.us.prol.loopexit, label %.preheader118.us.prol, !llvm.loop !31

.preheader118.us.prol.loopexit:                   ; preds = %.preheader118.us.prol, %.preheader118.us.preheader231
  %.lcssa233.unr = phi ptr [ poison, %.preheader118.us.preheader231 ], [ %88, %.preheader118.us.prol ]
  %.lcssa.unr = phi ptr [ poison, %.preheader118.us.preheader231 ], [ %90, %.preheader118.us.prol ]
  %.179155.us.unr = phi ptr [ %.179155.us.ph, %.preheader118.us.preheader231 ], [ %88, %.preheader118.us.prol ]
  %.084154.us.unr = phi i32 [ %.084154.us.ph, %.preheader118.us.preheader231 ], [ %87, %.preheader118.us.prol ]
  %.6153.us.unr = phi ptr [ %.6153.us.ph, %.preheader118.us.preheader231 ], [ %90, %.preheader118.us.prol ]
  %91 = icmp ult i32 %86, 7
  br i1 %91, label %.loopexit121.us, label %.preheader118.us

vector.ph212:                                     ; preds = %.preheader118.us.preheader
  %ind.end215 = getelementptr i8, ptr %.078161.us, i64 %78
  %ind.end219 = getelementptr i8, ptr %.5160.us, i64 %79
  br label %vector.body221

vector.body221:                                   ; preds = %vector.body221, %vector.ph212
  %index222 = phi i64 [ 0, %vector.ph212 ], [ %index.next229, %vector.body221 ]
  %offset.idx223 = shl i64 %index222, 3
  %next.gep = getelementptr i8, ptr %.078161.us, i64 %offset.idx223
  %offset.idx225 = shl i64 %index222, 3
  %next.gep226 = getelementptr i8, ptr %.5160.us, i64 %offset.idx225
  %92 = getelementptr i8, ptr %next.gep, i64 16
  %wide.load = load <2 x double>, ptr %next.gep, align 8, !tbaa !17
  %wide.load228 = load <2 x double>, ptr %92, align 8, !tbaa !17
  %93 = getelementptr i8, ptr %next.gep226, i64 16
  store <2 x double> %wide.load, ptr %next.gep226, align 8, !tbaa !17
  store <2 x double> %wide.load228, ptr %93, align 8, !tbaa !17
  %index.next229 = add nuw i64 %index222, 4
  %94 = icmp eq i64 %index.next229, %n.vec214
  br i1 %94, label %middle.block209, label %vector.body221, !llvm.loop !32

middle.block209:                                  ; preds = %vector.body221
  br i1 %cmp.n230, label %.loopexit121.us, label %.preheader118.us.preheader231

95:                                               ; preds = %81
  %96 = load ptr, ptr %4, align 8, !tbaa !13
  %.not106.us = icmp eq ptr %96, null
  br i1 %.not106.us, label %.loopexit121.us, label %.preheader120.us

97:                                               ; preds = %.lr.ph150.us, %105
  %98 = phi ptr [ %132, %.lr.ph150.us ], [ %106, %105 ]
  %.1149.us = phi ptr [ %.1146.us, %.lr.ph150.us ], [ %.1.us, %105 ]
  %.7148.us = phi ptr [ %.5160.us, %.lr.ph150.us ], [ %.8.us, %105 ]
  %.not109.us = icmp eq ptr %98, %22
  br i1 %.not109.us, label %105, label %99

99:                                               ; preds = %97
  %100 = getelementptr inbounds double, ptr %98, i64 %indvars.iv189
  %101 = load double, ptr %100, align 8, !tbaa !17
  %102 = load double, ptr %133, align 8, !tbaa !17
  %103 = fsub double %101, %102
  %104 = getelementptr inbounds i8, ptr %.7148.us, i64 8
  store double %103, ptr %.7148.us, align 8, !tbaa !17
  br label %105

105:                                              ; preds = %99, %97
  %.8.us = phi ptr [ %104, %99 ], [ %.7148.us, %97 ]
  %.1.us = getelementptr inbounds i8, ptr %.1149.us, i64 8
  %106 = load ptr, ptr %.1.us, align 8, !tbaa !13
  %.not108.us = icmp eq ptr %106, null
  br i1 %.not108.us, label %.loopexit121.us, label %97, !llvm.loop !33

.preheader118.us:                                 ; preds = %.preheader118.us.prol.loopexit, %.preheader118.us
  %.179155.us = phi ptr [ %129, %.preheader118.us ], [ %.179155.us.unr, %.preheader118.us.prol.loopexit ]
  %.084154.us = phi i32 [ %128, %.preheader118.us ], [ %.084154.us.unr, %.preheader118.us.prol.loopexit ]
  %.6153.us = phi ptr [ %131, %.preheader118.us ], [ %.6153.us.unr, %.preheader118.us.prol.loopexit ]
  %107 = getelementptr inbounds i8, ptr %.179155.us, i64 8
  %108 = load double, ptr %.179155.us, align 8, !tbaa !17
  %109 = getelementptr inbounds i8, ptr %.6153.us, i64 8
  store double %108, ptr %.6153.us, align 8, !tbaa !17
  %110 = getelementptr inbounds i8, ptr %.179155.us, i64 16
  %111 = load double, ptr %107, align 8, !tbaa !17
  %112 = getelementptr inbounds i8, ptr %.6153.us, i64 16
  store double %111, ptr %109, align 8, !tbaa !17
  %113 = getelementptr inbounds i8, ptr %.179155.us, i64 24
  %114 = load double, ptr %110, align 8, !tbaa !17
  %115 = getelementptr inbounds i8, ptr %.6153.us, i64 24
  store double %114, ptr %112, align 8, !tbaa !17
  %116 = getelementptr inbounds i8, ptr %.179155.us, i64 32
  %117 = load double, ptr %113, align 8, !tbaa !17
  %118 = getelementptr inbounds i8, ptr %.6153.us, i64 32
  store double %117, ptr %115, align 8, !tbaa !17
  %119 = getelementptr inbounds i8, ptr %.179155.us, i64 40
  %120 = load double, ptr %116, align 8, !tbaa !17
  %121 = getelementptr inbounds i8, ptr %.6153.us, i64 40
  store double %120, ptr %118, align 8, !tbaa !17
  %122 = getelementptr inbounds i8, ptr %.179155.us, i64 48
  %123 = load double, ptr %119, align 8, !tbaa !17
  %124 = getelementptr inbounds i8, ptr %.6153.us, i64 48
  store double %123, ptr %121, align 8, !tbaa !17
  %125 = getelementptr inbounds i8, ptr %.179155.us, i64 56
  %126 = load double, ptr %122, align 8, !tbaa !17
  %127 = getelementptr inbounds i8, ptr %.6153.us, i64 56
  store double %126, ptr %124, align 8, !tbaa !17
  %128 = add nsw i32 %.084154.us, -8
  %129 = getelementptr inbounds i8, ptr %.179155.us, i64 64
  %130 = load double, ptr %125, align 8, !tbaa !17
  %131 = getelementptr inbounds i8, ptr %.6153.us, i64 64
  store double %130, ptr %127, align 8, !tbaa !17
  %.not110.us.7 = icmp eq i32 %128, 0
  br i1 %.not110.us.7, label %.loopexit121.us, label %.preheader118.us, !llvm.loop !34

.loopexit121.us:                                  ; preds = %105, %.preheader118.us.prol.loopexit, %.preheader118.us, %middle.block209, %.preheader120.us, %95
  %.9.us = phi ptr [ %.5160.us, %95 ], [ %.5160.us, %.preheader120.us ], [ %ind.end219, %middle.block209 ], [ %.lcssa.unr, %.preheader118.us.prol.loopexit ], [ %131, %.preheader118.us ], [ %.8.us, %105 ]
  %.280.us = phi ptr [ %.078161.us, %95 ], [ %.078161.us, %.preheader120.us ], [ %ind.end215, %middle.block209 ], [ %.lcssa233.unr, %.preheader118.us.prol.loopexit ], [ %129, %.preheader118.us ], [ %.078161.us, %105 ]
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %exitcond193.not = icmp eq i64 %indvars.iv.next190, %wide.trip.count197
  br i1 %exitcond193.not, label %._crit_edge164.split.us, label %81, !llvm.loop !35

.preheader120.us:                                 ; preds = %95
  %.1146.us = getelementptr inbounds i8, ptr %96, i64 8
  %132 = load ptr, ptr %.1146.us, align 8, !tbaa !13
  %.not108147.us = icmp eq ptr %132, null
  br i1 %.not108147.us, label %.loopexit121.us, label %.lr.ph150.us

.lr.ph150.us:                                     ; preds = %.preheader120.us
  %133 = getelementptr inbounds double, ptr %22, i64 %indvars.iv189
  br label %97

._crit_edge164.split.us:                          ; preds = %.loopexit121.us
  %134 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2856), align 8, !tbaa !23
  %135 = call double @qh_determinant(ptr noundef %134, i32 noundef %0, ptr noundef nonnull %5)
  %136 = getelementptr inbounds double, ptr %22, i64 %indvars.iv194
  %137 = load double, ptr %136, align 8, !tbaa !17
  %138 = call double @llvm.fmuladd.f64(double %135, double %71, double %137)
  %139 = getelementptr inbounds double, ptr %8, i64 %indvars.iv194
  store double %138, ptr %139, align 8, !tbaa !17
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %exitcond198.not = icmp eq i64 %indvars.iv.next195, %wide.trip.count197
  br i1 %exitcond198.not, label %._crit_edge167, label %.lr.ph163.us, !llvm.loop !36

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv186 = phi i64 [ %indvars.iv.next187, %scalar.ph ], [ %indvars.iv186.ph, %scalar.ph.preheader ]
  %indvars.iv.next187 = add nsw i64 %indvars.iv186, -1
  %140 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next187
  store double -1.010100e+01, ptr %140, align 8, !tbaa !17
  %.not111 = icmp eq i64 %indvars.iv.next187, 0
  br i1 %.not111, label %._crit_edge, label %scalar.ph, !llvm.loop !37

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %.preheader123
  %141 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !38
  %.not112 = icmp eq i32 %141, 0
  br i1 %.not112, label %164, label %142

142:                                              ; preds = %._crit_edge
  %143 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  %144 = load ptr, ptr %4, align 8, !tbaa !13
  call void @qh_printpoints(ptr noundef %143, ptr noundef nonnull @.str.86, ptr noundef %144)
  br label %164

._crit_edge167:                                   ; preds = %._crit_edge164.split.us, %.preheader122
  %145 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !38
  %146 = icmp sgt i32 %145, 2
  br i1 %146, label %147, label %164

147:                                              ; preds = %._crit_edge167
  %148 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %148, i32 noundef 3061, ptr noundef nonnull @.str.87, double noundef %69, double noundef %71) #4
  %149 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  call void @qh_printmatrix(ptr noundef %149, ptr noundef nonnull @.str.88, ptr noundef nonnull %3, i32 noundef 1, i32 noundef %0)
  %150 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !38
  %151 = icmp sgt i32 %150, 4
  br i1 %151, label %152, label %164

152:                                              ; preds = %147
  %153 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  %154 = load ptr, ptr %4, align 8, !tbaa !13
  call void @qh_printpoints(ptr noundef %153, ptr noundef nonnull @.str.89, ptr noundef %154)
  %155 = load ptr, ptr %4, align 8, !tbaa !13
  %.not104 = icmp eq ptr %155, null
  br i1 %.not104, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %152
  %.2168 = getelementptr inbounds i8, ptr %155, i64 8
  %156 = load ptr, ptr %.2168, align 8, !tbaa !13
  %.not105169 = icmp eq ptr %156, null
  br i1 %.not105169, label %.loopexit, label %.lr.ph171

.lr.ph171:                                        ; preds = %.preheader, %.lr.ph171
  %157 = phi ptr [ %162, %.lr.ph171 ], [ %156, %.preheader ]
  %.2170 = phi ptr [ %.2, %.lr.ph171 ], [ %.2168, %.preheader ]
  %158 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  %159 = call i32 @qh_pointid(ptr noundef nonnull %157) #4
  %160 = load ptr, ptr %3, align 8, !tbaa !13
  %161 = call double @qh_pointdist(ptr noundef nonnull %157, ptr noundef %160, i32 noundef %0)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %158, i32 noundef 8034, ptr noundef nonnull @.str.90, i32 noundef %159, double noundef %161) #4
  %.2 = getelementptr inbounds i8, ptr %.2170, i64 8
  %162 = load ptr, ptr %.2, align 8, !tbaa !13
  %.not105 = icmp eq ptr %162, null
  br i1 %.not105, label %.loopexit, label %.lr.ph171, !llvm.loop !39

.loopexit:                                        ; preds = %.lr.ph171, %.preheader, %152
  %163 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %163, i32 noundef 8035, ptr noundef nonnull @.str.55) #4
  br label %164

164:                                              ; preds = %._crit_edge167, %.loopexit, %147, %._crit_edge, %142
  %165 = load ptr, ptr %4, align 8, !tbaa !13
  %.not113 = icmp eq ptr %165, %1
  br i1 %.not113, label %167, label %166

166:                                              ; preds = %164
  call void @qh_settempfree(ptr noundef nonnull %4) #4
  br label %167

167:                                              ; preds = %166, %164
  %168 = load ptr, ptr %3, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  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
  ret ptr %168
}

declare void @qh_settempfree(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_maxsimplex(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local double @qh_pointdist(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @qh_printmatrix(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare ptr @qh_memalloc(i32 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 2444}
!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 = !{!11, !11, i64 0}
!14 = !{!6, !11, i64 2424}
!15 = !{!8, !8, i64 0}
!16 = !{!6, !11, i64 2848}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !19}
!23 = !{!6, !11, i64 2856}
!24 = distinct !{!24, !19}
!25 = distinct !{!25, !19}
!26 = !{!6, !10, i64 1840}
!27 = !{!7, !7, i64 0}
!28 = distinct !{!28, !19, !29, !30}
!29 = !{!"llvm.loop.isvectorized", i32 1}
!30 = !{!"llvm.loop.unroll.runtime.disable"}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !19, !29, !30}
!33 = distinct !{!33, !19}
!34 = distinct !{!34, !19, !29}
!35 = distinct !{!35, !19}
!36 = distinct !{!36, !19}
!37 = distinct !{!37, !19, !30, !29}
!38 = !{!6, !7, i64 136}
!39 = distinct !{!39, !19}


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