; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (merge_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.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }

@.str.124 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [89 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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_merge_nonconvex(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %20 = load i32, ptr %8, align 4, !tbaa !9
  %21 = icmp ult i32 %20, 1
  br i1 %21, label %25, label %22

22:                                               ; preds = %4
  %23 = load i32, ptr %8, align 4, !tbaa !9
  %24 = icmp ugt i32 %23, 4
  br i1 %24, label %25, label %40

25:                                               ; preds = %22, %4
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.qhT, ptr %27, i32 0, i32 158
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.facetT, ptr %30, i32 0, i32 14
  %32 = load i32, ptr %31, align 4, !tbaa !17
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.facetT, ptr %33, i32 0, i32 14
  %35 = load i32, ptr %34, align 4, !tbaa !17
  %36 = load i32, ptr %8, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %26, ptr noundef %29, i32 noundef 6398, ptr noundef @.str.124, i32 noundef %32, i32 noundef %35, i32 noundef %36)
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_errexit2(ptr noundef %37, i32 noundef 5, ptr noundef %38, ptr noundef %39)
  br label %40

40:                                               ; preds = %25, %22
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.qhT, ptr %41, i32 0, i32 96
  %43 = load i32, ptr %42, align 8, !tbaa !19
  %44 = sub nsw i32 %43, 1
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.qhT, ptr %45, i32 0, i32 258
  %47 = getelementptr inbounds %struct.qhstatT, ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds [249 x %union.intrealT], ptr %47, i64 0, i64 216
  %49 = load i32, ptr %48, align 8, !tbaa !20
  %50 = icmp eq i32 %44, %49
  br i1 %50, label %51, label %60

51:                                               ; preds = %40
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.qhT, ptr %52, i32 0, i32 92
  %54 = load i32, ptr %53, align 8, !tbaa !21
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.qhT, ptr %55, i32 0, i32 29
  store i32 %54, ptr %56, align 8, !tbaa !22
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.qhT, ptr %57, i32 0, i32 257
  %59 = getelementptr inbounds %struct.qhmemT, ptr %58, i32 0, i32 14
  store i32 %54, ptr %59, align 8, !tbaa !23
  br label %60

60:                                               ; preds = %51, %40
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.qhT, ptr %61, i32 0, i32 29
  %63 = load i32, ptr %62, align 8, !tbaa !22
  %64 = icmp sge i32 %63, 3
  br i1 %64, label %65, label %83

65:                                               ; preds = %60
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.qhT, ptr %67, i32 0, i32 158
  %69 = load ptr, ptr %68, align 8, !tbaa !11
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.qhT, ptr %70, i32 0, i32 258
  %72 = getelementptr inbounds %struct.qhstatT, ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds [249 x %union.intrealT], ptr %72, i64 0, i64 216
  %74 = load i32, ptr %73, align 8, !tbaa !20
  %75 = add nsw i32 %74, 1
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.facetT, ptr %76, i32 0, i32 14
  %78 = load i32, ptr %77, align 4, !tbaa !17
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.facetT, ptr %79, i32 0, i32 14
  %81 = load i32, ptr %80, align 4, !tbaa !17
  %82 = load i32, ptr %8, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %66, ptr noundef %69, i32 noundef 3003, ptr noundef @.str.125, i32 noundef %75, i32 noundef %78, i32 noundef %81, i32 noundef %82)
  br label %83

83:                                               ; preds = %65, %60
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.facetT, ptr %84, i32 0, i32 15
  %86 = load i32, ptr %85, align 8
  %87 = lshr i32 %86, 10
  %88 = and i32 %87, 1
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %94, label %90

90:                                               ; preds = %83
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %91, ptr %9, align 8, !tbaa !5
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %92, ptr %7, align 8, !tbaa !5
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %93, ptr %6, align 8, !tbaa !5
  br label %96

94:                                               ; preds = %83
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %95, ptr %9, align 8, !tbaa !5
  br label %96

