; 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.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }
%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 }

@.str.220 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.221 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.222 = external hidden unnamed_addr constant [87 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
declare dso_local void @qh_appendmergeset(ptr noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, double noundef) #2

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

declare ptr @qh_getcentrum(ptr noundef, ptr noundef) #1

declare double @qh_getangle(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @qh_test_centrum_merge(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, i32 noundef %4) #2 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store double %3, ptr %10, align 8, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !11
  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 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 0, ptr %16, align 4, !tbaa !11
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.facetT, ptr %18, i32 0, i32 5
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = icmp ne ptr %20, null
  br i1 %21, label %28, label %22

22:                                               ; preds = %5
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = call ptr @qh_getcentrum(ptr noundef %23, ptr noundef %24)
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.facetT, ptr %26, i32 0, i32 5
  store ptr %25, ptr %27, align 8, !tbaa !13
  br label %28

28:                                               ; preds = %22, %5
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.qhT, ptr %29, i32 0, i32 258
  %31 = getelementptr inbounds %struct.qhstatT, ptr %30, i32 0, i32 0
  %32 = getelementptr inbounds [249 x %union.intrealT], ptr %31, i64 0, i64 21
  %33 = load i32, ptr %32, align 8, !tbaa !15
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %32, align 8, !tbaa !15
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.facetT, ptr %36, i32 0, i32 5
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %35, ptr noundef %38, ptr noundef %39, ptr noundef %12)
  %40 = load double, ptr %12, align 8, !tbaa !9
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.qhT, ptr %41, i32 0, i32 132
  %43 = load double, ptr %42, align 8, !tbaa !16
  %44 = fcmp ogt double %40, %43
  br i1 %44, label %45, label %46

45:                                               ; preds = %28
  store i32 1, ptr %15, align 4, !tbaa !11
  br label %55

46:                                               ; preds = %28
  %47 = load double, ptr %12, align 8, !tbaa !9
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.qhT, ptr %48, i32 0, i32 132
  %50 = load double, ptr %49, align 8, !tbaa !16
  %51 = fneg double %50
  %52 = fcmp oge double %47, %51
  br i1 %52, label %53, label %54

53:                                               ; preds = %46
  store i32 1, ptr %16, align 4, !tbaa !11
  br label %54

54:                                               ; preds = %53, %46
  br label %55

55:                                               ; preds = %54, %45
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.facetT, ptr %56, i32 0, i32 5
  %58 = load ptr, ptr %57, align 8, !tbaa !13
  %59 = icmp ne ptr %58, null
  br i1 %59, label %66, label %60

60:                                               ; preds = %55
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = call ptr @qh_getcentrum(ptr noundef %61, ptr noundef %62)
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.facetT, ptr %64, i32 0, i32 5
  store ptr %63, ptr %65, align 8, !tbaa !13
  br label %66

66:                                               ; preds = %60, %55
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.qhT, ptr %67, i32 0, i32 258
  %69 = getelementptr inbounds %struct.qhstatT, ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds [249 x %union.intrealT], ptr %69, i64 0, i64 21
  %71 = load i32, ptr %70, align 8, !tbaa !15
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %70, align 8, !tbaa !15
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.facetT, ptr %74, i32 0, i32 5
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %73, ptr noundef %76, ptr noundef %77, ptr noundef %13)
  %78 = load double, ptr %13, align 8, !tbaa !9
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.qhT, ptr %79, i32 0, i32 132
  %81 = load double, ptr %80, align 8, !tbaa !16
  %82 = fcmp ogt double %78, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %66
  store i32 1, ptr %15, align 4, !tbaa !11
  br label %96

84:                                               ; preds = %66
  %85 = load i32, ptr %16, align 4, !tbaa !11
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %95, label %87

87:                                               ; preds = %84
  %88 = load double, ptr %13, align 8, !tbaa !9
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.qhT, ptr %89, i32 0, i32 132
  %91 = load double, ptr %90, align 8, !tbaa !16
  %92 = fneg double %91
  %93 = fcmp oge double %88, %92
  br i1 %93, label %94, label %95

