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

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@qhmem = external global %struct.qhmemT, align 8
@.str.124 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [89 x i8], align 1

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

declare void @qh_fprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1

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

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

20:                                               ; preds = %3
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = icmp ugt i32 %21, 4
  br i1 %22, label %23, label %34

23:                                               ; preds = %20, %3
  %24 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !11
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.facetT, ptr %25, i32 0, i32 14
  %27 = load i32, ptr %26, align 4, !tbaa !15
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.facetT, ptr %28, i32 0, i32 14
  %30 = load i32, ptr %29, align 4, !tbaa !15
  %31 = load i32, ptr %6, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %24, i32 noundef 6398, ptr noundef @.str.124, i32 noundef %27, i32 noundef %30, i32 noundef %31)
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 5, ptr noundef %32, ptr noundef %33)
  br label %34

34:                                               ; preds = %23, %20
  %35 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 96), align 8, !tbaa !17
  %36 = sub nsw i32 %35, 1
  %37 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !18
  %38 = icmp eq i32 %36, %37
  br i1 %38, label %39, label %41

39:                                               ; preds = %34
  %40 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !19
  store i32 %40, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !20
  store i32 %40, ptr getelementptr inbounds (%struct.qhmemT, ptr @qhmem, i32 0, i32 14), align 8, !tbaa !21
  br label %41

41:                                               ; preds = %39, %34
  %42 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !20
  %43 = icmp sge i32 %42, 3
  br i1 %43, label %44, label %55

44:                                               ; preds = %41
  %45 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !11
  %46 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !18
  %47 = add nsw i32 %46, 1
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.facetT, ptr %48, i32 0, i32 14
  %50 = load i32, ptr %49, align 4, !tbaa !15
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.facetT, ptr %51, i32 0, i32 14
  %53 = load i32, ptr %52, align 4, !tbaa !15
  %54 = load i32, ptr %6, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %45, i32 noundef 3003, ptr noundef @.str.125, i32 noundef %47, i32 noundef %50, i32 noundef %53, i32 noundef %54)
  br label %55

55:                                               ; preds = %44, %41
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.facetT, ptr %56, i32 0, i32 15
  %58 = load i32, ptr %57, align 8
  %59 = lshr i32 %58, 10
  %60 = and i32 %59, 1
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %66, label %62

62:                                               ; preds = %55
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %63, ptr %7, align 8, !tbaa !5
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %64, ptr %5, align 8, !tbaa !5
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %65, ptr %4, align 8, !tbaa !5
  br label %68

66:                                               ; preds = %55
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %67, ptr %7, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %66, %62
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = call ptr @qh_findbestneighbor(ptr noundef %69, ptr noundef %12, ptr noundef %14, ptr noundef %16)
  store ptr %70, ptr %8, align 8, !tbaa !5
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = call ptr @qh_findbestneighbor(ptr noundef %71, ptr noundef %13, ptr noundef %15, ptr noundef %17)
  store ptr %72, ptr %9, align 8, !tbaa !5
  %73 = load double, ptr %12, align 8, !tbaa !23
  %74 = load double, ptr %13, align 8, !tbaa !23
  %75 = fcmp olt double %73, %74
  br i1 %75, label %76, label %79

76:                                               ; preds = %68
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %77, ptr %10, align 8, !tbaa !5
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %78, ptr %11, align 8, !tbaa !5
  br label %137

79:                                               ; preds = %68
  %80 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 9), align 8, !tbaa !24
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %130

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

89:                                               ; preds = %82
  %90 = load double, ptr %14, align 8, !tbaa !23
  %91 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 35), align 8, !tbaa !25
  %92 = fneg double %91
  %93 = fcmp oge double %90, %92
  br i1 %93, label %94, label %98

94:                                               ; preds = %89
  %95 = load double, ptr %16, align 8, !tbaa !23
  %96 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 199), align 8, !tbaa !26
  %97 = fcmp ole double %95, %96
  br i1 %97, label %103, label %98

98:                                               ; preds = %94, %89
  %99 = load double, ptr %12, align 8, !tbaa !23
  %100 = fmul double %99, 1.500000e+00
  %101 = load double, ptr %13, align 8, !tbaa !23
  %102 = fcmp olt double %100, %101
  br i1 %102, label %103, label %130

103:                                              ; preds = %98, %94
  %104 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 11), align 8, !tbaa !18
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 11), align 8, !tbaa !18
  %106 = load double, ptr %12, align 8, !tbaa !23
  %107 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 13), align 8, !tbaa !18
  %108 = fadd double %107, %106
  store double %108, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 13), align 8, !tbaa !18
  %109 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 12), align 8, !tbaa !18
  %110 = load double, ptr %12, align 8, !tbaa !23
  %111 = fcmp olt double %109, %110
  br i1 %111, label %112, label %114

112:                                              ; preds = %103
  %113 = load double, ptr %12, align 8, !tbaa !23
  store double %113, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 12), align 8, !tbaa !18
  br label %114

114:                                              ; preds = %112, %103
  %115 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !20
  %116 = icmp sge i32 %115, 2
  br i1 %116, label %117, label %127

117:                                              ; preds = %114
  %118 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !11
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.facetT, ptr %119, i32 0, i32 14
  %121 = load i32, ptr %120, align 4, !tbaa !15
  %122 = load double, ptr %13, align 8, !tbaa !23
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.facetT, ptr %123, i32 0, i32 14
  %125 = load i32, ptr %124, align 4, !tbaa !15
  %126 = load double, ptr %13, align 8, !tbaa !23
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %118, i32 noundef 2029, ptr noundef @.str.126, i32 noundef %121, double noundef %122, i32 noundef %125, double noundef %126)
  br label %127

127:                                              ; preds = %117, %114
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %128, ptr %10, align 8, !tbaa !5
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %129, ptr %11, align 8, !tbaa !5
  br label %136

130:                                              ; preds = %98, %82, %79
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %131, ptr %10, align 8, !tbaa !5
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %132, ptr %11, align 8, !tbaa !5
  %133 = load double, ptr %13, align 8, !tbaa !23
  store double %133, ptr %12, align 8, !tbaa !23
  %134 = load double, ptr %15, align 8, !tbaa !23
  store double %134, ptr %14, align 8, !tbaa !23
  %135 = load double, ptr %17, align 8, !tbaa !23
  store double %135, ptr %16, align 8, !tbaa !23
  br label %136

136:                                              ; preds = %130, %127
  br label %137

137:                                              ; preds = %136, %76
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = load i32, ptr %6, align 4, !tbaa !9
  call void @qh_mergefacet(ptr noundef %138, ptr noundef %139, i32 noundef %140, ptr noundef %14, ptr noundef %16, i32 noundef 0)
  %141 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 67), align 8, !tbaa !27
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %203

143:                                              ; preds = %137
  %144 = load i32, ptr %6, align 4, !tbaa !9
  %145 = icmp eq i32 %144, 2
  br i1 %145, label %146, label %158

146:                                              ; preds = %143
  %147 = load i32, ptr @qh_qhstat, align 8, !tbaa !18
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr @qh_qhstat, align 8, !tbaa !18
  %149 = load double, ptr %12, align 8, !tbaa !23
  %150 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 2), align 8, !tbaa !18
  %151 = fadd double %150, %149
  store double %151, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 2), align 8, !tbaa !18
  %152 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 1), align 8, !tbaa !18
  %153 = load double, ptr %12, align 8, !tbaa !23
  %154 = fcmp olt double %152, %153
  br i1 %154, label %155, label %157

155:                                              ; preds = %146
  %156 = load double, ptr %12, align 8, !tbaa !23
  store double %156, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 1), align 8, !tbaa !18
  br label %157

157:                                              ; preds = %155, %146
  br label %202

158:                                              ; preds = %143
  %159 = load i32, ptr %6, align 4, !tbaa !9
  %160 = icmp eq i32 %159, 3
  br i1 %160, label %161, label %173

161:                                              ; preds = %158
  %162 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 24), align 8, !tbaa !18
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 24), align 8, !tbaa !18
  %164 = load double, ptr %12, align 8, !tbaa !23
  %165 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 26), align 8, !tbaa !18
  %166 = fadd double %165, %164
  store double %166, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 26), align 8, !tbaa !18
  %167 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 25), align 8, !tbaa !18
  %168 = load double, ptr %12, align 8, !tbaa !23
  %169 = fcmp olt double %167, %168
  br i1 %169, label %170, label %172

170:                                              ; preds = %161
  %171 = load double, ptr %12, align 8, !tbaa !23
  store double %171, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 25), align 8, !tbaa !18
  br label %172

172:                                              ; preds = %170, %161
  br label %201

173:                                              ; preds = %158
  %174 = load i32, ptr %6, align 4, !tbaa !9
  %175 = icmp eq i32 %174, 4
  br i1 %175, label %176, label %188

176:                                              ; preds = %173
  %177 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 27), align 8, !tbaa !18
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 27), align 8, !tbaa !18
  %179 = load double, ptr %12, align 8, !tbaa !23
  %180 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 29), align 8, !tbaa !18
  %181 = fadd double %180, %179
  store double %181, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 29), align 8, !tbaa !18
  %182 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 28), align 8, !tbaa !18
  %183 = load double, ptr %12, align 8, !tbaa !23
  %184 = fcmp olt double %182, %183
  br i1 %184, label %185, label %187

185:                                              ; preds = %176
  %186 = load double, ptr %12, align 8, !tbaa !23
  store double %186, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 28), align 8, !tbaa !18
  br label %187

187:                                              ; preds = %185, %176
  br label %200

188:                                              ; preds = %173
  %189 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 33), align 8, !tbaa !18
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 33), align 8, !tbaa !18
  %191 = load double, ptr %12, align 8, !tbaa !23
  %192 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 35), align 8, !tbaa !18
  %193 = fadd double %192, %191
  store double %193, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 35), align 8, !tbaa !18
  %194 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 34), align 8, !tbaa !18
  %195 = load double, ptr %12, align 8, !tbaa !23
  %196 = fcmp olt double %194, %195
  br i1 %196, label %197, label %199

197:                                              ; preds = %188
  %198 = load double, ptr %12, align 8, !tbaa !23
  store double %198, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 34), align 8, !tbaa !18
  br label %199

199:                                              ; preds = %197, %188
  br label %200

200:                                              ; preds = %199, %187
  br label %201

201:                                              ; preds = %200, %172
  br label %202

202:                                              ; preds = %201, %157
  br label %203

203:                                              ; preds = %202, %137
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

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

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

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


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

%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 local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@qhmem = external local_unnamed_addr global %struct.qhmemT, align 8
@.str.124 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [89 x i8], align 1

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

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

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

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

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

17:                                               ; preds = %3, %11
  %18 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 560), align 8, !tbaa !15
  %19 = add nsw i32 %18, -1
  %20 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !16
  %21 = icmp eq i32 %19, %20
  br i1 %21, label %22, label %thread-pre-split

22:                                               ; preds = %17
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 536), align 8, !tbaa !17
  store i32 %23, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !18
  store i32 %23, ptr getelementptr inbounds (i8, ptr @qhmem, i64 88), align 8, !tbaa !19
  br label %24

thread-pre-split:                                 ; preds = %17
  %.pr = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !18
  br label %24

24:                                               ; preds = %thread-pre-split, %22
  %25 = phi i32 [ %.pr, %thread-pre-split ], [ %23, %22 ]
  %26 = icmp sgt i32 %25, 2
  br i1 %26, label %27, label %34

27:                                               ; preds = %24
  %28 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !5
  %29 = add nsw i32 %20, 1
  %30 = getelementptr inbounds i8, ptr %0, i64 108
  %31 = load i32, ptr %30, align 4, !tbaa !13
  %32 = getelementptr inbounds i8, ptr %1, i64 108
  %33 = load i32, ptr %32, align 4, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %28, i32 noundef 3003, ptr noundef nonnull @.str.125, i32 noundef %29, i32 noundef %31, i32 noundef %33, i32 noundef %2) #3
  br label %34

34:                                               ; preds = %27, %24
  %35 = getelementptr inbounds i8, ptr %0, i64 112
  %36 = load i32, ptr %35, align 8
  %37 = and i32 %36, 1024
  %.not = icmp eq i32 %37, 0
  %. = select i1 %.not, ptr %0, ptr %1
  %.45 = select i1 %.not, ptr %1, ptr %0
  %38 = call ptr @qh_findbestneighbor(ptr noundef %.45, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %8)
  %39 = call ptr @qh_findbestneighbor(ptr noundef %., ptr noundef nonnull %5, ptr noundef nonnull %7, ptr noundef nonnull %9)
  %40 = load double, ptr %4, align 8, !tbaa !21
  %41 = load double, ptr %5, align 8, !tbaa !21
  %42 = fcmp olt double %40, %41
  br i1 %42, label %81, label %43

43:                                               ; preds = %34
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 40), align 8, !tbaa !22
  %.not42 = icmp eq i32 %44, 0
  br i1 %.not42, label %78, label %45

45:                                               ; preds = %43
  %46 = getelementptr inbounds i8, ptr %., i64 112
  %47 = load i32, ptr %46, align 8
  %48 = and i32 %47, 1024
  %.not43 = icmp eq i32 %48, 0
  br i1 %.not43, label %49, label %78

49:                                               ; preds = %45
  %50 = load double, ptr %6, align 8, !tbaa !21
  %51 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 168), align 8, !tbaa !23
  %52 = fneg double %51
  %53 = fcmp ult double %50, %52
  br i1 %53, label %60, label %54

54:                                               ; preds = %49
  %55 = load double, ptr %8, align 8, !tbaa !21
  %56 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2680), align 8, !tbaa !24
  %57 = fcmp ole double %55, %56
  %58 = fmul double %40, 1.500000e+00
  %59 = fcmp olt double %58, %41
  %or.cond47 = or i1 %59, %57
  br i1 %or.cond47, label %61, label %78

60:                                               ; preds = %49
  %.old = fmul double %40, 1.500000e+00
  %.old46 = fcmp olt double %.old, %41
  br i1 %.old46, label %61, label %78

61:                                               ; preds = %60, %54
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 88), align 8, !tbaa !16
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 88), align 8, !tbaa !16
  %64 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 104), align 8, !tbaa !16
  %65 = fadd double %40, %64
  store double %65, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 104), align 8, !tbaa !16
  %66 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 96), align 8, !tbaa !16
  %67 = fcmp olt double %66, %40
  br i1 %67, label %68, label %69

68:                                               ; preds = %61
  store double %40, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 96), align 8, !tbaa !16
  br label %69

69:                                               ; preds = %68, %61
  %70 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !18
  %71 = icmp sgt i32 %70, 1
  br i1 %71, label %72, label %81

72:                                               ; preds = %69
  %73 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %., i64 108
  %75 = load i32, ptr %74, align 4, !tbaa !13
  %76 = getelementptr inbounds i8, ptr %.45, i64 108
  %77 = load i32, ptr %76, align 4, !tbaa !13
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %73, i32 noundef 2029, ptr noundef nonnull @.str.126, i32 noundef %75, double noundef %41, i32 noundef %77, double noundef %41) #3
  br label %81

78:                                               ; preds = %54, %60, %45, %43
  store double %41, ptr %4, align 8, !tbaa !21
  %79 = load double, ptr %7, align 8, !tbaa !21
  store double %79, ptr %6, align 8, !tbaa !21
  %80 = load double, ptr %9, align 8, !tbaa !21
  store double %80, ptr %8, align 8, !tbaa !21
  br label %81

81:                                               ; preds = %69, %72, %34, %78
  %.032 = phi ptr [ %., %78 ], [ %.45, %34 ], [ %.45, %72 ], [ %.45, %69 ]
  %.0 = phi ptr [ %39, %78 ], [ %38, %34 ], [ %38, %72 ], [ %38, %69 ]
  call void @qh_mergefacet(ptr noundef %.032, ptr noundef %.0, i32 noundef %2, ptr noundef nonnull %6, ptr noundef nonnull %8, i32 noundef 0)
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 424), align 8, !tbaa !25
  %.not44 = icmp eq i32 %82, 0
  br i1 %.not44, label %120, label %83

83:                                               ; preds = %81
  switch i32 %2, label %111 [
    i32 2, label %84
    i32 3, label %93
    i32 4, label %102
  ]

84:                                               ; preds = %83
  %85 = load i32, ptr @qh_qhstat, align 8, !tbaa !16
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr @qh_qhstat, align 8, !tbaa !16
  %87 = load double, ptr %4, align 8, !tbaa !21
  %88 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 16), align 8, !tbaa !16
  %89 = fadd double %87, %88
  store double %89, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 16), align 8, !tbaa !16
  %90 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 8), align 8, !tbaa !16
  %91 = fcmp olt double %90, %87
  br i1 %91, label %92, label %120

92:                                               ; preds = %84
  store double %87, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 8), align 8, !tbaa !16
  br label %120

93:                                               ; preds = %83
  %94 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 192), align 8, !tbaa !16
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 192), align 8, !tbaa !16
  %96 = load double, ptr %4, align 8, !tbaa !21
  %97 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 208), align 8, !tbaa !16
  %98 = fadd double %96, %97
  store double %98, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 208), align 8, !tbaa !16
  %99 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 200), align 8, !tbaa !16
  %100 = fcmp olt double %99, %96
  br i1 %100, label %101, label %120

101:                                              ; preds = %93
  store double %96, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 200), align 8, !tbaa !16
  br label %120

102:                                              ; preds = %83
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 216), align 8, !tbaa !16
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 216), align 8, !tbaa !16
  %105 = load double, ptr %4, align 8, !tbaa !21
  %106 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 232), align 8, !tbaa !16
  %107 = fadd double %105, %106
  store double %107, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 232), align 8, !tbaa !16
  %108 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 224), align 8, !tbaa !16
  %109 = fcmp olt double %108, %105
  br i1 %109, label %110, label %120

110:                                              ; preds = %102
  store double %105, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 224), align 8, !tbaa !16
  br label %120

111:                                              ; preds = %83
  %112 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 264), align 8, !tbaa !16
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 264), align 8, !tbaa !16
  %114 = load double, ptr %4, align 8, !tbaa !21
  %115 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 280), align 8, !tbaa !16
  %116 = fadd double %114, %115
  store double %116, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 280), align 8, !tbaa !16
  %117 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 272), align 8, !tbaa !16
  %118 = fcmp olt double %117, %114
  br i1 %118, label %119, label %120

119:                                              ; preds = %111
  store double %114, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 272), align 8, !tbaa !16
  br label %120

120:                                              ; preds = %92, %84, %110, %102, %119, %111, %93, %101, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  ret void
}

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

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

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


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