96:                                               ; preds = %94, %90
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = call ptr @qh_findbestneighbor(ptr noundef %97, ptr noundef %98, ptr noundef %14, ptr noundef %16, ptr noundef %18)
  store ptr %99, ptr %10, align 8, !tbaa !5
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = call ptr @qh_findbestneighbor(ptr noundef %100, ptr noundef %101, ptr noundef %15, ptr noundef %17, ptr noundef %19)
  store ptr %102, ptr %11, align 8, !tbaa !5
  %103 = load double, ptr %14, align 8, !tbaa !24
  %104 = load double, ptr %15, align 8, !tbaa !24
  %105 = fcmp olt double %103, %104
  br i1 %105, label %106, label %109

106:                                              ; preds = %96
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %107, ptr %12, align 8, !tbaa !5
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %108, ptr %13, align 8, !tbaa !5
  br label %194

109:                                              ; preds = %96
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.qhT, ptr %110, i32 0, i32 9
  %112 = load i32, ptr %111, align 8, !tbaa !25
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %187

114:                                              ; preds = %109
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.facetT, ptr %115, i32 0, i32 15
  %117 = load i32, ptr %116, align 8
  %118 = lshr i32 %117, 10
  %119 = and i32 %118, 1
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %187, label %121

121:                                              ; preds = %114
  %122 = load double, ptr %16, align 8, !tbaa !24
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.qhT, ptr %123, i32 0, i32 35
  %125 = load double, ptr %124, align 8, !tbaa !26
  %126 = fneg double %125
  %127 = fcmp oge double %122, %126
  br i1 %127, label %128, label %134

128:                                              ; preds = %121
  %129 = load double, ptr %18, align 8, !tbaa !24
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.qhT, ptr %130, i32 0, i32 199
  %132 = load double, ptr %131, align 8, !tbaa !27
  %133 = fcmp ole double %129, %132
  br i1 %133, label %139, label %134

134:                                              ; preds = %128, %121
  %135 = load double, ptr %14, align 8, !tbaa !24
  %136 = fmul double %135, 1.500000e+00
  %137 = load double, ptr %15, align 8, !tbaa !24
  %138 = fcmp olt double %136, %137
  br i1 %138, label %139, label %187

139:                                              ; preds = %134, %128
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.qhT, ptr %140, i32 0, i32 258
  %142 = getelementptr inbounds %struct.qhstatT, ptr %141, i32 0, i32 0
  %143 = getelementptr inbounds [249 x %union.intrealT], ptr %142, i64 0, i64 11
  %144 = load i32, ptr %143, align 8, !tbaa !20
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %143, align 8, !tbaa !20
  %146 = load double, ptr %14, align 8, !tbaa !24
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.qhT, ptr %147, i32 0, i32 258
  %149 = getelementptr inbounds %struct.qhstatT, ptr %148, i32 0, i32 0
  %150 = getelementptr inbounds [249 x %union.intrealT], ptr %149, i64 0, i64 13
  %151 = load double, ptr %150, align 8, !tbaa !20
  %152 = fadd double %151, %146
  store double %152, ptr %150, align 8, !tbaa !20
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.qhT, ptr %153, i32 0, i32 258
  %155 = getelementptr inbounds %struct.qhstatT, ptr %154, i32 0, i32 0
  %156 = getelementptr inbounds [249 x %union.intrealT], ptr %155, i64 0, i64 12
  %157 = load double, ptr %156, align 8, !tbaa !20
  %158 = load double, ptr %14, align 8, !tbaa !24
  %159 = fcmp olt double %157, %158
  br i1 %159, label %160, label %166

160:                                              ; preds = %139
  %161 = load double, ptr %14, align 8, !tbaa !24
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.qhT, ptr %162, i32 0, i32 258
  %164 = getelementptr inbounds %struct.qhstatT, ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds [249 x %union.intrealT], ptr %164, i64 0, i64 12
  store double %161, ptr %165, align 8, !tbaa !20
  br label %166

