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

@.str.79 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.82 = 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: nounwind uwtable
define dso_local void @qh_flippedmerges(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  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 4, ptr %16) #3
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 0, ptr %17, align 4, !tbaa !9
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.qhT, ptr %18, i32 0, i32 29
  %20 = load i32, ptr %19, align 8, !tbaa !11
  %21 = icmp sge i32 %20, 4
  br i1 %21, label %22, label %27

22:                                               ; preds = %3
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.qhT, ptr %24, i32 0, i32 158
  %26 = load ptr, ptr %25, align 8, !tbaa !17
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %23, ptr noundef %26, i32 noundef 4024, ptr noundef @.str.79)
  br label %27

27:                                               ; preds = %22, %3
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %66

30:                                               ; preds = %27
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %31, ptr %7, align 8, !tbaa !5
  br label %32

32:                                               ; preds = %61, %30
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %40

35:                                               ; preds = %32
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.facetT, ptr %36, i32 0, i32 7
  %38 = load ptr, ptr %37, align 8, !tbaa !18
  %39 = icmp ne ptr %38, null
  br label %40

40:                                               ; preds = %35, %32
  %41 = phi i1 [ false, %32 ], [ %39, %35 ]
  br i1 %41, label %42, label %65

42:                                               ; preds = %40
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.facetT, ptr %43, i32 0, i32 15
  %45 = load i32, ptr %44, align 8
  %46 = lshr i32 %45, 16
  %47 = and i32 %46, 1
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %60

49:                                               ; preds = %42
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.facetT, ptr %50, i32 0, i32 15
  %52 = load i32, ptr %51, align 8
  %53 = lshr i32 %52, 11
  %54 = and i32 %53, 1
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %60, label %56

56:                                               ; preds = %49
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_appendmergeset(ptr noundef %57, ptr noundef %58, ptr noundef %59, i32 noundef 6, double noundef 0.000000e+00, double noundef 1.000000e+00)
  br label %60

60:                                               ; preds = %56, %49, %42
  br label %61

61:                                               ; preds = %60
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.facetT, ptr %62, i32 0, i32 7
  %64 = load ptr, ptr %63, align 8, !tbaa !18
  store ptr %64, ptr %7, align 8, !tbaa !5
  br label %32, !llvm.loop !20

65:                                               ; preds = %40
  br label %66

66:                                               ; preds = %65, %27
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = call ptr @qh_settemppop(ptr noundef %67)
  store ptr %68, ptr %15, align 8, !tbaa !5
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.qhT, ptr %70, i32 0, i32 221
  %72 = load ptr, ptr %71, align 8, !tbaa !22
  %73 = icmp ne ptr %69, %72
  br i1 %73, label %74, label %88

74:                                               ; preds = %66
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.qhT, ptr %76, i32 0, i32 158
  %78 = load ptr, ptr %77, align 8, !tbaa !17
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.qhT, ptr %80, i32 0, i32 221
  %82 = load ptr, ptr %81, align 8, !tbaa !22
  %83 = call i32 @qh_setsize(ptr noundef %79, ptr noundef %82)
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = load ptr, ptr %15, align 8, !tbaa !5
  %86 = call i32 @qh_setsize(ptr noundef %84, ptr noundef %85)
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %75, ptr noundef %78, i32 noundef 6392, ptr noundef @.str.80, i32 noundef %83, i32 noundef %86)
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %87, i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %88

88:                                               ; preds = %74, %66
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.qhT, ptr %90, i32 0, i32 162
  %92 = load i32, ptr %91, align 8, !tbaa !23
  %93 = call ptr @qh_settemp(ptr noundef %89, i32 noundef %92)
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.qhT, ptr %94, i32 0, i32 221
  store ptr %93, ptr %95, align 8, !tbaa !22
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  call void @qh_settemppush(ptr noundef %96, ptr noundef %97)
  store ptr null, ptr %13, align 8, !tbaa !5
  %98 = load ptr, ptr %15, align 8, !tbaa !5
  %99 = icmp ne ptr %98, null
  br i1 %99, label %100, label %211

100:                                              ; preds = %88
  %101 = load ptr, ptr %15, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.setT, ptr %101, i32 0, i32 1
  %103 = getelementptr inbounds [1 x %union.setelemT], ptr %102, i64 0, i64 0
  store ptr %103, ptr %14, align 8, !tbaa !5
  br label %104

104:                                              ; preds = %209, %124, %100
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  %106 = getelementptr inbounds ptr, ptr %105, i32 1
  store ptr %106, ptr %14, align 8, !tbaa !5
  %107 = load ptr, ptr %105, align 8, !tbaa !5
  store ptr %107, ptr %13, align 8, !tbaa !5
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %210

109:                                              ; preds = %104
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.mergeT, ptr %110, i32 0, i32 2
  %112 = load ptr, ptr %111, align 8, !tbaa !24
  store ptr %112, ptr %9, align 8, !tbaa !5
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.mergeT, ptr %113, i32 0, i32 8
  %115 = load i32, ptr %114, align 8, !tbaa !26
  %116 = icmp ne i32 %115, 6
  br i1 %116, label %124, label %117

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

124:                                              ; preds = %117, %109
  br label %104, !llvm.loop !27

125:                                              ; preds = %117
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.qhT, ptr %126, i32 0, i32 96
  %128 = load i32, ptr %127, align 8, !tbaa !28
  %129 = sub nsw i32 %128, 1
  %130 = load ptr, ptr %4, 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 216
  %134 = load i32, ptr %133, align 8, !tbaa !29
  %135 = icmp eq i32 %129, %134
  br i1 %135, label %136, label %145

136:                                              ; preds = %125
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.qhT, ptr %137, i32 0, i32 92
  %139 = load i32, ptr %138, align 8, !tbaa !30
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.qhT, ptr %140, i32 0, i32 29
  store i32 %139, ptr %141, align 8, !tbaa !11
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.qhT, ptr %142, i32 0, i32 257
  %144 = getelementptr inbounds %struct.qhmemT, ptr %143, i32 0, i32 14
  store i32 %139, ptr %144, align 8, !tbaa !31
  br label %145

145:                                              ; preds = %136, %125
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = call ptr @qh_findbestneighbor(ptr noundef %146, ptr noundef %147, ptr noundef %10, ptr noundef %11, ptr noundef %12)
  store ptr %148, ptr %8, align 8, !tbaa !5
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.qhT, ptr %149, i32 0, i32 29
  %151 = load i32, ptr %150, align 8, !tbaa !11
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %168

153:                                              ; preds = %145
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.qhT, ptr %155, i32 0, i32 158
  %157 = load ptr, ptr %156, align 8, !tbaa !17
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.facetT, ptr %158, i32 0, i32 14
  %160 = load i32, ptr %159, align 4, !tbaa !32
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.facetT, ptr %161, i32 0, i32 14
  %163 = load i32, ptr %162, align 4, !tbaa !32
  %164 = load double, ptr %10, align 8, !tbaa !33
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.qhT, ptr %165, i32 0, i32 190
  %167 = load i32, ptr %166, align 4, !tbaa !34
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %154, ptr noundef %157, i32 noundef 15, ptr noundef @.str.81, i32 noundef %160, i32 noundef %163, double noundef %164, i32 noundef %167)
  br label %168

168:                                              ; preds = %153, %145
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = load ptr, ptr %13, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.mergeT, ptr %172, i32 0, i32 8
  %174 = load i32, ptr %173, align 8, !tbaa !26
  call void @qh_mergefacet(ptr noundef %169, ptr noundef %170, ptr noundef %171, i32 noundef %174, ptr noundef %11, ptr noundef %12, i32 noundef 0)
  %175 = load i32, ptr %16, align 4, !tbaa !9
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %16, align 4, !tbaa !9
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.qhT, ptr %177, i32 0, i32 67
  %179 = load i32, ptr %178, align 8, !tbaa !35
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %209