94:                                               ; preds = %87
  store i32 1, ptr %16, align 4, !tbaa !11
  br label %95

95:                                               ; preds = %94, %87, %84
  br label %96

96:                                               ; preds = %95, %83
  %97 = load i32, ptr %15, align 4, !tbaa !11
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %113, label %99

99:                                               ; preds = %96
  %100 = load i32, ptr %16, align 4, !tbaa !11
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %112

102:                                              ; preds = %99
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.qhT, ptr %103, i32 0, i32 37
  %105 = load i32, ptr %104, align 4, !tbaa !21
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %113

107:                                              ; preds = %102
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.qhT, ptr %108, i32 0, i32 209
  %110 = load i32, ptr %109, align 8, !tbaa !22
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %113, label %112

112:                                              ; preds = %107, %99
  store i32 0, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %307

113:                                              ; preds = %107, %102, %96
  %114 = load i32, ptr %11, align 4, !tbaa !11
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %136, label %116

116:                                              ; preds = %113
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.qhT, ptr %117, i32 0, i32 4
  %119 = load i32, ptr %118, align 8, !tbaa !23
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %136

121:                                              ; preds = %116
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.facetT, ptr %123, i32 0, i32 3
  %125 = load ptr, ptr %124, align 8, !tbaa !24
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.facetT, ptr %126, i32 0, i32 3
  %128 = load ptr, ptr %127, align 8, !tbaa !24
  %129 = call double @qh_getangle(ptr noundef %122, ptr noundef %125, ptr noundef %128)
  store double %129, ptr %10, align 8, !tbaa !9
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.qhT, ptr %130, i32 0, i32 258
  %132 = getelementptr inbounds %struct.qhstatT, ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds [249 x %union.intrealT], ptr %132, i64 0, i64 7
  %134 = load i32, ptr %133, align 8, !tbaa !15
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %133, align 8, !tbaa !15
  br label %136

136:                                              ; preds = %121, %116, %113
  %137 = load i32, ptr %15, align 4, !tbaa !11
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %187

139:                                              ; preds = %136
  %140 = load i32, ptr %16, align 4, !tbaa !11
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %187

142:                                              ; preds = %139
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.qhT, ptr %143, i32 0, i32 258
  %145 = getelementptr inbounds %struct.qhstatT, ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds [249 x %union.intrealT], ptr %145, i64 0, i64 30
  %147 = load i32, ptr %146, align 8, !tbaa !15
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %146, align 8, !tbaa !15
  %149 = load double, ptr %12, align 8, !tbaa !9
  %150 = load double, ptr %13, align 8, !tbaa !9
  %151 = fcmp ogt double %149, %150
  br i1 %151, label %152, label %158

152:                                              ; preds = %142
  %153 = load ptr, ptr %7, align 8, !tbaa !5
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = load double, ptr %12, align 8, !tbaa !9
  %157 = load double, ptr %10, align 8, !tbaa !9
  call void @qh_appendmergeset(ptr noundef %153, ptr noundef %154, ptr noundef %155, i32 noundef 4, double noundef %156, double noundef %157)
  br label %164

158:                                              ; preds = %142
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = load double, ptr %13, align 8, !tbaa !9
  %163 = load double, ptr %10, align 8, !tbaa !9
  call void @qh_appendmergeset(ptr noundef %159, ptr noundef %160, ptr noundef %161, i32 noundef 4, double noundef %162, double noundef %163)
  br label %164

164:                                              ; preds = %158, %152
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.qhT, ptr %165, i32 0, i32 29
  %167 = load i32, ptr %166, align 8, !tbaa !25
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %186