166:                                              ; preds = %160, %139
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.qhT, ptr %167, i32 0, i32 29
  %169 = load i32, ptr %168, align 8, !tbaa !22
  %170 = icmp sge i32 %169, 2
  br i1 %170, label %171, label %184

171:                                              ; preds = %166
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.qhT, ptr %173, i32 0, i32 158
  %175 = load ptr, ptr %174, align 8, !tbaa !11
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.facetT, ptr %176, i32 0, i32 14
  %178 = load i32, ptr %177, align 4, !tbaa !17
  %179 = load double, ptr %15, align 8, !tbaa !24
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.facetT, ptr %180, i32 0, i32 14
  %182 = load i32, ptr %181, align 4, !tbaa !17
  %183 = load double, ptr %15, align 8, !tbaa !24
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %172, ptr noundef %175, i32 noundef 2029, ptr noundef @.str.126, i32 noundef %178, double noundef %179, i32 noundef %182, double noundef %183)
  br label %184

184:                                              ; preds = %171, %166
  %185 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %185, ptr %12, align 8, !tbaa !5
  %186 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %186, ptr %13, align 8, !tbaa !5
  br label %193

187:                                              ; preds = %134, %114, %109
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %188, ptr %12, align 8, !tbaa !5
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %189, ptr %13, align 8, !tbaa !5
  %190 = load double, ptr %15, align 8, !tbaa !24
  store double %190, ptr %14, align 8, !tbaa !24
  %191 = load double, ptr %17, align 8, !tbaa !24
  store double %191, ptr %16, align 8, !tbaa !24
  %192 = load double, ptr %19, align 8, !tbaa !24
  store double %192, ptr %18, align 8, !tbaa !24
  br label %193

193:                                              ; preds = %187, %184
  br label %194

194:                                              ; preds = %193, %106
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = load ptr, ptr %12, align 8, !tbaa !5
  %197 = load ptr, ptr %13, align 8, !tbaa !5
  %198 = load i32, ptr %8, align 4, !tbaa !9
  call void @qh_mergefacet(ptr noundef %195, ptr noundef %196, ptr noundef %197, i32 noundef %198, ptr noundef %16, ptr noundef %18, i32 noundef 0)
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.qhT, ptr %199, i32 0, i32 67
  %201 = load i32, ptr %200, align 8, !tbaa !28
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %327

203:                                              ; preds = %194
  %204 = load i32, ptr %8, align 4, !tbaa !9
  %205 = icmp eq i32 %204, 2
  br i1 %205, label %206, label %234

206:                                              ; preds = %203
  %207 = load ptr, ptr %5, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.qhT, ptr %207, i32 0, i32 258
  %209 = getelementptr inbounds %struct.qhstatT, ptr %208, i32 0, i32 0
  %210 = getelementptr inbounds [249 x %union.intrealT], ptr %209, i64 0, i64 0
  %211 = load i32, ptr %210, align 8, !tbaa !20
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %210, align 8, !tbaa !20
  %213 = load double, ptr %14, align 8, !tbaa !24
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.qhT, ptr %214, i32 0, i32 258
  %216 = getelementptr inbounds %struct.qhstatT, ptr %215, i32 0, i32 0
  %217 = getelementptr inbounds [249 x %union.intrealT], ptr %216, i64 0, i64 2
  %218 = load double, ptr %217, align 8, !tbaa !20
  %219 = fadd double %218, %213
  store double %219, ptr %217, align 8, !tbaa !20
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.qhT, ptr %220, i32 0, i32 258
  %222 = getelementptr inbounds %struct.qhstatT, ptr %221, i32 0, i32 0
  %223 = getelementptr inbounds [249 x %union.intrealT], ptr %222, i64 0, i64 1
  %224 = load double, ptr %223, align 8, !tbaa !20
  %225 = load double, ptr %14, align 8, !tbaa !24
  %226 = fcmp olt double %224, %225
  br i1 %226, label %227, label %233

