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

; 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, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }

@.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, ptr noundef, i32 noundef, ptr noundef, ...) #1

declare void @qh_errexit(ptr noundef, 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, ptr noundef, i32 noundef, ptr noundef) #3

declare i32 @qh_pointid(ptr noundef, 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, ptr noundef, i32 noundef) #1

declare ptr @qh_settemp(ptr noundef, i32 noundef) #1

declare i32 @qh_setsize(ptr noundef, ptr noundef) #1

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

37:                                               ; preds = %3
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %38, ptr %11, align 8, !tbaa !5
  br label %67

39:                                               ; preds = %3
  %40 = load i32, ptr %15, align 4, !tbaa !9
  %41 = load i32, ptr %5, align 4, !tbaa !9
  %42 = add nsw i32 %41, 1
  %43 = icmp slt i32 %40, %42
  br i1 %43, label %44, label %58

44:                                               ; preds = %39
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.qhT, ptr %47, i32 0, i32 161
  %49 = load i32, ptr %48, align 4, !tbaa !11
  call void @qh_memfree(ptr noundef %45, ptr noundef %46, i32 noundef %49)
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.qhT, ptr %51, i32 0, i32 158
  %53 = load ptr, ptr %52, align 8, !tbaa !17
  %54 = load i32, ptr %5, align 4, !tbaa !9
  %55 = add nsw i32 %54, 1
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %50, ptr noundef %53, i32 noundef 6025, ptr noundef @.str.85, i32 noundef %55)
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %56, i32 noundef 5, ptr noundef null, ptr noundef null)
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %57, ptr %11, align 8, !tbaa !5
  br label %66

58:                                               ; preds = %39
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = load i32, ptr %5, align 4, !tbaa !9
  %61 = add nsw i32 %60, 1
  %62 = call ptr @qh_settemp(ptr noundef %59, i32 noundef %61)
  store ptr %62, ptr %11, align 8, !tbaa !5
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = load i32, ptr %5, align 4, !tbaa !9
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_maxsimplex(ptr noundef %63, i32 noundef %64, ptr noundef %65, ptr noundef null, i32 noundef 0, ptr noundef %11)
  br label %66

66:                                               ; preds = %58, %44
  br label %67

67:                                               ; preds = %66, %37
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.setT, ptr %68, i32 0, i32 1
  %70 = getelementptr inbounds [1 x %union.setelemT], ptr %69, i64 0, i64 0
  %71 = load ptr, ptr %70, align 8, !tbaa !18
  store ptr %71, ptr %9, align 8, !tbaa !5
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.qhT, ptr %72, i32 0, i32 227
  %74 = load ptr, ptr %73, align 8, !tbaa !19
  store ptr %74, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %119, %67
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = load i32, ptr %5, align 4, !tbaa !9
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %79, label %122

79:                                               ; preds = %75
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.qhT, ptr %81, i32 0, i32 228
  %83 = load ptr, ptr %82, align 8, !tbaa !20
  %84 = load i32, ptr %14, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds ptr, ptr %83, i64 %85
  store ptr %80, ptr %86, align 8, !tbaa !5
  store ptr null, ptr %7, align 8, !tbaa !5
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = icmp ne ptr %87, null
  br i1 %88, label %89, label %118

89:                                               ; preds = %79
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.setT, ptr %90, i32 0, i32 1
  %92 = getelementptr inbounds [1 x %union.setelemT], ptr %91, i64 0, i64 0
  store ptr %92, ptr %8, align 8, !tbaa !5
  br label %93

93:                                               ; preds = %116, %89
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = getelementptr inbounds ptr, ptr %94, i32 1
  store ptr %95, ptr %8, align 8, !tbaa !5
  %96 = load ptr, ptr %94, align 8, !tbaa !5
  store ptr %96, ptr %7, align 8, !tbaa !5
  %97 = icmp ne ptr %96, null
  br i1 %97, label %98, label %117

98:                                               ; preds = %93
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = icmp ne ptr %99, %100
  br i1 %101, label %102, label %116

102:                                              ; preds = %98
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = load i32, ptr %14, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds double, ptr %103, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !21
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = load i32, ptr %14, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds double, ptr %108, i64 %110
  %112 = load double, ptr %111, align 8, !tbaa !21
  %113 = fsub double %107, %112
  %114 = load ptr, ptr %16, align 8, !tbaa !5
  %115 = getelementptr inbounds double, ptr %114, i32 1
  store ptr %115, ptr %16, align 8, !tbaa !5
  store double %113, ptr %114, align 8, !tbaa !21
  br label %116

116:                                              ; preds = %102, %98
  br label %93, !llvm.loop !22

117:                                              ; preds = %93
  br label %118

118:                                              ; preds = %117, %79
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %14, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %14, align 4, !tbaa !9
  br label %75, !llvm.loop !24

122:                                              ; preds = %75
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %123, ptr %19, align 8, !tbaa !5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %157, %122
  %125 = load i32, ptr %12, align 4, !tbaa !9
  %126 = load i32, ptr %5, align 4, !tbaa !9
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %128, label %160

128:                                              ; preds = %124
  store double 0.000000e+00, ptr %18, align 8, !tbaa !21
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %150, %128
  %130 = load i32, ptr %14, align 4, !tbaa !9
  %131 = load i32, ptr %5, align 4, !tbaa !9
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %133, label %153

133:                                              ; preds = %129
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.qhT, ptr %134, i32 0, i32 228
  %136 = load ptr, ptr %135, align 8, !tbaa !20
  %137 = load i32, ptr %14, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds ptr, ptr %136, i64 %138
  %140 = load ptr, ptr %139, align 8, !tbaa !5
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds double, ptr %140, i64 %142
  store ptr %143, ptr %17, align 8, !tbaa !5
  %144 = load ptr, ptr %17, align 8, !tbaa !5
  %145 = load double, ptr %144, align 8, !tbaa !21
  %146 = load ptr, ptr %17, align 8, !tbaa !5
  %147 = load double, ptr %146, align 8, !tbaa !21
  %148 = load double, ptr %18, align 8, !tbaa !21
  %149 = call double @llvm.fmuladd.f64(double %145, double %147, double %148)
  store double %149, ptr %18, align 8, !tbaa !21
  br label %150

150:                                              ; preds = %133
  %151 = load i32, ptr %14, align 4, !tbaa !9
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %14, align 4, !tbaa !9
  br label %129, !llvm.loop !25