169:                                              ; preds = %164
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = load ptr, ptr %7, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.qhT, ptr %171, i32 0, i32 158
  %173 = load ptr, ptr %172, align 8, !tbaa !26
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.facetT, ptr %174, i32 0, i32 14
  %176 = load i32, ptr %175, align 4, !tbaa !27
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.facetT, ptr %177, i32 0, i32 14
  %179 = load i32, ptr %178, align 4, !tbaa !27
  %180 = load double, ptr %12, align 8, !tbaa !9
  %181 = load double, ptr %13, align 8, !tbaa !9
  %182 = load double, ptr %10, align 8, !tbaa !9
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.qhT, ptr %183, i32 0, i32 190
  %185 = load i32, ptr %184, align 4, !tbaa !28
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %170, ptr noundef %173, i32 noundef 36, ptr noundef @.str.220, i32 noundef %176, i32 noundef %179, double noundef %180, double noundef %181, double noundef %182, i32 noundef %185)
  br label %186

186:                                              ; preds = %169, %164
  br label %306

187:                                              ; preds = %139, %136
  %188 = load i32, ptr %15, align 4, !tbaa !11
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %233

190:                                              ; preds = %187
  %191 = load double, ptr %12, align 8, !tbaa !9
  %192 = load double, ptr %13, align 8, !tbaa !9
  %193 = fcmp olt double %191, %192
  br i1 %193, label %194, label %196

194:                                              ; preds = %190
  %195 = load double, ptr %13, align 8, !tbaa !9
  br label %198

196:                                              ; preds = %190
  %197 = load double, ptr %12, align 8, !tbaa !9
  br label %198

198:                                              ; preds = %196, %194
  %199 = phi double [ %195, %194 ], [ %197, %196 ]
  store double %199, ptr %14, align 8, !tbaa !9
  %200 = load ptr, ptr %7, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.qhT, ptr %200, i32 0, i32 258
  %202 = getelementptr inbounds %struct.qhstatT, ptr %201, i32 0, i32 0
  %203 = getelementptr inbounds [249 x %union.intrealT], ptr %202, i64 0, i64 31
  %204 = load i32, ptr %203, align 8, !tbaa !15
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %203, align 8, !tbaa !15
  %206 = load ptr, ptr %7, align 8, !tbaa !5
  %207 = load ptr, ptr %8, align 8, !tbaa !5
  %208 = load ptr, ptr %9, align 8, !tbaa !5
  %209 = load double, ptr %14, align 8, !tbaa !9
  %210 = load double, ptr %10, align 8, !tbaa !9
  call void @qh_appendmergeset(ptr noundef %206, ptr noundef %207, ptr noundef %208, i32 noundef 3, double noundef %209, double noundef %210)
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.qhT, ptr %211, i32 0, i32 29
  %213 = load i32, ptr %212, align 8, !tbaa !25
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %232

215:                                              ; preds = %198
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = load ptr, ptr %7, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.qhT, ptr %217, i32 0, i32 158
  %219 = load ptr, ptr %218, align 8, !tbaa !26
  %220 = load ptr, ptr %8, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.facetT, ptr %220, i32 0, i32 14
  %222 = load i32, ptr %221, align 4, !tbaa !27
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.facetT, ptr %223, i32 0, i32 14
  %225 = load i32, ptr %224, align 4, !tbaa !27
  %226 = load double, ptr %12, align 8, !tbaa !9
  %227 = load double, ptr %13, align 8, !tbaa !9
  %228 = load double, ptr %10, align 8, !tbaa !9
  %229 = load ptr, ptr %7, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.qhT, ptr %229, i32 0, i32 190
  %231 = load i32, ptr %230, align 4, !tbaa !28
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %216, ptr noundef %219, i32 noundef 37, ptr noundef @.str.221, i32 noundef %222, i32 noundef %225, double noundef %226, double noundef %227, double noundef %228, i32 noundef %231)
  br label %232

232:                                              ; preds = %215, %198
  br label %305

233:                                              ; preds = %187
  %234 = load double, ptr %12, align 8, !tbaa !9
  %235 = fcmp olt double %234, 0.000000e+00
  br i1 %235, label %236, label %239

236:                                              ; preds = %233
  %237 = load double, ptr %12, align 8, !tbaa !9
  %238 = fneg double %237
  br label %241