227:                                              ; preds = %206
  %228 = load double, ptr %14, align 8, !tbaa !24
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.qhT, ptr %229, i32 0, i32 258
  %231 = getelementptr inbounds %struct.qhstatT, ptr %230, i32 0, i32 0
  %232 = getelementptr inbounds [249 x %union.intrealT], ptr %231, i64 0, i64 1
  store double %228, ptr %232, align 8, !tbaa !20
  br label %233

233:                                              ; preds = %227, %206
  br label %326

234:                                              ; preds = %203
  %235 = load i32, ptr %8, align 4, !tbaa !9
  %236 = icmp eq i32 %235, 3
  br i1 %236, label %237, label %265

237:                                              ; preds = %234
  %238 = load ptr, ptr %5, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.qhT, ptr %238, i32 0, i32 258
  %240 = getelementptr inbounds %struct.qhstatT, ptr %239, i32 0, i32 0
  %241 = getelementptr inbounds [249 x %union.intrealT], ptr %240, i64 0, i64 24
  %242 = load i32, ptr %241, align 8, !tbaa !20
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %241, align 8, !tbaa !20
  %244 = load double, ptr %14, align 8, !tbaa !24
  %245 = load ptr, ptr %5, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.qhT, ptr %245, i32 0, i32 258
  %247 = getelementptr inbounds %struct.qhstatT, ptr %246, i32 0, i32 0
  %248 = getelementptr inbounds [249 x %union.intrealT], ptr %247, i64 0, i64 26
  %249 = load double, ptr %248, align 8, !tbaa !20
  %250 = fadd double %249, %244
  store double %250, ptr %248, align 8, !tbaa !20
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.qhT, ptr %251, i32 0, i32 258
  %253 = getelementptr inbounds %struct.qhstatT, ptr %252, i32 0, i32 0
  %254 = getelementptr inbounds [249 x %union.intrealT], ptr %253, i64 0, i64 25
  %255 = load double, ptr %254, align 8, !tbaa !20
  %256 = load double, ptr %14, align 8, !tbaa !24
  %257 = fcmp olt double %255, %256
  br i1 %257, label %258, label %264

258:                                              ; preds = %237
  %259 = load double, ptr %14, align 8, !tbaa !24
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.qhT, ptr %260, i32 0, i32 258
  %262 = getelementptr inbounds %struct.qhstatT, ptr %261, i32 0, i32 0
  %263 = getelementptr inbounds [249 x %union.intrealT], ptr %262, i64 0, i64 25
  store double %259, ptr %263, align 8, !tbaa !20
  br label %264

264:                                              ; preds = %258, %237
  br label %325

265:                                              ; preds = %234
  %266 = load i32, ptr %8, align 4, !tbaa !9
  %267 = icmp eq i32 %266, 4
  br i1 %267, label %268, label %296

268:                                              ; preds = %265
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.qhT, ptr %269, i32 0, i32 258
  %271 = getelementptr inbounds %struct.qhstatT, ptr %270, i32 0, i32 0
  %272 = getelementptr inbounds [249 x %union.intrealT], ptr %271, i64 0, i64 27
  %273 = load i32, ptr %272, align 8, !tbaa !20
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %272, align 8, !tbaa !20
  %275 = load double, ptr %14, align 8, !tbaa !24
  %276 = load ptr, ptr %5, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.qhT, ptr %276, i32 0, i32 258
  %278 = getelementptr inbounds %struct.qhstatT, ptr %277, i32 0, i32 0
  %279 = getelementptr inbounds [249 x %union.intrealT], ptr %278, i64 0, i64 29
  %280 = load double, ptr %279, align 8, !tbaa !20
  %281 = fadd double %280, %275
  store double %281, ptr %279, align 8, !tbaa !20
  %282 = load ptr, ptr %5, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.qhT, ptr %282, i32 0, i32 258
  %284 = getelementptr inbounds %struct.qhstatT, ptr %283, i32 0, i32 0
  %285 = getelementptr inbounds [249 x %union.intrealT], ptr %284, i64 0, i64 28
  %286 = load double, ptr %285, align 8, !tbaa !20
  %287 = load double, ptr %14, align 8, !tbaa !24
  %288 = fcmp olt double %286, %287
  br i1 %288, label %289, label %295