153:                                              ; preds = %129
  %154 = load double, ptr %18, align 8, !tbaa !21
  %155 = load ptr, ptr %16, align 8, !tbaa !5
  %156 = getelementptr inbounds double, ptr %155, i32 1
  store ptr %156, ptr %16, align 8, !tbaa !5
  store double %154, ptr %155, align 8, !tbaa !21
  br label %157

157:                                              ; preds = %153
  %158 = load i32, ptr %12, align 4, !tbaa !9
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %12, align 4, !tbaa !9
  br label %124, !llvm.loop !26

160:                                              ; preds = %124
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.qhT, ptr %162, i32 0, i32 228
  %164 = load ptr, ptr %163, align 8, !tbaa !20
  %165 = load i32, ptr %5, align 4, !tbaa !9
  %166 = call double @qh_determinant(ptr noundef %161, ptr noundef %164, i32 noundef %165, ptr noundef %23)
  store double %166, ptr %21, align 8, !tbaa !21
  %167 = load double, ptr %21, align 8, !tbaa !21
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.qhT, ptr %168, i32 0, i32 141
  %170 = load double, ptr %169, align 8, !tbaa !27
  %171 = call double @qh_divzero(double noundef 5.000000e-01, double noundef %167, double noundef %170, ptr noundef %24)
  store double %171, ptr %22, align 8, !tbaa !21
  %172 = load i32, ptr %24, align 4, !tbaa !9
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %197

174:                                              ; preds = %160
  %175 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %175, ptr %14, align 4, !tbaa !9
  br label %176

176:                                              ; preds = %180, %174
  %177 = load i32, ptr %14, align 4, !tbaa !9
  %178 = add nsw i32 %177, -1
  store i32 %178, ptr %14, align 4, !tbaa !9
  %179 = icmp ne i32 %177, 0
  br i1 %179, label %180, label %185

180:                                              ; preds = %176
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  %182 = load i32, ptr %14, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds double, ptr %181, i64 %183
  store double -1.010100e+01, ptr %184, align 8, !tbaa !21
  br label %176, !llvm.loop !28

185:                                              ; preds = %176
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.qhT, ptr %186, i32 0, i32 29
  %188 = load i32, ptr %187, align 8, !tbaa !29
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %196

190:                                              ; preds = %185
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.qhT, ptr %192, i32 0, i32 158
  %194 = load ptr, ptr %193, align 8, !tbaa !17
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_printpoints(ptr noundef %191, ptr noundef %194, ptr noundef @.str.86, ptr noundef %195)
  br label %196

196:                                              ; preds = %190, %185
  br label %351

197:                                              ; preds = %160
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %290, %197
  %199 = load i32, ptr %12, align 4, !tbaa !9
  %200 = load i32, ptr %5, align 4, !tbaa !9
  %201 = icmp slt i32 %199, %200
  br i1 %201, label %202, label %293

202:                                              ; preds = %198
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.qhT, ptr %203, i32 0, i32 227
  %205 = load ptr, ptr %204, align 8, !tbaa !19
  store ptr %205, ptr %16, align 8, !tbaa !5
  %206 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %206, ptr %20, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %207

207:                                              ; preds = %269, %202
  %208 = load i32, ptr %14, align 4, !tbaa !9
  %209 = load i32, ptr %5, align 4, !tbaa !9
  %210 = icmp slt i32 %208, %209
  br i1 %210, label %211, label %272

211:                                              ; preds = %207
  %212 = load ptr, ptr %16, align 8, !tbaa !5
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.qhT, ptr %213, i32 0, i32 228
  %215 = load ptr, ptr %214, align 8, !tbaa !20
  %216 = load i32, ptr %14, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds ptr, ptr %215, i64 %217
  store ptr %212, ptr %218, align 8, !tbaa !5
  %219 = load i32, ptr %14, align 4, !tbaa !9
  %220 = load i32, ptr %12, align 4, !tbaa !9
  %221 = icmp eq i32 %219, %220
  br i1 %221, label %222, label %235

222:                                              ; preds = %211
  %223 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %223, ptr %13, align 4, !tbaa !9
  br label %224

224:                                              ; preds = %228, %222
  %225 = load i32, ptr %13, align 4, !tbaa !9
  %226 = add nsw i32 %225, -1
  store i32 %226, ptr %13, align 4, !tbaa !9
  %227 = icmp ne i32 %225, 0
  br i1 %227, label %228, label %234

228:                                              ; preds = %224
  %229 = load ptr, ptr %20, align 8, !tbaa !5
  %230 = getelementptr inbounds double, ptr %229, i32 1
  store ptr %230, ptr %20, align 8, !tbaa !5
  %231 = load double, ptr %229, align 8, !tbaa !21
  %232 = load ptr, ptr %16, align 8, !tbaa !5
  %233 = getelementptr inbounds double, ptr %232, i32 1
  store ptr %233, ptr %16, align 8, !tbaa !5
  store double %231, ptr %232, align 8, !tbaa !21
  br label %224, !llvm.loop !30

234:                                              ; preds = %224
  br label %268

235:                                              ; preds = %211
  store ptr null, ptr %7, align 8, !tbaa !5
  %236 = load ptr, ptr %11, align 8, !tbaa !5
  %237 = icmp ne ptr %236, null
  br i1 %237, label %238, label %267

238:                                              ; preds = %235
  %239 = load ptr, ptr %11, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.setT, ptr %239, i32 0, i32 1
  %241 = getelementptr inbounds [1 x %union.setelemT], ptr %240, i64 0, i64 0
  store ptr %241, ptr %8, align 8, !tbaa !5
  br label %242

242:                                              ; preds = %265, %238
  %243 = load ptr, ptr %8, align 8, !tbaa !5
  %244 = getelementptr inbounds ptr, ptr %243, i32 1
  store ptr %244, ptr %8, align 8, !tbaa !5
  %245 = load ptr, ptr %243, align 8, !tbaa !5
  store ptr %245, ptr %7, align 8, !tbaa !5
  %246 = icmp ne ptr %245, null
  br i1 %246, label %247, label %266

247:                                              ; preds = %242
  %248 = load ptr, ptr %7, align 8, !tbaa !5
  %249 = load ptr, ptr %9, align 8, !tbaa !5
  %250 = icmp ne ptr %248, %249
  br i1 %250, label %251, label %265

251:                                              ; preds = %247
  %252 = load ptr, ptr %7, align 8, !tbaa !5
  %253 = load i32, ptr %14, align 4, !tbaa !9
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds double, ptr %252, i64 %254
  %256 = load double, ptr %255, align 8, !tbaa !21
  %257 = load ptr, ptr %9, align 8, !tbaa !5
  %258 = load i32, ptr %14, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds double, ptr %257, i64 %259
  %261 = load double, ptr %260, align 8, !tbaa !21
  %262 = fsub double %256, %261
  %263 = load ptr, ptr %16, align 8, !tbaa !5
  %264 = getelementptr inbounds double, ptr %263, i32 1
  store ptr %264, ptr %16, align 8, !tbaa !5
  store double %262, ptr %263, align 8, !tbaa !21
  br label %265

265:                                              ; preds = %251, %247
  br label %242, !llvm.loop !31

266:                                              ; preds = %242
  br label %267

267:                                              ; preds = %266, %235
  br label %268

268:                                              ; preds = %267, %234
  br label %269

269:                                              ; preds = %268
  %270 = load i32, ptr %14, align 4, !tbaa !9
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %14, align 4, !tbaa !9
  br label %207, !llvm.loop !32

272:                                              ; preds = %207
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = load ptr, ptr %4, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.qhT, ptr %274, i32 0, i32 228
  %276 = load ptr, ptr %275, align 8, !tbaa !20
  %277 = load i32, ptr %5, align 4, !tbaa !9
  %278 = call double @qh_determinant(ptr noundef %273, ptr noundef %276, i32 noundef %277, ptr noundef %23)
  %279 = load double, ptr %22, align 8, !tbaa !21
  %280 = load ptr, ptr %9, align 8, !tbaa !5
  %281 = load i32, ptr %12, align 4, !tbaa !9
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds double, ptr %280, i64 %282
  %284 = load double, ptr %283, align 8, !tbaa !21
  %285 = call double @llvm.fmuladd.f64(double %278, double %279, double %284)
  %286 = load ptr, ptr %10, align 8, !tbaa !5
  %287 = load i32, ptr %12, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds double, ptr %286, i64 %288
  store double %285, ptr %289, align 8, !tbaa !21
  br label %290

290:                                              ; preds = %272
  %291 = load i32, ptr %12, align 4, !tbaa !9
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %12, align 4, !tbaa !9
  br label %198, !llvm.loop !33

293:                                              ; preds = %198
  %294 = load ptr, ptr %4, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.qhT, ptr %294, i32 0, i32 29
  %296 = load i32, ptr %295, align 8, !tbaa !29
  %297 = icmp sge i32 %296, 3
  br i1 %297, label %298, label %350

298:                                              ; preds = %293
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  %300 = load ptr, ptr %4, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.qhT, ptr %300, i32 0, i32 158
  %302 = load ptr, ptr %301, align 8, !tbaa !17
  %303 = load double, ptr %21, align 8, !tbaa !21
  %304 = load double, ptr %22, align 8, !tbaa !21
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %299, ptr noundef %302, i32 noundef 3061, ptr noundef @.str.87, double noundef %303, double noundef %304)
  %305 = load ptr, ptr %4, align 8, !tbaa !5
  %306 = load ptr, ptr %4, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.qhT, ptr %306, i32 0, i32 158
  %308 = load ptr, ptr %307, align 8, !tbaa !17
  %309 = load i32, ptr %5, align 4, !tbaa !9
  call void @qh_printmatrix(ptr noundef %305, ptr noundef %308, ptr noundef @.str.88, ptr noundef %10, i32 noundef 1, i32 noundef %309)
  %310 = load ptr, ptr %4, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.qhT, ptr %310, i32 0, i32 29
  %312 = load i32, ptr %311, align 8, !tbaa !29
  %313 = icmp sge i32 %312, 5
  br i1 %313, label %314, label %349

314:                                              ; preds = %298
  %315 = load ptr, ptr %4, align 8, !tbaa !5
  %316 = load ptr, ptr %4, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.qhT, ptr %316, i32 0, i32 158
  %318 = load ptr, ptr %317, align 8, !tbaa !17
  %319 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_printpoints(ptr noundef %315, ptr noundef %318, ptr noundef @.str.89, ptr noundef %319)
  store ptr null, ptr %7, align 8, !tbaa !5
  %320 = load ptr, ptr %11, align 8, !tbaa !5
  %321 = icmp ne ptr %320, null
  br i1 %321, label %322, label %344

322:                                              ; preds = %314
  %323 = load ptr, ptr %11, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.setT, ptr %323, i32 0, i32 1
  %325 = getelementptr inbounds [1 x %union.setelemT], ptr %324, i64 0, i64 0
  store ptr %325, ptr %8, align 8, !tbaa !5
  br label %326

326:                                              ; preds = %331, %322
  %327 = load ptr, ptr %8, align 8, !tbaa !5
  %328 = getelementptr inbounds ptr, ptr %327, i32 1
  store ptr %328, ptr %8, align 8, !tbaa !5
  %329 = load ptr, ptr %327, align 8, !tbaa !5
  store ptr %329, ptr %7, align 8, !tbaa !5
  %330 = icmp ne ptr %329, null
  br i1 %330, label %331, label %343

331:                                              ; preds = %326
  %332 = load ptr, ptr %4, align 8, !tbaa !5
  %333 = load ptr, ptr %4, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.qhT, ptr %333, i32 0, i32 158
  %335 = load ptr, ptr %334, align 8, !tbaa !17
  %336 = load ptr, ptr %4, align 8, !tbaa !5
  %337 = load ptr, ptr %7, align 8, !tbaa !5
  %338 = call i32 @qh_pointid(ptr noundef %336, ptr noundef %337)
  %339 = load ptr, ptr %7, align 8, !tbaa !5
  %340 = load ptr, ptr %10, align 8, !tbaa !5
  %341 = load i32, ptr %5, align 4, !tbaa !9
  %342 = call double @qh_pointdist(ptr noundef %339, ptr noundef %340, i32 noundef %341)
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %332, ptr noundef %335, i32 noundef 8034, ptr noundef @.str.90, i32 noundef %338, double noundef %342)
  br label %326, !llvm.loop !34

343:                                              ; preds = %326
  br label %344

344:                                              ; preds = %343, %314
  %345 = load ptr, ptr %4, align 8, !tbaa !5
  %346 = load ptr, ptr %4, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.qhT, ptr %346, i32 0, i32 158
  %348 = load ptr, ptr %347, align 8, !tbaa !17
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %345, ptr noundef %348, i32 noundef 8035, ptr noundef @.str.55)
  br label %349

349:                                              ; preds = %344, %298
  br label %350

350:                                              ; preds = %349, %293
  br label %351

351:                                              ; preds = %350, %196
  %352 = load ptr, ptr %11, align 8, !tbaa !5
  %353 = load ptr, ptr %6, align 8, !tbaa !5
  %354 = icmp ne ptr %352, %353
  br i1 %354, label %355, label %357

355:                                              ; preds = %351
  %356 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_settempfree(ptr noundef %356, ptr noundef %11)
  br label %357

357:                                              ; preds = %355, %351
  %358 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret ptr %358
}

declare void @qh_settempfree(ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_maxsimplex(ptr noundef, 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, ptr noundef, i32 noundef, i32 noundef) #3

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


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

@.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, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

declare void @qh_errexit(ptr noundef, 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, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @qh_pointid(ptr noundef, 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, ptr noundef, i32 noundef) local_unnamed_addr #1

declare ptr @qh_settemp(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @qh_setsize(ptr noundef, ptr noundef) local_unnamed_addr #1

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

14:                                               ; preds = %3
  store ptr %2, ptr %5, align 8, !tbaa !15
  br label %22

15:                                               ; preds = %3
  %.not = icmp sgt i32 %11, %1
  br i1 %.not, label %20, label %16

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

20:                                               ; preds = %15
  %21 = tail call ptr @qh_settemp(ptr noundef nonnull %0, i32 noundef %12) #4
  store ptr %21, ptr %5, align 8, !tbaa !15
  call void @qh_maxsimplex(ptr noundef nonnull %0, i32 noundef %1, ptr noundef %2, ptr noundef null, i32 noundef 0, ptr noundef nonnull %5)
  %.pre = load ptr, ptr %5, align 8, !tbaa !15
  br label %22

22:                                               ; preds = %16, %20, %14
  %23 = phi ptr [ %2, %16 ], [ %.pre, %20 ], [ %2, %14 ]
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !17
  %26 = getelementptr inbounds i8, ptr %0, i64 2848
  %27 = load ptr, ptr %26, align 8, !tbaa !18
  %28 = icmp sgt i32 %1, 0
  br i1 %28, label %.lr.ph171, label %.preheader162.._crit_edge179_crit_edge

.lr.ph171:                                        ; preds = %22
  %29 = getelementptr inbounds i8, ptr %0, i64 2856
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %59

.preheader162:                                    ; preds = %.loopexit164
  br i1 %28, label %.preheader161.lr.ph, label %.preheader162.._crit_edge179_crit_edge

.preheader162.._crit_edge179_crit_edge:           ; preds = %22, %.preheader162
  %.0122.lcssa239 = phi ptr [ %.3, %.preheader162 ], [ %27, %22 ]
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 2856
  %.pre236 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !19
  br label %._crit_edge179

.preheader161.lr.ph:                              ; preds = %.preheader162
  %30 = getelementptr inbounds i8, ptr %0, i64 2856
  %31 = load ptr, ptr %30, align 8, !tbaa !19
  %wide.trip.count221 = zext nneg i32 %1 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %32 = icmp ult i32 %1, 4
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader161.us

.preheader161.us:                                 ; preds = %._crit_edge.us, %.preheader161.lr.ph
  %indvars.iv218 = phi i64 [ %indvars.iv.next219, %._crit_edge.us ], [ 0, %.preheader161.lr.ph ]
  %.4177.us = phi ptr [ %58, %._crit_edge.us ], [ %.3, %.preheader161.lr.ph ]
  br i1 %32, label %._crit_edge.us.unr-lcssa, label %.preheader161.us.new

.preheader161.us.new:                             ; preds = %.preheader161.us, %.preheader161.us.new
  %indvars.iv213 = phi i64 [ %indvars.iv.next214.3, %.preheader161.us.new ], [ 0, %.preheader161.us ]
  %.0120174.us = phi double [ %52, %.preheader161.us.new ], [ 0.000000e+00, %.preheader161.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader161.us.new ], [ 0, %.preheader161.us ]
  %33 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv213
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = getelementptr inbounds double, ptr %34, i64 %indvars.iv218
  %36 = load double, ptr %35, align 8, !tbaa !20
  %37 = call double @llvm.fmuladd.f64(double %36, double %36, double %.0120174.us)
  %indvars.iv.next214 = or disjoint i64 %indvars.iv213, 1
  %38 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.next214
  %39 = load ptr, ptr %38, align 8, !tbaa !15
  %40 = getelementptr inbounds double, ptr %39, i64 %indvars.iv218
  %41 = load double, ptr %40, align 8, !tbaa !20
  %42 = call double @llvm.fmuladd.f64(double %41, double %41, double %37)
  %indvars.iv.next214.1 = or disjoint i64 %indvars.iv213, 2
  %43 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.next214.1
  %44 = load ptr, ptr %43, align 8, !tbaa !15
  %45 = getelementptr inbounds double, ptr %44, i64 %indvars.iv218
  %46 = load double, ptr %45, align 8, !tbaa !20
  %47 = call double @llvm.fmuladd.f64(double %46, double %46, double %42)
  %indvars.iv.next214.2 = or disjoint i64 %indvars.iv213, 3
  %48 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.next214.2
  %49 = load ptr, ptr %48, align 8, !tbaa !15
  %50 = getelementptr inbounds double, ptr %49, i64 %indvars.iv218
  %51 = load double, ptr %50, align 8, !tbaa !20
  %52 = call double @llvm.fmuladd.f64(double %51, double %51, double %47)
  %indvars.iv.next214.3 = add nuw nsw i64 %indvars.iv213, 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 %.preheader161.us.new, !llvm.loop !21

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader161.us.new, %.preheader161.us
  %.lcssa273.ph = phi double [ poison, %.preheader161.us ], [ %52, %.preheader161.us.new ]
  %indvars.iv213.unr = phi i64 [ 0, %.preheader161.us ], [ %indvars.iv.next214.3, %.preheader161.us.new ]
  %.0120174.us.unr = phi double [ 0.000000e+00, %.preheader161.us ], [ %52, %.preheader161.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.iv213.epil = phi i64 [ %indvars.iv.next214.epil, %.epil.preheader ], [ %indvars.iv213.unr, %._crit_edge.us.unr-lcssa ]
  %.0120174.us.epil = phi double [ %57, %.epil.preheader ], [ %.0120174.us.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %53 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv213.epil
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  %55 = getelementptr inbounds double, ptr %54, i64 %indvars.iv218
  %56 = load double, ptr %55, align 8, !tbaa !20
  %57 = call double @llvm.fmuladd.f64(double %56, double %56, double %.0120174.us.epil)
  %indvars.iv.next214.epil = add nuw nsw i64 %indvars.iv213.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 !23

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %.lcssa273 = phi double [ %.lcssa273.ph, %._crit_edge.us.unr-lcssa ], [ %57, %.epil.preheader ]
  %58 = getelementptr inbounds i8, ptr %.4177.us, i64 8
  store double %.lcssa273, ptr %.4177.us, align 8, !tbaa !20
  %indvars.iv.next219 = add nuw nsw i64 %indvars.iv218, 1
  %exitcond222.not = icmp eq i64 %indvars.iv.next219, %wide.trip.count221
  br i1 %exitcond222.not, label %._crit_edge179, label %.preheader161.us, !llvm.loop !25

59:                                               ; preds = %.lr.ph171, %.loopexit164
  %indvars.iv = phi i64 [ 0, %.lr.ph171 ], [ %indvars.iv.next, %.loopexit164 ]
  %.0122170 = phi ptr [ %27, %.lr.ph171 ], [ %.3, %.loopexit164 ]
  %60 = load ptr, ptr %29, align 8, !tbaa !19
  %61 = getelementptr inbounds ptr, ptr %60, i64 %indvars.iv
  store ptr %.0122170, ptr %61, align 8, !tbaa !15
  %62 = load ptr, ptr %5, align 8, !tbaa !15
  %.not151 = icmp eq ptr %62, null
  br i1 %.not151, label %.loopexit164, label %.preheader163

.preheader163:                                    ; preds = %59
  %.0165 = getelementptr inbounds i8, ptr %62, i64 8
  %63 = load ptr, ptr %.0165, align 8, !tbaa !15
  %.not153166 = icmp eq ptr %63, null
  br i1 %.not153166, label %.loopexit164, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader163
  %64 = getelementptr inbounds double, ptr %25, i64 %indvars.iv
  br label %65

65:                                               ; preds = %.lr.ph, %73
  %66 = phi ptr [ %63, %.lr.ph ], [ %74, %73 ]
  %.0168 = phi ptr [ %.0165, %.lr.ph ], [ %.0, %73 ]
  %.1123167 = phi ptr [ %.0122170, %.lr.ph ], [ %.2124, %73 ]
  %.not154 = icmp eq ptr %66, %25
  br i1 %.not154, label %73, label %67

67:                                               ; preds = %65
  %68 = getelementptr inbounds double, ptr %66, i64 %indvars.iv
  %69 = load double, ptr %68, align 8, !tbaa !20
  %70 = load double, ptr %64, align 8, !tbaa !20
  %71 = fsub double %69, %70
  %72 = getelementptr inbounds i8, ptr %.1123167, i64 8
  store double %71, ptr %.1123167, align 8, !tbaa !20
  br label %73

73:                                               ; preds = %67, %65
  %.2124 = phi ptr [ %72, %67 ], [ %.1123167, %65 ]
  %.0 = getelementptr inbounds i8, ptr %.0168, i64 8
  %74 = load ptr, ptr %.0, align 8, !tbaa !15
  %.not153 = icmp eq ptr %74, null
  br i1 %.not153, label %.loopexit164, label %65, !llvm.loop !26

.loopexit164:                                     ; preds = %73, %.preheader163, %59
  %.3 = phi ptr [ %.0122170, %59 ], [ %.0122170, %.preheader163 ], [ %.2124, %73 ]
  %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 %.preheader162, label %59, !llvm.loop !27

._crit_edge179:                                   ; preds = %._crit_edge.us, %.preheader162.._crit_edge179_crit_edge
  %.0122.lcssa238 = phi ptr [ %.0122.lcssa239, %.preheader162.._crit_edge179_crit_edge ], [ %.3, %._crit_edge.us ]
  %75 = phi ptr [ %.pre236, %.preheader162.._crit_edge179_crit_edge ], [ %31, %._crit_edge.us ]
  %76 = getelementptr inbounds i8, ptr %0, i64 2856
  %77 = call double @qh_determinant(ptr noundef %0, ptr noundef %75, i32 noundef %1, ptr noundef nonnull %6)
  %78 = getelementptr inbounds i8, ptr %0, i64 1840
  %79 = load double, ptr %78, align 8, !tbaa !28
  %80 = call double @qh_divzero(double noundef 5.000000e-01, double noundef %77, double noundef %79, ptr noundef nonnull %7)
  %81 = load i32, ptr %7, align 4, !tbaa !29
  %.not140 = icmp eq i32 %81, 0
  br i1 %.not140, label %.preheader159, label %.preheader160

.preheader160:                                    ; preds = %._crit_edge179
  %.not148180 = icmp eq i32 %1, 0
  br i1 %.not148180, label %._crit_edge, label %.lr.ph182

.lr.ph182:                                        ; preds = %.preheader160
  %82 = sext i32 %1 to i64
  %min.iters.check = icmp ult i32 %1, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph182
  %indvars.iv223.ph = phi i64 [ %82, %.lr.ph182 ], [ %ind.end, %middle.block ]
  br label %scalar.ph

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

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

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

.preheader159:                                    ; preds = %._crit_edge179
  br i1 %28, label %.lr.ph203, label %._crit_edge204

.lr.ph203:                                        ; preds = %.preheader159
  %wide.trip.count234 = zext nneg i32 %1 to i64
  %min.iters.check250 = icmp ult i32 %1, 4
  %n.vec253 = and i64 %wide.trip.count234, 2147483644
  %87 = shl nuw nsw i64 %n.vec253, 3
  %.cast = trunc nuw nsw i64 %n.vec253 to i32
  %ind.end256 = sub nsw i32 %1, %.cast
  %88 = shl nuw nsw i64 %n.vec253, 3
  %cmp.n269 = icmp eq i64 %n.vec253, %wide.trip.count234
  br label %.lr.ph200.preheader

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv223 = phi i64 [ %indvars.iv.next224, %scalar.ph ], [ %indvars.iv223.ph, %scalar.ph.preheader ]
  %indvars.iv.next224 = add nsw i64 %indvars.iv223, -1
  %89 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next224
  store double -1.010100e+01, ptr %89, align 8, !tbaa !20
  %.not148 = icmp eq i64 %indvars.iv.next224, 0
  br i1 %.not148, label %._crit_edge, label %scalar.ph, !llvm.loop !33

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %.preheader160
  %90 = getelementptr inbounds i8, ptr %0, i64 136
  %91 = load i32, ptr %90, align 8, !tbaa !34
  %.not149 = icmp eq i32 %91, 0
  br i1 %.not149, label %176, label %92

92:                                               ; preds = %._crit_edge
  %93 = getelementptr inbounds i8, ptr %0, i64 2424
  %94 = load ptr, ptr %93, align 8, !tbaa !16
  %95 = load ptr, ptr %5, align 8, !tbaa !15
  call void @qh_printpoints(ptr noundef nonnull %0, ptr noundef %94, ptr noundef nonnull @.str.86, ptr noundef %95)
  br label %176

.lr.ph200.preheader:                              ; preds = %._crit_edge201.split, %.lr.ph203
  %indvars.iv231 = phi i64 [ 0, %.lr.ph203 ], [ %indvars.iv.next232, %._crit_edge201.split ]
  %96 = load ptr, ptr %26, align 8, !tbaa !18
  br label %.lr.ph200

.lr.ph200:                                        ; preds = %.lr.ph200.preheader, %..loopexit156_crit_edge
  %indvars.iv226 = phi i64 [ 0, %.lr.ph200.preheader ], [ %indvars.iv.next227, %..loopexit156_crit_edge ]
  %.0115198 = phi ptr [ %.0122.lcssa238, %.lr.ph200.preheader ], [ %.2117, %..loopexit156_crit_edge ]
  %.5197 = phi ptr [ %96, %.lr.ph200.preheader ], [ %.9, %..loopexit156_crit_edge ]
  %97 = load ptr, ptr %76, align 8, !tbaa !19
  %98 = getelementptr inbounds ptr, ptr %97, i64 %indvars.iv226
  store ptr %.5197, ptr %98, align 8, !tbaa !15
  %99 = icmp eq i64 %indvars.iv226, %indvars.iv231
  br i1 %99, label %.preheader155.preheader, label %135

.preheader155.preheader:                          ; preds = %.lr.ph200
  %.0115198247 = ptrtoint ptr %.0115198 to i64
  %.5197246 = ptrtoint ptr %.5197 to i64
  %100 = sub i64 %.5197246, %.0115198247
  %diff.check = icmp ult i64 %100, 32
  %or.cond = select i1 %min.iters.check250, i1 true, i1 %diff.check
  br i1 %or.cond, label %.preheader155.preheader270, label %vector.ph251

vector.ph251:                                     ; preds = %.preheader155.preheader
  %ind.end254 = getelementptr i8, ptr %.0115198, i64 %87
  %ind.end258 = getelementptr i8, ptr %.5197, i64 %88
  br label %vector.body260

vector.body260:                                   ; preds = %vector.body260, %vector.ph251
  %index261 = phi i64 [ 0, %vector.ph251 ], [ %index.next268, %vector.body260 ]
  %offset.idx262 = shl i64 %index261, 3
  %next.gep = getelementptr i8, ptr %.0115198, i64 %offset.idx262
  %offset.idx264 = shl i64 %index261, 3
  %next.gep265 = getelementptr i8, ptr %.5197, i64 %offset.idx264
  %101 = getelementptr i8, ptr %next.gep, i64 16
  %wide.load = load <2 x double>, ptr %next.gep, align 8, !tbaa !20
  %wide.load267 = load <2 x double>, ptr %101, align 8, !tbaa !20
  %102 = getelementptr i8, ptr %next.gep265, i64 16
  store <2 x double> %wide.load, ptr %next.gep265, align 8, !tbaa !20
  store <2 x double> %wide.load267, ptr %102, align 8, !tbaa !20
  %index.next268 = add nuw i64 %index261, 4
  %103 = icmp eq i64 %index.next268, %n.vec253
  br i1 %103, label %middle.block248, label %vector.body260, !llvm.loop !35

middle.block248:                                  ; preds = %vector.body260
  br i1 %cmp.n269, label %..loopexit156_crit_edge, label %.preheader155.preheader270

.preheader155.preheader270:                       ; preds = %middle.block248, %.preheader155.preheader
  %.1116192.ph = phi ptr [ %.0115198, %.preheader155.preheader ], [ %ind.end254, %middle.block248 ]
  %.0121191.ph = phi i32 [ %1, %.preheader155.preheader ], [ %ind.end256, %middle.block248 ]
  %.6190.ph = phi ptr [ %.5197, %.preheader155.preheader ], [ %ind.end258, %middle.block248 ]
  %104 = add nsw i32 %.0121191.ph, -1
  %xtraiter275 = and i32 %.0121191.ph, 7
  %lcmp.mod276.not = icmp eq i32 %xtraiter275, 0
  br i1 %lcmp.mod276.not, label %.preheader155.prol.loopexit, label %.preheader155.prol

.preheader155.prol:                               ; preds = %.preheader155.preheader270, %.preheader155.prol
  %.1116192.prol = phi ptr [ %106, %.preheader155.prol ], [ %.1116192.ph, %.preheader155.preheader270 ]
  %.0121191.prol = phi i32 [ %105, %.preheader155.prol ], [ %.0121191.ph, %.preheader155.preheader270 ]
  %.6190.prol = phi ptr [ %108, %.preheader155.prol ], [ %.6190.ph, %.preheader155.preheader270 ]
  %prol.iter = phi i32 [ %prol.iter.next, %.preheader155.prol ], [ 0, %.preheader155.preheader270 ]
  %105 = add nsw i32 %.0121191.prol, -1
  %106 = getelementptr inbounds i8, ptr %.1116192.prol, i64 8
  %107 = load double, ptr %.1116192.prol, align 8, !tbaa !20
  %108 = getelementptr inbounds i8, ptr %.6190.prol, i64 8
  store double %107, ptr %.6190.prol, align 8, !tbaa !20
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter275
  br i1 %prol.iter.cmp.not, label %.preheader155.prol.loopexit, label %.preheader155.prol, !llvm.loop !36

.preheader155.prol.loopexit:                      ; preds = %.preheader155.prol, %.preheader155.preheader270
  %.lcssa272.unr = phi ptr [ poison, %.preheader155.preheader270 ], [ %106, %.preheader155.prol ]
  %.lcssa.unr = phi ptr [ poison, %.preheader155.preheader270 ], [ %108, %.preheader155.prol ]
  %.1116192.unr = phi ptr [ %.1116192.ph, %.preheader155.preheader270 ], [ %106, %.preheader155.prol ]
  %.0121191.unr = phi i32 [ %.0121191.ph, %.preheader155.preheader270 ], [ %105, %.preheader155.prol ]
  %.6190.unr = phi ptr [ %.6190.ph, %.preheader155.preheader270 ], [ %108, %.preheader155.prol ]
  %109 = icmp ult i32 %104, 7
  br i1 %109, label %..loopexit156_crit_edge, label %.preheader155

.preheader155:                                    ; preds = %.preheader155.prol.loopexit, %.preheader155
  %.1116192 = phi ptr [ %132, %.preheader155 ], [ %.1116192.unr, %.preheader155.prol.loopexit ]
  %.0121191 = phi i32 [ %131, %.preheader155 ], [ %.0121191.unr, %.preheader155.prol.loopexit ]
  %.6190 = phi ptr [ %134, %.preheader155 ], [ %.6190.unr, %.preheader155.prol.loopexit ]
  %110 = getelementptr inbounds i8, ptr %.1116192, i64 8
  %111 = load double, ptr %.1116192, align 8, !tbaa !20
  %112 = getelementptr inbounds i8, ptr %.6190, i64 8
  store double %111, ptr %.6190, align 8, !tbaa !20
  %113 = getelementptr inbounds i8, ptr %.1116192, i64 16
  %114 = load double, ptr %110, align 8, !tbaa !20
  %115 = getelementptr inbounds i8, ptr %.6190, i64 16
  store double %114, ptr %112, align 8, !tbaa !20
  %116 = getelementptr inbounds i8, ptr %.1116192, i64 24
  %117 = load double, ptr %113, align 8, !tbaa !20
  %118 = getelementptr inbounds i8, ptr %.6190, i64 24
  store double %117, ptr %115, align 8, !tbaa !20
  %119 = getelementptr inbounds i8, ptr %.1116192, i64 32
  %120 = load double, ptr %116, align 8, !tbaa !20
  %121 = getelementptr inbounds i8, ptr %.6190, i64 32
  store double %120, ptr %118, align 8, !tbaa !20
  %122 = getelementptr inbounds i8, ptr %.1116192, i64 40
  %123 = load double, ptr %119, align 8, !tbaa !20
  %124 = getelementptr inbounds i8, ptr %.6190, i64 40
  store double %123, ptr %121, align 8, !tbaa !20
  %125 = getelementptr inbounds i8, ptr %.1116192, i64 48
  %126 = load double, ptr %122, align 8, !tbaa !20
  %127 = getelementptr inbounds i8, ptr %.6190, i64 48
  store double %126, ptr %124, align 8, !tbaa !20
  %128 = getelementptr inbounds i8, ptr %.1116192, i64 56
  %129 = load double, ptr %125, align 8, !tbaa !20
  %130 = getelementptr inbounds i8, ptr %.6190, i64 56
  store double %129, ptr %127, align 8, !tbaa !20
  %131 = add nsw i32 %.0121191, -8
  %132 = getelementptr inbounds i8, ptr %.1116192, i64 64
  %133 = load double, ptr %128, align 8, !tbaa !20
  %134 = getelementptr inbounds i8, ptr %.6190, i64 64
  store double %133, ptr %130, align 8, !tbaa !20
  %.not147.7 = icmp eq i32 %131, 0
  br i1 %.not147.7, label %..loopexit156_crit_edge, label %.preheader155, !llvm.loop !37

135:                                              ; preds = %.lr.ph200
  %136 = load ptr, ptr %5, align 8, !tbaa !15
  %.not143 = icmp eq ptr %136, null
  br i1 %.not143, label %..loopexit156_crit_edge, label %.preheader157

.preheader157:                                    ; preds = %135
  %.1183 = getelementptr inbounds i8, ptr %136, i64 8
  %137 = load ptr, ptr %.1183, align 8, !tbaa !15
  %.not145184 = icmp eq ptr %137, null
  br i1 %.not145184, label %..loopexit156_crit_edge, label %.lr.ph187

.lr.ph187:                                        ; preds = %.preheader157
  %138 = getelementptr inbounds double, ptr %25, i64 %indvars.iv226
  br label %139

139:                                              ; preds = %.lr.ph187, %147
  %140 = phi ptr [ %137, %.lr.ph187 ], [ %148, %147 ]
  %.1186 = phi ptr [ %.1183, %.lr.ph187 ], [ %.1, %147 ]
  %.7185 = phi ptr [ %.5197, %.lr.ph187 ], [ %.8, %147 ]
  %.not146 = icmp eq ptr %140, %25
  br i1 %.not146, label %147, label %141

141:                                              ; preds = %139
  %142 = getelementptr inbounds double, ptr %140, i64 %indvars.iv226
  %143 = load double, ptr %142, align 8, !tbaa !20
  %144 = load double, ptr %138, align 8, !tbaa !20
  %145 = fsub double %143, %144
  %146 = getelementptr inbounds i8, ptr %.7185, i64 8
  store double %145, ptr %.7185, align 8, !tbaa !20
  br label %147

147:                                              ; preds = %141, %139
  %.8 = phi ptr [ %146, %141 ], [ %.7185, %139 ]
  %.1 = getelementptr inbounds i8, ptr %.1186, i64 8
  %148 = load ptr, ptr %.1, align 8, !tbaa !15
  %.not145 = icmp eq ptr %148, null
  br i1 %.not145, label %..loopexit156_crit_edge, label %139, !llvm.loop !38

..loopexit156_crit_edge:                          ; preds = %147, %.preheader155.prol.loopexit, %.preheader155, %middle.block248, %.preheader157, %135
  %.9 = phi ptr [ %.5197, %135 ], [ %.5197, %.preheader157 ], [ %ind.end258, %middle.block248 ], [ %.lcssa.unr, %.preheader155.prol.loopexit ], [ %134, %.preheader155 ], [ %.8, %147 ]
  %.2117 = phi ptr [ %.0115198, %135 ], [ %.0115198, %.preheader157 ], [ %ind.end254, %middle.block248 ], [ %.lcssa272.unr, %.preheader155.prol.loopexit ], [ %132, %.preheader155 ], [ %.0115198, %147 ]
  %indvars.iv.next227 = add nuw nsw i64 %indvars.iv226, 1
  %exitcond230.not = icmp eq i64 %indvars.iv.next227, %wide.trip.count234
  br i1 %exitcond230.not, label %._crit_edge201.split, label %.lr.ph200, !llvm.loop !39

._crit_edge201.split:                             ; preds = %..loopexit156_crit_edge
  %149 = load ptr, ptr %76, align 8, !tbaa !19
  %150 = call double @qh_determinant(ptr noundef %0, ptr noundef %149, i32 noundef %1, ptr noundef nonnull %6)
  %151 = getelementptr inbounds double, ptr %25, i64 %indvars.iv231
  %152 = load double, ptr %151, align 8, !tbaa !20
  %153 = call double @llvm.fmuladd.f64(double %150, double %80, double %152)
  %154 = getelementptr inbounds double, ptr %10, i64 %indvars.iv231
  store double %153, ptr %154, align 8, !tbaa !20
  %indvars.iv.next232 = add nuw nsw i64 %indvars.iv231, 1
  %exitcond235.not = icmp eq i64 %indvars.iv.next232, %wide.trip.count234
  br i1 %exitcond235.not, label %._crit_edge204, label %.lr.ph200.preheader, !llvm.loop !40

._crit_edge204:                                   ; preds = %._crit_edge201.split, %.preheader159
  %155 = getelementptr inbounds i8, ptr %0, i64 136
  %156 = load i32, ptr %155, align 8, !tbaa !34
  %157 = icmp sgt i32 %156, 2
  br i1 %157, label %158, label %176

158:                                              ; preds = %._crit_edge204
  %159 = getelementptr inbounds i8, ptr %0, i64 2424
  %160 = load ptr, ptr %159, align 8, !tbaa !16
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %160, i32 noundef 3061, ptr noundef nonnull @.str.87, double noundef %77, double noundef %80) #4
  %161 = load ptr, ptr %159, align 8, !tbaa !16
  call void @qh_printmatrix(ptr noundef nonnull %0, ptr noundef %161, ptr noundef nonnull @.str.88, ptr noundef nonnull %4, i32 noundef 1, i32 noundef %1)
  %162 = load i32, ptr %155, align 8, !tbaa !34
  %163 = icmp sgt i32 %162, 4
  br i1 %163, label %164, label %176

164:                                              ; preds = %158
  %165 = load ptr, ptr %159, align 8, !tbaa !16
  %166 = load ptr, ptr %5, align 8, !tbaa !15
  call void @qh_printpoints(ptr noundef nonnull %0, ptr noundef %165, ptr noundef nonnull @.str.89, ptr noundef %166)
  %167 = load ptr, ptr %5, align 8, !tbaa !15
  %.not141 = icmp eq ptr %167, null
  br i1 %.not141, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %164
  %.2205 = getelementptr inbounds i8, ptr %167, i64 8
  %168 = load ptr, ptr %.2205, align 8, !tbaa !15
  %.not142206 = icmp eq ptr %168, null
  br i1 %.not142206, label %.loopexit, label %.lr.ph208

.lr.ph208:                                        ; preds = %.preheader, %.lr.ph208
  %169 = phi ptr [ %174, %.lr.ph208 ], [ %168, %.preheader ]
  %.2207 = phi ptr [ %.2, %.lr.ph208 ], [ %.2205, %.preheader ]
  %170 = load ptr, ptr %159, align 8, !tbaa !16
  %171 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef nonnull %169) #4
  %172 = load ptr, ptr %4, align 8, !tbaa !15
  %173 = call double @qh_pointdist(ptr noundef nonnull %169, ptr noundef %172, i32 noundef %1)
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %170, i32 noundef 8034, ptr noundef nonnull @.str.90, i32 noundef %171, double noundef %173) #4
  %.2 = getelementptr inbounds i8, ptr %.2207, i64 8
  %174 = load ptr, ptr %.2, align 8, !tbaa !15
  %.not142 = icmp eq ptr %174, null
  br i1 %.not142, label %.loopexit, label %.lr.ph208, !llvm.loop !41

.loopexit:                                        ; preds = %.lr.ph208, %.preheader, %164
  %175 = load ptr, ptr %159, align 8, !tbaa !16
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %175, i32 noundef 8035, ptr noundef nonnull @.str.55) #4
  br label %176

176:                                              ; preds = %._crit_edge204, %.loopexit, %158, %._crit_edge, %92
  %177 = load ptr, ptr %5, align 8, !tbaa !15
  %.not150 = icmp eq ptr %177, %2
  br i1 %.not150, label %179, label %178

178:                                              ; preds = %176
  call void @qh_settempfree(ptr noundef nonnull %0, ptr noundef nonnull %5) #4
  br label %179

179:                                              ; preds = %178, %176
  %180 = load ptr, ptr %4, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  ret ptr %180
}