239:                                              ; preds = %233
  %240 = load double, ptr %12, align 8, !tbaa !9
  br label %241

241:                                              ; preds = %239, %236
  %242 = phi double [ %238, %236 ], [ %240, %239 ]
  %243 = load double, ptr %13, align 8, !tbaa !9
  %244 = fcmp olt double %243, 0.000000e+00
  br i1 %244, label %245, label %248

245:                                              ; preds = %241
  %246 = load double, ptr %13, align 8, !tbaa !9
  %247 = fneg double %246
  br label %250

248:                                              ; preds = %241
  %249 = load double, ptr %13, align 8, !tbaa !9
  br label %250

250:                                              ; preds = %248, %245
  %251 = phi double [ %247, %245 ], [ %249, %248 ]
  %252 = fcmp ogt double %242, %251
  br i1 %252, label %253, label %263

253:                                              ; preds = %250
  %254 = load double, ptr %13, align 8, !tbaa !9
  %255 = fcmp olt double %254, 0.000000e+00
  br i1 %255, label %256, label %259

256:                                              ; preds = %253
  %257 = load double, ptr %13, align 8, !tbaa !9
  %258 = fneg double %257
  br label %261

259:                                              ; preds = %253
  %260 = load double, ptr %13, align 8, !tbaa !9
  br label %261

261:                                              ; preds = %259, %256
  %262 = phi double [ %258, %256 ], [ %260, %259 ]
  br label %273

263:                                              ; preds = %250
  %264 = load double, ptr %12, align 8, !tbaa !9
  %265 = fcmp olt double %264, 0.000000e+00
  br i1 %265, label %266, label %269

266:                                              ; preds = %263
  %267 = load double, ptr %12, align 8, !tbaa !9
  %268 = fneg double %267
  br label %271

269:                                              ; preds = %263
  %270 = load double, ptr %12, align 8, !tbaa !9
  br label %271

271:                                              ; preds = %269, %266
  %272 = phi double [ %268, %266 ], [ %270, %269 ]
  br label %273

273:                                              ; preds = %271, %261
  %274 = phi double [ %262, %261 ], [ %272, %271 ]
  store double %274, ptr %14, align 8, !tbaa !9
  %275 = load ptr, ptr %7, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.qhT, ptr %275, i32 0, i32 258
  %277 = getelementptr inbounds %struct.qhstatT, ptr %276, i32 0, i32 0
  %278 = getelementptr inbounds [249 x %union.intrealT], ptr %277, i64 0, i64 37
  %279 = load i32, ptr %278, align 8, !tbaa !15
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %278, align 8, !tbaa !15
  %281 = load ptr, ptr %7, align 8, !tbaa !5
  %282 = load ptr, ptr %8, align 8, !tbaa !5
  %283 = load ptr, ptr %9, align 8, !tbaa !5
  %284 = load double, ptr %14, align 8, !tbaa !9
  %285 = load double, ptr %10, align 8, !tbaa !9
  call void @qh_appendmergeset(ptr noundef %281, ptr noundef %282, ptr noundef %283, i32 noundef 1, double noundef %284, double noundef %285)
  %286 = load ptr, ptr %7, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.qhT, ptr %286, i32 0, i32 29
  %288 = load i32, ptr %287, align 8, !tbaa !25
  %289 = icmp sge i32 %288, 2
  br i1 %289, label %290, label %304

290:                                              ; preds = %273
  %291 = load ptr, ptr %7, align 8, !tbaa !5
  %292 = load ptr, ptr %7, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.qhT, ptr %292, i32 0, i32 158
  %294 = load ptr, ptr %293, align 8, !tbaa !26
  %295 = load ptr, ptr %8, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.facetT, ptr %295, i32 0, i32 14
  %297 = load i32, ptr %296, align 4, !tbaa !27
  %298 = load ptr, ptr %9, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.facetT, ptr %298, i32 0, i32 14
  %300 = load i32, ptr %299, align 4, !tbaa !27
  %301 = load double, ptr %12, align 8, !tbaa !9
  %302 = load double, ptr %13, align 8, !tbaa !9
  %303 = load double, ptr %10, align 8, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %291, ptr noundef %294, i32 noundef 2097, ptr noundef @.str.222, i32 noundef %297, i32 noundef %300, double noundef %301, double noundef %302, double noundef %303)
  br label %304

304:                                              ; preds = %290, %273
  br label %305

305:                                              ; preds = %304, %232
  br label %306

306:                                              ; preds = %305, %186
  store i32 1, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %307

307:                                              ; preds = %306, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  %308 = load i32, ptr %6, align 4
  ret i32 %308
}

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


; 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.220 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.221 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.222 = external hidden unnamed_addr constant [87 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
declare dso_local void @qh_appendmergeset(ptr noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, double noundef) local_unnamed_addr #2

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

declare ptr @qh_getcentrum(ptr noundef, ptr noundef) local_unnamed_addr #1

declare double @qh_getangle(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @qh_test_centrum_merge(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %8 = getelementptr inbounds i8, ptr %1, i64 40
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %10, label %12

10:                                               ; preds = %5
  %11 = tail call ptr @qh_getcentrum(ptr noundef %0, ptr noundef nonnull %1) #3
  store ptr %11, ptr %8, align 8, !tbaa !5
  br label %12

12:                                               ; preds = %10, %5
  %13 = getelementptr inbounds i8, ptr %0, i64 3592
  %14 = load i32, ptr %13, align 8, !tbaa !12
  %15 = add nsw i32 %14, 1
  store i32 %15, ptr %13, align 8, !tbaa !12
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %0, ptr noundef %16, ptr noundef %2, ptr noundef nonnull %6) #3
  %17 = load double, ptr %6, align 8, !tbaa !13
  %18 = getelementptr inbounds i8, ptr %0, i64 1768
  %19 = load double, ptr %18, align 8, !tbaa !14
  %20 = fcmp ogt double %17, %19
  %21 = fneg double %19
  %22 = fcmp ult double %17, %21
  %or.cond118 = or i1 %20, %22
  %not.or.cond118 = xor i1 %or.cond118, true
  %23 = getelementptr inbounds i8, ptr %2, i64 40
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %.not88 = icmp eq ptr %24, null
  br i1 %.not88, label %25, label %27

25:                                               ; preds = %12
  %26 = call ptr @qh_getcentrum(ptr noundef nonnull %0, ptr noundef nonnull %2) #3
  store ptr %26, ptr %23, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %25, %12
  %28 = load i32, ptr %13, align 8, !tbaa !12
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %13, align 8, !tbaa !12
  %30 = load ptr, ptr %23, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef nonnull %0, ptr noundef %30, ptr noundef nonnull %1, ptr noundef nonnull %7) #3
  %31 = load double, ptr %7, align 8, !tbaa !13
  %32 = load double, ptr %18, align 8, !tbaa !14
  %33 = fcmp ogt double %31, %32
  %brmerge = or i1 %33, %not.or.cond118
  %34 = select i1 %33, i1 %or.cond118, i1 false
  br i1 %brmerge, label %38, label %35

35:                                               ; preds = %27
  %36 = fneg double %32
  %37 = fcmp ult double %31, %36
  br i1 %37, label %.thread107, label %.thread

38:                                               ; preds = %27
  %narrow = xor i1 %34, true
  %.not106.not = or i1 %20, %33
  br i1 %.not106.not, label %45, label %39

.thread107:                                       ; preds = %35
  br i1 %20, label %45, label %.thread112

.thread:                                          ; preds = %35
  br i1 %20, label %45, label %.thread101

39:                                               ; preds = %38
  br i1 %34, label %.thread112, label %.thread101

.thread101:                                       ; preds = %.thread, %39
  %40 = getelementptr inbounds i8, ptr %0, i64 180
  %41 = load i32, ptr %40, align 4, !tbaa !19
  %.not91 = icmp eq i32 %41, 0
  br i1 %.not91, label %45, label %42

42:                                               ; preds = %.thread101
  %43 = getelementptr inbounds i8, ptr %0, i64 2744
  %44 = load i32, ptr %43, align 8, !tbaa !20
  %.not92 = icmp eq i32 %44, 0
  br i1 %.not92, label %.thread112, label %45

45:                                               ; preds = %.thread107, %.thread, %42, %.thread101, %38
  %46 = phi i1 [ true, %.thread ], [ false, %42 ], [ false, %.thread101 ], [ true, %38 ], [ true, %.thread107 ]
  %.1100 = phi i1 [ true, %.thread ], [ true, %42 ], [ true, %.thread101 ], [ %narrow, %38 ], [ false, %.thread107 ]
  %.not93 = icmp eq i32 %4, 0
  br i1 %.not93, label %47, label %59

47:                                               ; preds = %45
  %48 = getelementptr inbounds i8, ptr %0, i64 16
  %49 = load i32, ptr %48, align 8, !tbaa !21
  %.not94 = icmp eq i32 %49, 0
  br i1 %.not94, label %59, label %50

50:                                               ; preds = %47
  %51 = getelementptr inbounds i8, ptr %1, i64 24
  %52 = load ptr, ptr %51, align 8, !tbaa !22
  %53 = getelementptr inbounds i8, ptr %2, i64 24
  %54 = load ptr, ptr %53, align 8, !tbaa !22
  %55 = call double @qh_getangle(ptr noundef nonnull %0, ptr noundef %52, ptr noundef %54) #3
  %56 = getelementptr inbounds i8, ptr %0, i64 3480
  %57 = load i32, ptr %56, align 8, !tbaa !12
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %56, align 8, !tbaa !12
  br label %59

59:                                               ; preds = %50, %47, %45
  %.079 = phi double [ %3, %45 ], [ %55, %50 ], [ %3, %47 ]
  %or.cond = and i1 %46, %.1100
  br i1 %or.cond, label %60, label %83

60:                                               ; preds = %59
  %61 = getelementptr inbounds i8, ptr %0, i64 3664
  %62 = load i32, ptr %61, align 8, !tbaa !12
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %61, align 8, !tbaa !12
  %64 = load double, ptr %6, align 8, !tbaa !13
  %65 = load double, ptr %7, align 8, !tbaa !13
  %66 = fcmp ogt double %64, %65
  br i1 %66, label %67, label %68

67:                                               ; preds = %60
  call void @qh_appendmergeset(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef 4, double noundef %64, double noundef %.079)
  br label %69

68:                                               ; preds = %60
  call void @qh_appendmergeset(ptr noundef nonnull %0, ptr noundef nonnull %2, ptr noundef nonnull %1, i32 noundef 4, double noundef %65, double noundef %.079)
  br label %69

69:                                               ; preds = %68, %67
  %70 = getelementptr inbounds i8, ptr %0, i64 136
  %71 = load i32, ptr %70, align 8, !tbaa !23
  %.not96 = icmp eq i32 %71, 0
  br i1 %.not96, label %.thread112, label %72

72:                                               ; preds = %69
  %73 = getelementptr inbounds i8, ptr %0, i64 2424
  %74 = load ptr, ptr %73, align 8, !tbaa !24
  %75 = getelementptr inbounds i8, ptr %1, i64 108
  %76 = load i32, ptr %75, align 4, !tbaa !25
  %77 = getelementptr inbounds i8, ptr %2, i64 108
  %78 = load i32, ptr %77, align 4, !tbaa !25
  %79 = load double, ptr %6, align 8, !tbaa !13
  %80 = load double, ptr %7, align 8, !tbaa !13
  %81 = getelementptr inbounds i8, ptr %0, i64 2620
  %82 = load i32, ptr %81, align 4, !tbaa !26
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %74, i32 noundef 36, ptr noundef nonnull @.str.220, i32 noundef %76, i32 noundef %78, double noundef %79, double noundef %80, double noundef %.079, i32 noundef %82) #3
  br label %.thread112

83:                                               ; preds = %59
  %84 = load double, ptr %6, align 8
  br i1 %46, label %85, label %105

85:                                               ; preds = %83
  %86 = load double, ptr %7, align 8
  %87 = fcmp olt double %84, %86
  %88 = select i1 %87, double %86, double %84
  %89 = getelementptr inbounds i8, ptr %0, i64 3672
  %90 = load i32, ptr %89, align 8, !tbaa !12
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %89, align 8, !tbaa !12
  call void @qh_appendmergeset(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef 3, double noundef %88, double noundef %.079)
  %92 = getelementptr inbounds i8, ptr %0, i64 136
  %93 = load i32, ptr %92, align 8, !tbaa !23
  %.not95 = icmp eq i32 %93, 0
  br i1 %.not95, label %.thread112, label %94

94:                                               ; preds = %85
  %95 = getelementptr inbounds i8, ptr %0, i64 2424
  %96 = load ptr, ptr %95, align 8, !tbaa !24
  %97 = getelementptr inbounds i8, ptr %1, i64 108
  %98 = load i32, ptr %97, align 4, !tbaa !25
  %99 = getelementptr inbounds i8, ptr %2, i64 108
  %100 = load i32, ptr %99, align 4, !tbaa !25
  %101 = load double, ptr %6, align 8, !tbaa !13
  %102 = load double, ptr %7, align 8, !tbaa !13
  %103 = getelementptr inbounds i8, ptr %0, i64 2620
  %104 = load i32, ptr %103, align 4, !tbaa !26
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %96, i32 noundef 37, ptr noundef nonnull @.str.221, i32 noundef %98, i32 noundef %100, double noundef %101, double noundef %102, double noundef %.079, i32 noundef %104) #3
  br label %.thread112

105:                                              ; preds = %83
  %106 = fcmp olt double %84, 0.000000e+00
  %107 = fneg double %84
  %108 = select i1 %106, double %107, double %84
  %109 = load double, ptr %7, align 8
  %110 = fcmp olt double %109, 0.000000e+00
  %111 = fneg double %109
  %112 = select i1 %110, double %111, double %109
  %113 = fcmp ogt double %108, %112
  %. = select i1 %113, double %112, double %108
  %114 = getelementptr inbounds i8, ptr %0, i64 3720
  %115 = load i32, ptr %114, align 8, !tbaa !12
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %114, align 8, !tbaa !12
  call void @qh_appendmergeset(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef 1, double noundef %., double noundef %.079)
  %117 = getelementptr inbounds i8, ptr %0, i64 136
  %118 = load i32, ptr %117, align 8, !tbaa !23
  %119 = icmp sgt i32 %118, 1
  br i1 %119, label %120, label %.thread112

120:                                              ; preds = %105
  %121 = getelementptr inbounds i8, ptr %0, i64 2424
  %122 = load ptr, ptr %121, align 8, !tbaa !24
  %123 = getelementptr inbounds i8, ptr %1, i64 108
  %124 = load i32, ptr %123, align 4, !tbaa !25
  %125 = getelementptr inbounds i8, ptr %2, i64 108
  %126 = load i32, ptr %125, align 4, !tbaa !25
  %127 = load double, ptr %6, align 8, !tbaa !13
  %128 = load double, ptr %7, align 8, !tbaa !13
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %122, i32 noundef 2097, ptr noundef nonnull @.str.222, i32 noundef %124, i32 noundef %126, double noundef %127, double noundef %128, double noundef %.079) #3
  br label %.thread112

.thread112:                                       ; preds = %.thread107, %72, %69, %105, %120, %85, %94, %39, %42
  %.078 = phi i32 [ 0, %42 ], [ 0, %39 ], [ 1, %94 ], [ 1, %85 ], [ 1, %120 ], [ 1, %105 ], [ 1, %69 ], [ 1, %72 ], [ 0, %.thread107 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  ret i32 %.078
}

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


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