289:                                              ; preds = %268
  %290 = load double, ptr %14, align 8, !tbaa !24
  %291 = load ptr, ptr %5, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.qhT, ptr %291, i32 0, i32 258
  %293 = getelementptr inbounds %struct.qhstatT, ptr %292, i32 0, i32 0
  %294 = getelementptr inbounds [249 x %union.intrealT], ptr %293, i64 0, i64 28
  store double %290, ptr %294, align 8, !tbaa !20
  br label %295

295:                                              ; preds = %289, %268
  br label %324

296:                                              ; preds = %265
  %297 = load ptr, ptr %5, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.qhT, ptr %297, i32 0, i32 258
  %299 = getelementptr inbounds %struct.qhstatT, ptr %298, i32 0, i32 0
  %300 = getelementptr inbounds [249 x %union.intrealT], ptr %299, i64 0, i64 33
  %301 = load i32, ptr %300, align 8, !tbaa !20
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %300, align 8, !tbaa !20
  %303 = load double, ptr %14, align 8, !tbaa !24
  %304 = load ptr, ptr %5, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.qhT, ptr %304, i32 0, i32 258
  %306 = getelementptr inbounds %struct.qhstatT, ptr %305, i32 0, i32 0
  %307 = getelementptr inbounds [249 x %union.intrealT], ptr %306, i64 0, i64 35
  %308 = load double, ptr %307, align 8, !tbaa !20
  %309 = fadd double %308, %303
  store double %309, ptr %307, align 8, !tbaa !20
  %310 = load ptr, ptr %5, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.qhT, ptr %310, i32 0, i32 258
  %312 = getelementptr inbounds %struct.qhstatT, ptr %311, i32 0, i32 0
  %313 = getelementptr inbounds [249 x %union.intrealT], ptr %312, i64 0, i64 34
  %314 = load double, ptr %313, align 8, !tbaa !20
  %315 = load double, ptr %14, align 8, !tbaa !24
  %316 = fcmp olt double %314, %315
  br i1 %316, label %317, label %323

317:                                              ; preds = %296
  %318 = load double, ptr %14, align 8, !tbaa !24
  %319 = load ptr, ptr %5, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.qhT, ptr %319, i32 0, i32 258
  %321 = getelementptr inbounds %struct.qhstatT, ptr %320, i32 0, i32 0
  %322 = getelementptr inbounds [249 x %union.intrealT], ptr %321, i64 0, i64 34
  store double %318, ptr %322, align 8, !tbaa !20
  br label %323

323:                                              ; preds = %317, %296
  br label %324

324:                                              ; preds = %323, %295
  br label %325

325:                                              ; preds = %324, %264
  br label %326

326:                                              ; preds = %325, %233
  br label %327

327:                                              ; preds = %326, %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_findbestneighbor(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 2424}
!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 = !{!18, !10, i64 108}
!18 = !{!"facetT", !13, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115}
!19 = !{!12, !10, i64 560}
!20 = !{!7, !7, i64 0}
!21 = !{!12, !10, i64 536}
!22 = !{!12, !10, i64 136}
!23 = !{!12, !10, i64 3360}
!24 = !{!13, !13, i64 0}
!25 = !{!12, !10, i64 40}
!26 = !{!12, !13, i64 168}
!27 = !{!12, !13, i64 2680}
!28 = !{!12, !10, i64 424}