declare void @qh_settempfree(ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_maxsimplex(ptr noundef, 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, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare ptr @qh_memalloc(ptr noundef, 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, !7, i64 2984, !7, i64 2988, !8, i64 2992, !8, i64 3192, !7, i64 3232, !10, i64 3240, !11, i64 3248, !11, i64 3256, !11, i64 3264, !13, i64 3272, !14, i64 3424}
!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 = !{!"qhmemT", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !7, i64 64, !11, i64 72, !11, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144}
!14 = !{!"qhstatT", !8, i64 0, !8, i64 1992, !8, i64 2256, !8, i64 4248, !8, i64 4746, !8, i64 4995, !8, i64 5248, !7, i64 5320, !7, i64 5324, !7, i64 5328, !7, i64 5332, !10, i64 5336}
!15 = !{!11, !11, i64 0}
!16 = !{!6, !11, i64 2424}
!17 = !{!8, !8, i64 0}
!18 = !{!6, !11, i64 2848}
!19 = !{!6, !11, i64 2856}
!20 = !{!10, !10, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}
!28 = !{!6, !10, i64 1840}
!29 = !{!7, !7, i64 0}
!30 = distinct !{!30, !22, !31, !32}
!31 = !{!"llvm.loop.isvectorized", i32 1}
!32 = !{!"llvm.loop.unroll.runtime.disable"}
!33 = distinct !{!33, !22, !32, !31}
!34 = !{!6, !7, i64 136}
!35 = distinct !{!35, !22, !31, !32}
!36 = distinct !{!36, !24}
!37 = distinct !{!37, !22, !31}
!38 = distinct !{!38, !22}
!39 = distinct !{!39, !22}
!40 = distinct !{!40, !22}
!41 = distinct !{!41, !22}


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