181:                                              ; preds = %168
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.qhT, ptr %182, i32 0, i32 258
  %184 = getelementptr inbounds %struct.qhstatT, ptr %183, i32 0, i32 0
  %185 = getelementptr inbounds [249 x %union.intrealT], ptr %184, i64 0, i64 84
  %186 = load i32, ptr %185, align 8, !tbaa !29
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %185, align 8, !tbaa !29
  %188 = load double, ptr %10, align 8, !tbaa !33
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.qhT, ptr %189, i32 0, i32 258
  %191 = getelementptr inbounds %struct.qhstatT, ptr %190, i32 0, i32 0
  %192 = getelementptr inbounds [249 x %union.intrealT], ptr %191, i64 0, i64 86
  %193 = load double, ptr %192, align 8, !tbaa !29
  %194 = fadd double %193, %188
  store double %194, ptr %192, align 8, !tbaa !29
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.qhT, ptr %195, i32 0, i32 258
  %197 = getelementptr inbounds %struct.qhstatT, ptr %196, i32 0, i32 0
  %198 = getelementptr inbounds [249 x %union.intrealT], ptr %197, i64 0, i64 85
  %199 = load double, ptr %198, align 8, !tbaa !29
  %200 = load double, ptr %10, align 8, !tbaa !33
  %201 = fcmp olt double %199, %200
  br i1 %201, label %202, label %208

202:                                              ; preds = %181
  %203 = load double, ptr %10, align 8, !tbaa !33
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.qhT, ptr %204, i32 0, i32 258
  %206 = getelementptr inbounds %struct.qhstatT, ptr %205, i32 0, i32 0
  %207 = getelementptr inbounds [249 x %union.intrealT], ptr %206, i64 0, i64 85
  store double %203, ptr %207, align 8, !tbaa !29
  br label %208

208:                                              ; preds = %202, %181
  br label %209

209:                                              ; preds = %208, %168
  br label %104, !llvm.loop !27

210:                                              ; preds = %104
  br label %211

211:                                              ; preds = %210, %88
  store ptr null, ptr %13, align 8, !tbaa !5
  %212 = load ptr, ptr %15, align 8, !tbaa !5
  %213 = icmp ne ptr %212, null
  br i1 %213, label %214, label %251

214:                                              ; preds = %211
  %215 = load ptr, ptr %15, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.setT, ptr %215, i32 0, i32 1
  %217 = getelementptr inbounds [1 x %union.setelemT], ptr %216, i64 0, i64 0
  store ptr %217, ptr %14, align 8, !tbaa !5
  br label %218

218:                                              ; preds = %249, %214
  %219 = load ptr, ptr %14, align 8, !tbaa !5
  %220 = getelementptr inbounds ptr, ptr %219, i32 1
  store ptr %220, ptr %14, align 8, !tbaa !5
  %221 = load ptr, ptr %219, align 8, !tbaa !5
  store ptr %221, ptr %13, align 8, !tbaa !5
  %222 = icmp ne ptr %221, null
  br i1 %222, label %223, label %250

223:                                              ; preds = %218
  %224 = load ptr, ptr %13, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.mergeT, ptr %224, i32 0, i32 2
  %226 = load ptr, ptr %225, align 8, !tbaa !24
  %227 = getelementptr inbounds %struct.facetT, ptr %226, i32 0, i32 15
  %228 = load i32, ptr %227, align 8
  %229 = lshr i32 %228, 11
  %230 = and i32 %229, 1
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %241, label %232

232:                                              ; preds = %223
  %233 = load ptr, ptr %13, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.mergeT, ptr %233, i32 0, i32 3
  %235 = load ptr, ptr %234, align 8, !tbaa !36
  %236 = getelementptr inbounds %struct.facetT, ptr %235, i32 0, i32 15
  %237 = load i32, ptr %236, align 8
  %238 = lshr i32 %237, 11
  %239 = and i32 %238, 1
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %241, label %244

241:                                              ; preds = %232, %223
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = load ptr, ptr %13, align 8, !tbaa !5
  call void @qh_memfree(ptr noundef %242, ptr noundef %243, i32 noundef 72)
  br label %249

244:                                              ; preds = %232
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.qhT, ptr %246, i32 0, i32 221
  %248 = load ptr, ptr %13, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %245, ptr noundef %247, ptr noundef %248)
  br label %249

249:                                              ; preds = %244, %241
  br label %218, !llvm.loop !37

250:                                              ; preds = %218
  br label %251

251:                                              ; preds = %250, %211
  %252 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_settempfree(ptr noundef %252, ptr noundef %15)
  %253 = load ptr, ptr %4, align 8, !tbaa !5
  %254 = call i32 @qh_merge_degenredundant(ptr noundef %253)
  %255 = load i32, ptr %17, align 4, !tbaa !9
  %256 = add nsw i32 %255, %254
  store i32 %256, ptr %17, align 4, !tbaa !9
  %257 = load i32, ptr %16, align 4, !tbaa !9
  %258 = icmp ne i32 %257, 0
  br i1 %258, label %259, label %261

259:                                              ; preds = %251
  %260 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 1, ptr %260, align 4, !tbaa !9
  br label %261

261:                                              ; preds = %259, %251
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.qhT, ptr %262, i32 0, i32 29
  %264 = load i32, ptr %263, align 8, !tbaa !11
  %265 = icmp sge i32 %264, 1
  br i1 %265, label %266, label %273

266:                                              ; preds = %261
  %267 = load ptr, ptr %4, align 8, !tbaa !5
  %268 = load ptr, ptr %4, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.qhT, ptr %268, i32 0, i32 158
  %270 = load ptr, ptr %269, align 8, !tbaa !17
  %271 = load i32, ptr %16, align 4, !tbaa !9
  %272 = load i32, ptr %17, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %267, ptr noundef %270, i32 noundef 1010, ptr noundef @.str.82, i32 noundef %271, i32 noundef %272)
  br label %273

273:                                              ; preds = %266, %261
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

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

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

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

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

; 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_errexit(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

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

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

declare void @qh_settempfree(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

declare ptr @qh_settemppop(ptr noundef) #1

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.79 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.82 = 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: nounwind uwtable
define dso_local void @qh_flippedmerges(ptr noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #2 {
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  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
  %8 = getelementptr inbounds i8, ptr %0, i64 136
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = icmp sgt i32 %9, 3
  br i1 %10, label %11, label %14

11:                                               ; preds = %3
  %12 = getelementptr inbounds i8, ptr %0, i64 2424
  %13 = load ptr, ptr %12, align 8, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %13, i32 noundef 4024, ptr noundef nonnull @.str.79) #3
  br label %14

14:                                               ; preds = %11, %3
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.critedge, label %.preheader98

.preheader98:                                     ; preds = %14, %22
  %.071102 = phi ptr [ %23, %22 ], [ %1, %14 ]
  %15 = getelementptr inbounds i8, ptr %.071102, i64 56
  %16 = load ptr, ptr %15, align 8, !tbaa !16
  %.not80 = icmp eq ptr %16, null
  br i1 %.not80, label %.critedge, label %17

17:                                               ; preds = %.preheader98
  %18 = getelementptr inbounds i8, ptr %.071102, i64 112
  %19 = load i32, ptr %18, align 8
  %20 = and i32 %19, 67584
  %or.cond = icmp eq i32 %20, 65536
  br i1 %or.cond, label %21, label %22

21:                                               ; preds = %17
  tail call void @qh_appendmergeset(ptr noundef %0, ptr noundef nonnull %.071102, ptr noundef nonnull %.071102, i32 noundef 6, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %.pre = load ptr, ptr %15, align 8, !tbaa !16
  br label %22

22:                                               ; preds = %17, %21
  %23 = phi ptr [ %16, %17 ], [ %.pre, %21 ]
  %.not79 = icmp eq ptr %23, null
  br i1 %.not79, label %.critedge, label %.preheader98, !llvm.loop !18

.critedge:                                        ; preds = %.preheader98, %22, %14
  %24 = tail call ptr @qh_settemppop(ptr noundef %0) #3
  store ptr %24, ptr %7, align 8, !tbaa !20
  %25 = getelementptr inbounds i8, ptr %0, i64 2800
  %26 = load ptr, ptr %25, align 8, !tbaa !21
  %.not81 = icmp eq ptr %24, %26
  br i1 %.not81, label %32, label %27

27:                                               ; preds = %.critedge
  %28 = getelementptr inbounds i8, ptr %0, i64 2424
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  %30 = tail call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef %26) #3
  %31 = tail call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef %24) #3
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %29, i32 noundef 6392, ptr noundef nonnull @.str.80, i32 noundef %30, i32 noundef %31) #3
  tail call void @qh_errexit(ptr noundef nonnull %0, i32 noundef 5, ptr noundef null, ptr noundef null) #3
  br label %32