; 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.124 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [89 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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_merge_nonconvex(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  %11 = add i32 %3, -5
  %or.cond = icmp ult i32 %11, -4
  br i1 %or.cond, label %12, label %19

12:                                               ; preds = %4
  %13 = getelementptr inbounds i8, ptr %0, i64 2424
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 108
  %16 = load i32, ptr %15, align 4, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %2, i64 108
  %18 = load i32, ptr %17, align 4, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %14, i32 noundef 6398, ptr noundef nonnull @.str.124, i32 noundef %16, i32 noundef %18, i32 noundef %3) #3
  tail call void @qh_errexit2(ptr noundef %0, i32 noundef 5, ptr noundef %1, ptr noundef %2) #3
  br label %19

19:                                               ; preds = %4, %12
  %20 = getelementptr inbounds i8, ptr %0, i64 560
  %21 = load i32, ptr %20, align 8, !tbaa !17
  %22 = add nsw i32 %21, -1
  %23 = getelementptr inbounds i8, ptr %0, i64 3424
  %24 = getelementptr inbounds i8, ptr %0, i64 5152
  %25 = load i32, ptr %24, align 8, !tbaa !18
  %26 = icmp eq i32 %22, %25
  br i1 %26, label %27, label %._crit_edge

._crit_edge:                                      ; preds = %19
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 136
  %.pre = load i32, ptr %.phi.trans.insert, align 8, !tbaa !19
  br label %32

27:                                               ; preds = %19
  %28 = getelementptr inbounds i8, ptr %0, i64 536
  %29 = load i32, ptr %28, align 8, !tbaa !20
  %30 = getelementptr inbounds i8, ptr %0, i64 136
  store i32 %29, ptr %30, align 8, !tbaa !19
  %31 = getelementptr inbounds i8, ptr %0, i64 3360
  store i32 %29, ptr %31, align 8, !tbaa !21
  br label %32

32:                                               ; preds = %._crit_edge, %27
  %33 = phi i32 [ %.pre, %._crit_edge ], [ %29, %27 ]
  %34 = getelementptr inbounds i8, ptr %0, i64 136
  %35 = icmp sgt i32 %33, 2
  br i1 %35, label %36, label %44

36:                                               ; preds = %32
  %37 = getelementptr inbounds i8, ptr %0, i64 2424
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = add nsw i32 %25, 1
  %40 = getelementptr inbounds i8, ptr %1, i64 108
  %41 = load i32, ptr %40, align 4, !tbaa !15
  %42 = getelementptr inbounds i8, ptr %2, i64 108
  %43 = load i32, ptr %42, align 4, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %38, i32 noundef 3003, ptr noundef nonnull @.str.125, i32 noundef %39, i32 noundef %41, i32 noundef %43, i32 noundef %3) #3
  br label %44

44:                                               ; preds = %36, %32
  %45 = getelementptr inbounds i8, ptr %1, i64 112
  %46 = load i32, ptr %45, align 8
  %47 = and i32 %46, 1024
  %.not = icmp eq i32 %47, 0
  %. = select i1 %.not, ptr %1, ptr %2
  %.87 = select i1 %.not, ptr %2, ptr %1
  %48 = call ptr @qh_findbestneighbor(ptr noundef nonnull %0, ptr noundef %.87, ptr noundef nonnull %5, ptr noundef nonnull %7, ptr noundef nonnull %9)
  %49 = call ptr @qh_findbestneighbor(ptr noundef nonnull %0, ptr noundef %., ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %10)
  %50 = load double, ptr %5, align 8, !tbaa !22
  %51 = load double, ptr %6, align 8, !tbaa !22
  %52 = fcmp olt double %50, %51
  br i1 %52, label %98, label %53

53:                                               ; preds = %44
  %54 = getelementptr inbounds i8, ptr %0, i64 40
  %55 = load i32, ptr %54, align 8, !tbaa !23
  %.not84 = icmp eq i32 %55, 0
  br i1 %.not84, label %95, label %56

56:                                               ; preds = %53
  %57 = getelementptr inbounds i8, ptr %., i64 112
  %58 = load i32, ptr %57, align 8
  %59 = and i32 %58, 1024
  %.not85 = icmp eq i32 %59, 0
  br i1 %.not85, label %60, label %95

60:                                               ; preds = %56
  %61 = load double, ptr %7, align 8, !tbaa !22
  %62 = getelementptr inbounds i8, ptr %0, i64 168
  %63 = load double, ptr %62, align 8, !tbaa !24
  %64 = fneg double %63
  %65 = fcmp ult double %61, %64
  br i1 %65, label %73, label %66

66:                                               ; preds = %60
  %67 = load double, ptr %9, align 8, !tbaa !22
  %68 = getelementptr inbounds i8, ptr %0, i64 2680
  %69 = load double, ptr %68, align 8, !tbaa !25
  %70 = fcmp ole double %67, %69
  %71 = fmul double %50, 1.500000e+00
  %72 = fcmp olt double %71, %51
  %or.cond89 = or i1 %72, %70
  br i1 %or.cond89, label %74, label %95

73:                                               ; preds = %60
  %.old = fmul double %50, 1.500000e+00
  %.old88 = fcmp olt double %.old, %51
  br i1 %.old88, label %74, label %95

74:                                               ; preds = %73, %66
  %75 = getelementptr inbounds i8, ptr %0, i64 3512
  %76 = load i32, ptr %75, align 8, !tbaa !18
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %75, align 8, !tbaa !18
  %78 = getelementptr inbounds i8, ptr %0, i64 3528
  %79 = load double, ptr %78, align 8, !tbaa !18
  %80 = fadd double %50, %79
  store double %80, ptr %78, align 8, !tbaa !18
  %81 = getelementptr inbounds i8, ptr %0, i64 3520
  %82 = load double, ptr %81, align 8, !tbaa !18
  %83 = fcmp olt double %82, %50
  br i1 %83, label %84, label %85

84:                                               ; preds = %74
  store double %50, ptr %81, align 8, !tbaa !18
  br label %85

85:                                               ; preds = %84, %74
  %86 = load i32, ptr %34, align 8, !tbaa !19
  %87 = icmp sgt i32 %86, 1
  br i1 %87, label %88, label %98

88:                                               ; preds = %85
  %89 = getelementptr inbounds i8, ptr %0, i64 2424
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %., i64 108
  %92 = load i32, ptr %91, align 4, !tbaa !15
  %93 = getelementptr inbounds i8, ptr %.87, i64 108
  %94 = load i32, ptr %93, align 4, !tbaa !15
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %90, i32 noundef 2029, ptr noundef nonnull @.str.126, i32 noundef %92, double noundef %51, i32 noundef %94, double noundef %51) #3
  br label %98

95:                                               ; preds = %66, %73, %56, %53
  store double %51, ptr %5, align 8, !tbaa !22
  %96 = load double, ptr %8, align 8, !tbaa !22
  store double %96, ptr %7, align 8, !tbaa !22
  %97 = load double, ptr %10, align 8, !tbaa !22
  store double %97, ptr %9, align 8, !tbaa !22
  br label %98

98:                                               ; preds = %85, %88, %44, %95
  %.074 = phi ptr [ %., %95 ], [ %.87, %44 ], [ %.87, %88 ], [ %.87, %85 ]
  %.0 = phi ptr [ %49, %95 ], [ %48, %44 ], [ %48, %88 ], [ %48, %85 ]
  call void @qh_mergefacet(ptr noundef nonnull %0, ptr noundef %.074, ptr noundef %.0, i32 noundef %3, ptr noundef nonnull %7, ptr noundef nonnull %9, i32 noundef 0)
  %99 = getelementptr inbounds i8, ptr %0, i64 424
  %100 = load i32, ptr %99, align 8, !tbaa !26
  %.not86 = icmp eq i32 %100, 0
  br i1 %.not86, label %149, label %101

101:                                              ; preds = %98
  switch i32 %3, label %137 [
    i32 2, label %102
    i32 3, label %113
    i32 4, label %125
  ]

102:                                              ; preds = %101
  %103 = load i32, ptr %23, align 8, !tbaa !18
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %23, align 8, !tbaa !18
  %105 = load double, ptr %5, align 8, !tbaa !22
  %106 = getelementptr inbounds i8, ptr %0, i64 3440
  %107 = load double, ptr %106, align 8, !tbaa !18
  %108 = fadd double %105, %107
  store double %108, ptr %106, align 8, !tbaa !18
  %109 = getelementptr inbounds i8, ptr %0, i64 3432
  %110 = load double, ptr %109, align 8, !tbaa !18
  %111 = fcmp olt double %110, %105
  br i1 %111, label %112, label %149

112:                                              ; preds = %102
  store double %105, ptr %109, align 8, !tbaa !18
  br label %149

113:                                              ; preds = %101
  %114 = getelementptr inbounds i8, ptr %0, i64 3616
  %115 = load i32, ptr %114, align 8, !tbaa !18
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %114, align 8, !tbaa !18
  %117 = load double, ptr %5, align 8, !tbaa !22
  %118 = getelementptr inbounds i8, ptr %0, i64 3632
  %119 = load double, ptr %118, align 8, !tbaa !18
  %120 = fadd double %117, %119
  store double %120, ptr %118, align 8, !tbaa !18
  %121 = getelementptr inbounds i8, ptr %0, i64 3624
  %122 = load double, ptr %121, align 8, !tbaa !18
  %123 = fcmp olt double %122, %117
  br i1 %123, label %124, label %149

124:                                              ; preds = %113
  store double %117, ptr %121, align 8, !tbaa !18
  br label %149

125:                                              ; preds = %101
  %126 = getelementptr inbounds i8, ptr %0, i64 3640
  %127 = load i32, ptr %126, align 8, !tbaa !18
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %126, align 8, !tbaa !18
  %129 = load double, ptr %5, align 8, !tbaa !22
  %130 = getelementptr inbounds i8, ptr %0, i64 3656
  %131 = load double, ptr %130, align 8, !tbaa !18
  %132 = fadd double %129, %131
  store double %132, ptr %130, align 8, !tbaa !18
  %133 = getelementptr inbounds i8, ptr %0, i64 3648
  %134 = load double, ptr %133, align 8, !tbaa !18
  %135 = fcmp olt double %134, %129
  br i1 %135, label %136, label %149

136:                                              ; preds = %125
  store double %129, ptr %133, align 8, !tbaa !18
  br label %149

137:                                              ; preds = %101
  %138 = getelementptr inbounds i8, ptr %0, i64 3688
  %139 = load i32, ptr %138, align 8, !tbaa !18
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %138, align 8, !tbaa !18
  %141 = load double, ptr %5, align 8, !tbaa !22
  %142 = getelementptr inbounds i8, ptr %0, i64 3704
  %143 = load double, ptr %142, align 8, !tbaa !18
  %144 = fadd double %141, %143
  store double %144, ptr %142, align 8, !tbaa !18
  %145 = getelementptr inbounds i8, ptr %0, i64 3696
  %146 = load double, ptr %145, align 8, !tbaa !18
  %147 = fcmp olt double %146, %141
  br i1 %147, label %148, label %149

148:                                              ; preds = %137
  store double %141, ptr %145, align 8, !tbaa !18
  br label %149

149:                                              ; preds = %112, %102, %136, %125, %148, %137, %113, %124, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret void
}

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_findbestneighbor(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 2424}
!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 = !{!16, !7, i64 108}
!16 = !{!"facetT", !10, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !8, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115}
!17 = !{!6, !7, i64 560}
!18 = !{!8, !8, i64 0}
!19 = !{!6, !7, i64 136}
!20 = !{!6, !7, i64 536}
!21 = !{!6, !7, i64 3360}
!22 = !{!10, !10, i64 0}
!23 = !{!6, !7, i64 40}
!24 = !{!6, !10, i64 168}
!25 = !{!6, !10, i64 2680}
!26 = !{!6, !7, i64 424}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass