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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.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.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.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 }

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.79 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [105 x i8], align 1
@qhmem = external global %struct.qhmemT, align 8
@.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, i32 noundef, ptr noundef, ...) #1

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

18:                                               ; preds = %2
  %19 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %19, i32 noundef 4024, ptr noundef @.str.79)
  br label %20

20:                                               ; preds = %18, %2
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %58

23:                                               ; preds = %20
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %24, ptr %5, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %53, %23
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %33

28:                                               ; preds = %25
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.facetT, ptr %29, i32 0, i32 7
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %32 = icmp ne ptr %31, null
  br label %33

33:                                               ; preds = %28, %25
  %34 = phi i1 [ false, %25 ], [ %32, %28 ]
  br i1 %34, label %35, label %57

35:                                               ; preds = %33
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.facetT, ptr %36, i32 0, i32 15
  %38 = load i32, ptr %37, align 8
  %39 = lshr i32 %38, 16
  %40 = and i32 %39, 1
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %52

42:                                               ; preds = %35
  %43 = load ptr, ptr %5, 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, 11
  %47 = and i32 %46, 1
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %52, label %49

49:                                               ; preds = %42
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_appendmergeset(ptr noundef %50, ptr noundef %51, i32 noundef 6, double noundef 0.000000e+00, double noundef 1.000000e+00)
  br label %52

52:                                               ; preds = %49, %42, %35
  br label %53

53:                                               ; preds = %52
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.facetT, ptr %54, i32 0, i32 7
  %56 = load ptr, ptr %55, align 8, !tbaa !16
  store ptr %56, ptr %5, align 8, !tbaa !5
  br label %25, !llvm.loop !18

57:                                               ; preds = %33
  br label %58

58:                                               ; preds = %57, %20
  %59 = call ptr @qh_settemppop()
  store ptr %59, ptr %13, align 8, !tbaa !5
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), align 8, !tbaa !20
  %62 = icmp ne ptr %60, %61
  br i1 %62, label %63, label %69

63:                                               ; preds = %58
  %64 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %65 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), align 8, !tbaa !20
  %66 = call i32 @qh_setsize(ptr noundef %65)
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = call i32 @qh_setsize(ptr noundef %67)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %64, i32 noundef 6392, ptr noundef @.str.80, i32 noundef %66, i32 noundef %68)
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %69

69:                                               ; preds = %63, %58
  %70 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 162), align 8, !tbaa !21
  %71 = call ptr @qh_settemp(i32 noundef %70)
  store ptr %71, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), align 8, !tbaa !20
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  call void @qh_settemppush(ptr noundef %72)
  store ptr null, ptr %11, align 8, !tbaa !5
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = icmp ne ptr %73, null
  br i1 %74, label %75, label %146

75:                                               ; preds = %69
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.setT, ptr %76, i32 0, i32 1
  %78 = getelementptr inbounds [1 x %union.setelemT], ptr %77, i64 0, i64 0
  store ptr %78, ptr %12, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %144, %99, %75
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = getelementptr inbounds ptr, ptr %80, i32 1
  store ptr %81, ptr %12, align 8, !tbaa !5
  %82 = load ptr, ptr %80, align 8, !tbaa !5
  store ptr %82, ptr %11, align 8, !tbaa !5
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %145

84:                                               ; preds = %79
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.mergeT, ptr %85, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !22
  store ptr %87, ptr %7, align 8, !tbaa !5
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.mergeT, ptr %88, i32 0, i32 8
  %90 = load i32, ptr %89, align 8, !tbaa !24
  %91 = icmp ne i32 %90, 6
  br i1 %91, label %99, label %92

92:                                               ; preds = %84
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.facetT, ptr %93, i32 0, i32 15
  %95 = load i32, ptr %94, align 8
  %96 = lshr i32 %95, 11
  %97 = and i32 %96, 1
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %100

99:                                               ; preds = %92, %84
  br label %79, !llvm.loop !25

100:                                              ; preds = %92
  %101 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 96), align 8, !tbaa !26
  %102 = sub nsw i32 %101, 1
  %103 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !27
  %104 = icmp eq i32 %102, %103
  br i1 %104, label %105, label %107

105:                                              ; preds = %100
  %106 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !28
  store i32 %106, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !11
  store i32 %106, ptr getelementptr inbounds (%struct.qhmemT, ptr @qhmem, i32 0, i32 14), align 8, !tbaa !29
  br label %107

107:                                              ; preds = %105, %100
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = call ptr @qh_findbestneighbor(ptr noundef %108, ptr noundef %8, ptr noundef %9, ptr noundef %10)
  store ptr %109, ptr %6, align 8, !tbaa !5
  %110 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !11
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %122

112:                                              ; preds = %107
  %113 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.facetT, ptr %114, i32 0, i32 14
  %116 = load i32, ptr %115, align 4, !tbaa !31
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.facetT, ptr %117, i32 0, i32 14
  %119 = load i32, ptr %118, align 4, !tbaa !31
  %120 = load double, ptr %8, align 8, !tbaa !32
  %121 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !33
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %113, i32 noundef 15, ptr noundef @.str.81, i32 noundef %116, i32 noundef %119, double noundef %120, i32 noundef %121)
  br label %122

122:                                              ; preds = %112, %107
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.mergeT, ptr %125, i32 0, i32 8
  %127 = load i32, ptr %126, align 8, !tbaa !24
  call void @qh_mergefacet(ptr noundef %123, ptr noundef %124, i32 noundef %127, ptr noundef %9, ptr noundef %10, i32 noundef 0)
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %14, align 4, !tbaa !9
  %130 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 67), align 8, !tbaa !34
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %144

132:                                              ; preds = %122
  %133 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 84), align 8, !tbaa !27
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 84), align 8, !tbaa !27
  %135 = load double, ptr %8, align 8, !tbaa !32
  %136 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 86), align 8, !tbaa !27
  %137 = fadd double %136, %135
  store double %137, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 86), align 8, !tbaa !27
  %138 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 85), align 8, !tbaa !27
  %139 = load double, ptr %8, align 8, !tbaa !32
  %140 = fcmp olt double %138, %139
  br i1 %140, label %141, label %143

141:                                              ; preds = %132
  %142 = load double, ptr %8, align 8, !tbaa !32
  store double %142, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 85), align 8, !tbaa !27
  br label %143

143:                                              ; preds = %141, %132
  br label %144

144:                                              ; preds = %143, %122
  br label %79, !llvm.loop !25

145:                                              ; preds = %79
  br label %146

146:                                              ; preds = %145, %69
  store ptr null, ptr %11, align 8, !tbaa !5
  %147 = load ptr, ptr %13, align 8, !tbaa !5
  %148 = icmp ne ptr %147, null
  br i1 %148, label %149, label %182

149:                                              ; preds = %146
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.setT, ptr %150, i32 0, i32 1
  %152 = getelementptr inbounds [1 x %union.setelemT], ptr %151, i64 0, i64 0
  store ptr %152, ptr %12, align 8, !tbaa !5
  br label %153

153:                                              ; preds = %180, %149
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  %155 = getelementptr inbounds ptr, ptr %154, i32 1
  store ptr %155, ptr %12, align 8, !tbaa !5
  %156 = load ptr, ptr %154, align 8, !tbaa !5
  store ptr %156, ptr %11, align 8, !tbaa !5
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %181

158:                                              ; preds = %153
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.mergeT, ptr %159, i32 0, i32 2
  %161 = load ptr, ptr %160, align 8, !tbaa !22
  %162 = getelementptr inbounds %struct.facetT, ptr %161, i32 0, i32 15
  %163 = load i32, ptr %162, align 8
  %164 = lshr i32 %163, 11
  %165 = and i32 %164, 1
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %176, label %167

167:                                              ; preds = %158
  %168 = load ptr, ptr %11, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.mergeT, ptr %168, i32 0, i32 3
  %170 = load ptr, ptr %169, align 8, !tbaa !35
  %171 = getelementptr inbounds %struct.facetT, ptr %170, i32 0, i32 15
  %172 = load i32, ptr %171, align 8
  %173 = lshr i32 %172, 11
  %174 = and i32 %173, 1
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %178

176:                                              ; preds = %167, %158
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_memfree(ptr noundef %177, i32 noundef 72)
  br label %180

178:                                              ; preds = %167
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), ptr noundef %179)
  br label %180

180:                                              ; preds = %178, %176
  br label %153, !llvm.loop !36

181:                                              ; preds = %153
  br label %182

182:                                              ; preds = %181, %146
  call void @qh_settempfree(ptr noundef %13)
  %183 = call i32 @qh_merge_degenredundant()
  %184 = load i32, ptr %15, align 4, !tbaa !9
  %185 = add nsw i32 %184, %183
  store i32 %185, ptr %15, align 4, !tbaa !9
  %186 = load i32, ptr %14, align 4, !tbaa !9
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %188, label %190

188:                                              ; preds = %182
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  store i32 1, ptr %189, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %188, %182
  %191 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !11
  %192 = icmp sge i32 %191, 1
  br i1 %192, label %193, label %197

193:                                              ; preds = %190
  %194 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %195 = load i32, ptr %14, align 4, !tbaa !9
  %196 = load i32, ptr %15, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %194, i32 noundef 1010, ptr noundef @.str.82, i32 noundef %195, i32 noundef %196)
  br label %197

197:                                              ; preds = %193, %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #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) #1

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

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

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

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

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

declare ptr @qh_settemp(i32 noundef) #1

declare void @qh_settempfree(ptr noundef) #1

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

declare ptr @qh_settemppop() #1

declare void @qh_settemppush(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_mergefacet(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, !6, i64 2984, !10, i64 2992}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !6, i64 2424}
!16 = !{!17, !6, i64 56}
!17 = !{!"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}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!12, !6, i64 2800}
!21 = !{!12, !10, i64 2448}
!22 = !{!23, !6, i64 16}
!23 = !{!"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}
!24 = !{!23, !10, i64 64}
!25 = distinct !{!25, !19}
!26 = !{!12, !10, i64 560}
!27 = !{!7, !7, i64 0}
!28 = !{!12, !10, i64 536}
!29 = !{!30, !10, i64 88}
!30 = !{!"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}
!31 = !{!17, !10, i64 108}
!32 = !{!13, !13, i64 0}
!33 = !{!12, !10, i64 2620}
!34 = !{!12, !10, i64 424}
!35 = !{!23, !6, i64 24}
!36 = distinct !{!36, !19}


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

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%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.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 }

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.79 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [105 x i8], align 1
@qhmem = external local_unnamed_addr global %struct.qhmemT, align 8
@.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, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_flippedmerges(ptr noundef %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #2 {
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  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
  %7 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %8 = icmp sgt i32 %7, 3
  br i1 %8, label %9, label %11

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

11:                                               ; preds = %9, %2
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %.critedge, label %.preheader58

.preheader58:                                     ; preds = %11, %19
  %.03162 = phi ptr [ %20, %19 ], [ %0, %11 ]
  %12 = getelementptr inbounds i8, ptr %.03162, i64 56
  %13 = load ptr, ptr %12, align 8, !tbaa !14
  %.not40 = icmp eq ptr %13, null
  br i1 %.not40, label %.critedge, label %14

14:                                               ; preds = %.preheader58
  %15 = getelementptr inbounds i8, ptr %.03162, i64 112
  %16 = load i32, ptr %15, align 8
  %17 = and i32 %16, 67584
  %or.cond = icmp eq i32 %17, 65536
  br i1 %or.cond, label %18, label %19

18:                                               ; preds = %14
  tail call void @qh_appendmergeset(ptr noundef nonnull %.03162, ptr noundef nonnull %.03162, i32 noundef 6, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %.pre = load ptr, ptr %12, align 8, !tbaa !14
  br label %19

19:                                               ; preds = %14, %18
  %20 = phi ptr [ %13, %14 ], [ %.pre, %18 ]
  %.not39 = icmp eq ptr %20, null
  br i1 %.not39, label %.critedge, label %.preheader58, !llvm.loop !16

.critedge:                                        ; preds = %.preheader58, %19, %11
  %21 = tail call ptr @qh_settemppop() #3
  store ptr %21, ptr %6, align 8, !tbaa !18
  %22 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2800), align 8, !tbaa !19
  %.not41 = icmp eq ptr %21, %22
  br i1 %.not41, label %27, label %23

23:                                               ; preds = %.critedge
  %24 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %25 = tail call i32 @qh_setsize(ptr noundef %22) #3
  %26 = tail call i32 @qh_setsize(ptr noundef %21) #3
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %24, i32 noundef 6392, ptr noundef nonnull @.str.80, i32 noundef %25, i32 noundef %26) #3
  tail call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null) #3
  br label %27

27:                                               ; preds = %23, %.critedge
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2448), align 8, !tbaa !20
  %29 = tail call ptr @qh_settemp(i32 noundef %28) #3
  store ptr %29, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2800), align 8, !tbaa !19
  tail call void @qh_settemppush(ptr noundef %21) #3
  %.not42 = icmp eq ptr %21, null
  br i1 %.not42, label %.thread, label %30

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %21, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !18
  %.not436365 = icmp eq ptr %32, null
  br i1 %.not436365, label %.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %30
  %33 = getelementptr inbounds i8, ptr %21, i64 16
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.outer
  %34 = phi ptr [ %83, %.outer ], [ %32, %.lr.ph.preheader ]
  %35 = phi ptr [ %82, %.outer ], [ %33, %.lr.ph.preheader ]
  %.0.ph66 = phi i32 [ %71, %.outer ], [ 0, %.lr.ph.preheader ]
  br label %36

36:                                               ; preds = %.lr.ph, %47
  %37 = phi ptr [ %34, %.lr.ph ], [ %49, %47 ]
  %38 = phi ptr [ %35, %.lr.ph ], [ %48, %47 ]
  %39 = getelementptr inbounds i8, ptr %37, i64 64
  %40 = load i32, ptr %39, align 8, !tbaa !21
  %.not49 = icmp eq i32 %40, 6
  br i1 %.not49, label %41, label %47

41:                                               ; preds = %36
  %42 = getelementptr inbounds i8, ptr %37, i64 16
  %43 = load ptr, ptr %42, align 8, !tbaa !23
  %44 = getelementptr inbounds i8, ptr %43, i64 112
  %45 = load i32, ptr %44, align 8
  %46 = and i32 %45, 2048
  %.not50 = icmp eq i32 %46, 0
  br i1 %.not50, label %50, label %47

47:                                               ; preds = %41, %36
  %48 = getelementptr inbounds i8, ptr %38, i64 8
  %49 = load ptr, ptr %38, align 8, !tbaa !18
  %.not43 = icmp eq ptr %49, null
  br i1 %.not43, label %.preheader, label %36, !llvm.loop !24

50:                                               ; preds = %41
  %51 = getelementptr inbounds i8, ptr %37, i64 64
  %52 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 560), align 8, !tbaa !25
  %53 = add nsw i32 %52, -1
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !26
  %55 = icmp eq i32 %53, %54
  br i1 %55, label %56, label %58

56:                                               ; preds = %50
  %57 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 536), align 8, !tbaa !27
  store i32 %57, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  store i32 %57, ptr getelementptr inbounds (i8, ptr @qhmem, i64 88), align 8, !tbaa !28
  br label %58

58:                                               ; preds = %56, %50
  %59 = call ptr @qh_findbestneighbor(ptr noundef nonnull %43, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %.not51 = icmp eq i32 %60, 0
  br i1 %.not51, label %69, label %61

61:                                               ; preds = %58
  %62 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %63 = getelementptr inbounds i8, ptr %43, i64 108
  %64 = load i32, ptr %63, align 4, !tbaa !30
  %65 = getelementptr inbounds i8, ptr %59, i64 108
  %66 = load i32, ptr %65, align 4, !tbaa !30
  %67 = load double, ptr %3, align 8, !tbaa !31
  %68 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !32
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %62, i32 noundef 15, ptr noundef nonnull @.str.81, i32 noundef %64, i32 noundef %66, double noundef %67, i32 noundef %68) #3
  br label %69

69:                                               ; preds = %61, %58
  %70 = load i32, ptr %51, align 8, !tbaa !21
  call void @qh_mergefacet(ptr noundef nonnull %43, ptr noundef %59, i32 noundef %70, ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef 0)
  %71 = add nuw nsw i32 %.0.ph66, 1
  %72 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 424), align 8, !tbaa !33
  %.not52 = icmp eq i32 %72, 0
  br i1 %.not52, label %.outer, label %73

73:                                               ; preds = %69
  %74 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 672), align 8, !tbaa !26
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 672), align 8, !tbaa !26
  %76 = load double, ptr %3, align 8, !tbaa !31
  %77 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 688), align 8, !tbaa !26
  %78 = fadd double %76, %77
  store double %78, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 688), align 8, !tbaa !26
  %79 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 680), align 8, !tbaa !26
  %80 = fcmp olt double %79, %76
  br i1 %80, label %81, label %.outer

81:                                               ; preds = %73
  store double %76, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 680), align 8, !tbaa !26
  br label %.outer

.outer:                                           ; preds = %73, %81, %69
  %82 = getelementptr inbounds i8, ptr %38, i64 8
  %83 = load ptr, ptr %38, align 8, !tbaa !18
  %.not4363 = icmp eq ptr %83, null
  br i1 %.not4363, label %.preheader, label %.lr.ph, !llvm.loop !24

.preheader:                                       ; preds = %.outer, %47
  %.0.ph.lcssa.ph = phi i32 [ %.0.ph66, %47 ], [ %71, %.outer ]
  %.pr = load ptr, ptr %31, align 8, !tbaa !18
  %.not4569 = icmp eq ptr %.pr, null
  br i1 %.not4569, label %.thread, label %.lr.ph71

.lr.ph71:                                         ; preds = %.preheader, %98
  %84 = phi ptr [ %99, %98 ], [ %.pr, %.preheader ]
  %.13070 = phi ptr [ %.130, %98 ], [ %31, %.preheader ]
  %85 = getelementptr inbounds i8, ptr %84, i64 16
  %86 = load ptr, ptr %85, align 8, !tbaa !23
  %87 = getelementptr inbounds i8, ptr %86, i64 112
  %88 = load i32, ptr %87, align 8
  %89 = and i32 %88, 2048
  %.not47 = icmp eq i32 %89, 0
  br i1 %.not47, label %90, label %96

90:                                               ; preds = %.lr.ph71
  %91 = getelementptr inbounds i8, ptr %84, i64 24
  %92 = load ptr, ptr %91, align 8, !tbaa !34
  %93 = getelementptr inbounds i8, ptr %92, i64 112
  %94 = load i32, ptr %93, align 8
  %95 = and i32 %94, 2048
  %.not48 = icmp eq i32 %95, 0
  br i1 %.not48, label %97, label %96

96:                                               ; preds = %90, %.lr.ph71
  call void @qh_memfree(ptr noundef nonnull %84, i32 noundef 72) #3
  br label %98

97:                                               ; preds = %90
  call void @qh_setappend(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 2800), ptr noundef nonnull %84) #3
  br label %98

98:                                               ; preds = %97, %96
  %.130 = getelementptr inbounds i8, ptr %.13070, i64 8
  %99 = load ptr, ptr %.130, align 8, !tbaa !18
  %.not45 = icmp eq ptr %99, null
  br i1 %.not45, label %.thread, label %.lr.ph71, !llvm.loop !35

.thread:                                          ; preds = %98, %30, %.preheader, %27
  %.157 = phi i32 [ 0, %27 ], [ %.0.ph.lcssa.ph, %.preheader ], [ 0, %30 ], [ %.0.ph.lcssa.ph, %98 ]
  call void @qh_settempfree(ptr noundef nonnull %6) #3
  %100 = call i32 @qh_merge_degenredundant()
  %.not46 = icmp eq i32 %.157, 0
  br i1 %.not46, label %102, label %101

101:                                              ; preds = %.thread
  store i32 1, ptr %1, align 4, !tbaa !36
  br label %102

102:                                              ; preds = %101, %.thread
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %104 = icmp sgt i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %102
  %106 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %106, i32 noundef 1010, ptr noundef nonnull @.str.82, i32 noundef %.157, i32 noundef %100) #3
  br label %107

107:                                              ; preds = %105, %102
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #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) local_unnamed_addr #1

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

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

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

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

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

declare ptr @qh_settemp(i32 noundef) local_unnamed_addr #1

declare void @qh_settempfree(ptr noundef) local_unnamed_addr #1

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

declare ptr @qh_settemppop() local_unnamed_addr #1

declare void @qh_settemppush(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_mergefacet(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, !11, i64 2984, !7, i64 2992}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !11, i64 2424}
!14 = !{!15, !11, i64 56}
!15 = !{!"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}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!11, !11, i64 0}
!19 = !{!6, !11, i64 2800}
!20 = !{!6, !7, i64 2448}
!21 = !{!22, !7, i64 64}
!22 = !{!"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}
!23 = !{!22, !11, i64 16}
!24 = distinct !{!24, !17}
!25 = !{!6, !7, i64 560}
!26 = !{!8, !8, i64 0}
!27 = !{!6, !7, i64 536}
!28 = !{!29, !7, i64 88}
!29 = !{!"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}
!30 = !{!15, !7, i64 108}
!31 = !{!10, !10, i64 0}
!32 = !{!6, !7, i64 2620}
!33 = !{!6, !7, i64 424}
!34 = !{!22, !11, i64 24}
!35 = distinct !{!35, !17}
!36 = !{!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