32:                                               ; preds = %27, %.critedge
  %33 = getelementptr inbounds i8, ptr %0, i64 2448
  %34 = load i32, ptr %33, align 8, !tbaa !22
  %35 = tail call ptr @qh_settemp(ptr noundef nonnull %0, i32 noundef %34) #3
  store ptr %35, ptr %25, align 8, !tbaa !21
  tail call void @qh_settemppush(ptr noundef nonnull %0, ptr noundef %24) #3
  %.not82 = icmp eq ptr %24, null
  br i1 %.not82, label %.thread, label %36

36:                                               ; preds = %32
  %37 = getelementptr inbounds i8, ptr %24, i64 8
  %38 = load ptr, ptr %37, align 8, !tbaa !20
  %.not83103105 = icmp eq ptr %38, null
  br i1 %.not83103105, label %.thread, label %.lr.ph.lr.ph

.lr.ph.lr.ph:                                     ; preds = %36
  %39 = getelementptr inbounds i8, ptr %24, i64 16
  %40 = getelementptr inbounds i8, ptr %0, i64 560
  %41 = getelementptr inbounds i8, ptr %0, i64 5152
  %42 = getelementptr inbounds i8, ptr %0, i64 536
  %43 = getelementptr inbounds i8, ptr %0, i64 3360
  %44 = getelementptr inbounds i8, ptr %0, i64 2424
  %45 = getelementptr inbounds i8, ptr %0, i64 2620
  %46 = getelementptr inbounds i8, ptr %0, i64 424
  %47 = getelementptr inbounds i8, ptr %0, i64 4096
  %48 = getelementptr inbounds i8, ptr %0, i64 4112
  %49 = getelementptr inbounds i8, ptr %0, i64 4104
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.lr.ph, %.outer
  %50 = phi ptr [ %38, %.lr.ph.lr.ph ], [ %99, %.outer ]
  %51 = phi ptr [ %39, %.lr.ph.lr.ph ], [ %98, %.outer ]
  %.0.ph106 = phi i32 [ 0, %.lr.ph.lr.ph ], [ %87, %.outer ]
  br label %52

52:                                               ; preds = %.lr.ph, %63
  %53 = phi ptr [ %50, %.lr.ph ], [ %65, %63 ]
  %54 = phi ptr [ %51, %.lr.ph ], [ %64, %63 ]
  %55 = getelementptr inbounds i8, ptr %53, i64 64
  %56 = load i32, ptr %55, align 8, !tbaa !23
  %.not89 = icmp eq i32 %56, 6
  br i1 %.not89, label %57, label %63

57:                                               ; preds = %52
  %58 = getelementptr inbounds i8, ptr %53, i64 16
  %59 = load ptr, ptr %58, align 8, !tbaa !25
  %60 = getelementptr inbounds i8, ptr %59, i64 112
  %61 = load i32, ptr %60, align 8
  %62 = and i32 %61, 2048
  %.not90 = icmp eq i32 %62, 0
  br i1 %.not90, label %66, label %63

63:                                               ; preds = %57, %52
  %64 = getelementptr inbounds i8, ptr %54, i64 8
  %65 = load ptr, ptr %54, align 8, !tbaa !20
  %.not83 = icmp eq ptr %65, null
  br i1 %.not83, label %.preheader, label %52, !llvm.loop !26

66:                                               ; preds = %57
  %67 = getelementptr inbounds i8, ptr %53, i64 64
  %68 = load i32, ptr %40, align 8, !tbaa !27
  %69 = add nsw i32 %68, -1
  %70 = load i32, ptr %41, align 8, !tbaa !28
  %71 = icmp eq i32 %69, %70
  br i1 %71, label %72, label %74

72:                                               ; preds = %66
  %73 = load i32, ptr %42, align 8, !tbaa !29
  store i32 %73, ptr %8, align 8, !tbaa !5
  store i32 %73, ptr %43, align 8, !tbaa !30
  br label %74

74:                                               ; preds = %72, %66
  %75 = call ptr @qh_findbestneighbor(ptr noundef nonnull %0, ptr noundef nonnull %59, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %76 = load i32, ptr %8, align 8, !tbaa !5
  %.not91 = icmp eq i32 %76, 0
  br i1 %.not91, label %85, label %77

77:                                               ; preds = %74
  %78 = load ptr, ptr %44, align 8, !tbaa !15
  %79 = getelementptr inbounds i8, ptr %59, i64 108
  %80 = load i32, ptr %79, align 4, !tbaa !31
  %81 = getelementptr inbounds i8, ptr %75, i64 108
  %82 = load i32, ptr %81, align 4, !tbaa !31
  %83 = load double, ptr %4, align 8, !tbaa !32
  %84 = load i32, ptr %45, align 4, !tbaa !33
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %78, i32 noundef 15, ptr noundef nonnull @.str.81, i32 noundef %80, i32 noundef %82, double noundef %83, i32 noundef %84) #3
  br label %85

85:                                               ; preds = %77, %74
  %86 = load i32, ptr %67, align 8, !tbaa !23
  call void @qh_mergefacet(ptr noundef nonnull %0, ptr noundef nonnull %59, ptr noundef %75, i32 noundef %86, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef 0)
  %87 = add nuw nsw i32 %.0.ph106, 1
  %88 = load i32, ptr %46, align 8, !tbaa !34
  %.not92 = icmp eq i32 %88, 0
  br i1 %.not92, label %.outer, label %89

89:                                               ; preds = %85
  %90 = load i32, ptr %47, align 8, !tbaa !28
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %47, align 8, !tbaa !28
  %92 = load double, ptr %4, align 8, !tbaa !32
  %93 = load double, ptr %48, align 8, !tbaa !28
  %94 = fadd double %92, %93
  store double %94, ptr %48, align 8, !tbaa !28
  %95 = load double, ptr %49, align 8, !tbaa !28
  %96 = fcmp olt double %95, %92
  br i1 %96, label %97, label %.outer

97:                                               ; preds = %89
  store double %92, ptr %49, align 8, !tbaa !28
  br label %.outer

.outer:                                           ; preds = %89, %97, %85
  %98 = getelementptr inbounds i8, ptr %54, i64 8
  %99 = load ptr, ptr %54, align 8, !tbaa !20
  %.not83103 = icmp eq ptr %99, null
  br i1 %.not83103, label %.preheader, label %.lr.ph, !llvm.loop !26

.preheader:                                       ; preds = %.outer, %63
  %.0.ph.lcssa.ph = phi i32 [ %.0.ph106, %63 ], [ %87, %.outer ]
  %.pr = load ptr, ptr %37, align 8, !tbaa !20
  %.not85109 = icmp eq ptr %.pr, null
  br i1 %.not85109, label %.thread, label %.lr.ph111

.lr.ph111:                                        ; preds = %.preheader, %114
  %100 = phi ptr [ %115, %114 ], [ %.pr, %.preheader ]
  %.170110 = phi ptr [ %.170, %114 ], [ %37, %.preheader ]
  %101 = getelementptr inbounds i8, ptr %100, i64 16
  %102 = load ptr, ptr %101, align 8, !tbaa !25
  %103 = getelementptr inbounds i8, ptr %102, i64 112
  %104 = load i32, ptr %103, align 8
  %105 = and i32 %104, 2048
  %.not87 = icmp eq i32 %105, 0
  br i1 %.not87, label %106, label %112

106:                                              ; preds = %.lr.ph111
  %107 = getelementptr inbounds i8, ptr %100, i64 24
  %108 = load ptr, ptr %107, align 8, !tbaa !35
  %109 = getelementptr inbounds i8, ptr %108, i64 112
  %110 = load i32, ptr %109, align 8
  %111 = and i32 %110, 2048
  %.not88 = icmp eq i32 %111, 0
  br i1 %.not88, label %113, label %112

112:                                              ; preds = %106, %.lr.ph111
  call void @qh_memfree(ptr noundef %0, ptr noundef nonnull %100, i32 noundef 72) #3
  br label %114

113:                                              ; preds = %106
  call void @qh_setappend(ptr noundef %0, ptr noundef nonnull %25, ptr noundef nonnull %100) #3
  br label %114

114:                                              ; preds = %113, %112
  %.170 = getelementptr inbounds i8, ptr %.170110, i64 8
  %115 = load ptr, ptr %.170, align 8, !tbaa !20
  %.not85 = icmp eq ptr %115, null
  br i1 %.not85, label %.thread, label %.lr.ph111, !llvm.loop !36

.thread:                                          ; preds = %114, %36, %.preheader, %32
  %.197 = phi i32 [ 0, %32 ], [ %.0.ph.lcssa.ph, %.preheader ], [ 0, %36 ], [ %.0.ph.lcssa.ph, %114 ]
  call void @qh_settempfree(ptr noundef %0, ptr noundef nonnull %7) #3
  %116 = call i32 @qh_merge_degenredundant(ptr noundef %0)
  %.not86 = icmp eq i32 %.197, 0
  br i1 %.not86, label %118, label %117

117:                                              ; preds = %.thread
  store i32 1, ptr %2, align 4, !tbaa !37
  br label %118

118:                                              ; preds = %117, %.thread
  %119 = load i32, ptr %8, align 8, !tbaa !5
  %120 = icmp sgt i32 %119, 0
  br i1 %120, label %121, label %124

121:                                              ; preds = %118
  %122 = getelementptr inbounds i8, ptr %0, i64 2424
  %123 = load ptr, ptr %122, align 8, !tbaa !15
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %123, i32 noundef 1010, ptr noundef nonnull @.str.82, i32 noundef %.197, i32 noundef %116) #3
  br label %124

124:                                              ; preds = %121, %118
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  ret void
}

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

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

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

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

; 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_errexit(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

declare void @qh_settempfree(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

declare ptr @qh_settemppop(ptr noundef) local_unnamed_addr #1

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

; 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, !7, i64 136}
!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 = !{!6, !11, i64 2424}
!16 = !{!17, !11, i64 56}
!17 = !{!"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}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!11, !11, i64 0}
!21 = !{!6, !11, i64 2800}
!22 = !{!6, !7, i64 2448}
!23 = !{!24, !7, i64 64}
!24 = !{!"mergeT", !10, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !7, i64 64}
!25 = !{!24, !11, i64 16}
!26 = distinct !{!26, !19}
!27 = !{!6, !7, i64 560}
!28 = !{!8, !8, i64 0}
!29 = !{!6, !7, i64 536}
!30 = !{!6, !7, i64 3360}
!31 = !{!17, !7, i64 108}
!32 = !{!10, !10, i64 0}
!33 = !{!6, !7, i64 2620}
!34 = !{!6, !7, i64 424}
!35 = !{!24, !11, i64 24}
!36 = distinct !{!36, !19}
!37 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass