; 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.mergeT = type { double, double, ptr, ptr, ptr, ptr, ptr, ptr, 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.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@qhmem = external global %struct.qhmemT, align 8
@.str.118 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [80 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

declare i32 @qh_setsize(ptr noundef) #1

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

17:                                               ; preds = %0
  %18 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %19 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 222), align 8, !tbaa !15
  %20 = call i32 @qh_setsize(ptr noundef %19)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %18, i32 noundef 2095, ptr noundef @.str.118, i32 noundef %20)
  br label %21

21:                                               ; preds = %17, %0
  %22 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 162), align 8, !tbaa !16
  %23 = call ptr @qh_settemp(i32 noundef %22)
  store ptr %23, ptr %14, align 8, !tbaa !17
  br label %24

24:                                               ; preds = %229, %95, %45, %21
  %25 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 222), align 8, !tbaa !15
  %26 = call ptr @qh_setdellast(ptr noundef %25)
  store ptr %26, ptr %2, align 8, !tbaa !17
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %230

28:                                               ; preds = %24
  %29 = load ptr, ptr %2, align 8, !tbaa !17
  %30 = getelementptr inbounds %struct.mergeT, ptr %29, i32 0, i32 2
  %31 = load ptr, ptr %30, align 8, !tbaa !18
  store ptr %31, ptr %4, align 8, !tbaa !17
  %32 = load ptr, ptr %2, align 8, !tbaa !17
  %33 = getelementptr inbounds %struct.mergeT, ptr %32, i32 0, i32 3
  %34 = load ptr, ptr %33, align 8, !tbaa !20
  store ptr %34, ptr %5, align 8, !tbaa !17
  %35 = load ptr, ptr %2, align 8, !tbaa !17
  %36 = getelementptr inbounds %struct.mergeT, ptr %35, i32 0, i32 8
  %37 = load i32, ptr %36, align 8, !tbaa !21
  store i32 %37, ptr %13, align 4, !tbaa !5
  %38 = load ptr, ptr %2, align 8, !tbaa !17
  call void @qh_memfree(ptr noundef %38, i32 noundef 72)
  %39 = load ptr, ptr %4, align 8, !tbaa !17
  %40 = getelementptr inbounds %struct.facetT, ptr %39, i32 0, i32 15
  %41 = load i32, ptr %40, align 8
  %42 = lshr i32 %41, 11
  %43 = and i32 %42, 1
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %28
  br label %24, !llvm.loop !22

46:                                               ; preds = %28
  %47 = load ptr, ptr %4, align 8, !tbaa !17
  %48 = getelementptr inbounds %struct.facetT, ptr %47, i32 0, i32 15
  %49 = load i32, ptr %48, align 8
  %50 = and i32 %49, -1073741825
  %51 = or i32 %50, 0
  store i32 %51, ptr %48, align 8
  %52 = load ptr, ptr %4, align 8, !tbaa !17
  %53 = getelementptr inbounds %struct.facetT, ptr %52, i32 0, i32 15
  %54 = load i32, ptr %53, align 8
  %55 = and i32 %54, 2147483647
  %56 = or i32 %55, 0
  store i32 %56, ptr %53, align 8
  %57 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 96), align 8, !tbaa !24
  %58 = sub nsw i32 %57, 1
  %59 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !25
  %60 = icmp eq i32 %58, %59
  br i1 %60, label %61, label %63

61:                                               ; preds = %46
  %62 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !26
  store i32 %62, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !9
  store i32 %62, ptr getelementptr inbounds (%struct.qhmemT, ptr @qhmem, i32 0, i32 14), align 8, !tbaa !27
  br label %63

63:                                               ; preds = %61, %46
  %64 = load i32, ptr %13, align 4, !tbaa !5
  %65 = icmp eq i32 %64, 11
  br i1 %65, label %66, label %116

66:                                               ; preds = %63
  %67 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 145), align 8, !tbaa !25
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 145), align 8, !tbaa !25
  %69 = load ptr, ptr %5, align 8, !tbaa !17
  %70 = call ptr @qh_getreplacement(ptr noundef %69)
  store ptr %70, ptr %6, align 8, !tbaa !17
  %71 = load ptr, ptr %6, align 8, !tbaa !17
  %72 = icmp ne ptr %71, null
  br i1 %72, label %89, label %73

73:                                               ; preds = %66
  %74 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %75 = load ptr, ptr %4, align 8, !tbaa !17
  %76 = getelementptr inbounds %struct.facetT, ptr %75, i32 0, i32 14
  %77 = load i32, ptr %76, align 4, !tbaa !29
  %78 = load ptr, ptr %5, align 8, !tbaa !17
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %84

80:                                               ; preds = %73
  %81 = load ptr, ptr %5, align 8, !tbaa !17
  %82 = getelementptr inbounds %struct.facetT, ptr %81, i32 0, i32 14
  %83 = load i32, ptr %82, align 4, !tbaa !29
  br label %85

84:                                               ; preds = %73
  br label %85

85:                                               ; preds = %84, %80
  %86 = phi i32 [ %83, %80 ], [ -1, %84 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %74, i32 noundef 6097, ptr noundef @.str.119, i32 noundef %77, i32 noundef %86)
  %87 = load ptr, ptr %4, align 8, !tbaa !17
  %88 = load ptr, ptr %5, align 8, !tbaa !17
  call void @qh_errexit2(i32 noundef 5, ptr noundef %87, ptr noundef %88)
  br label %89

89:                                               ; preds = %85, %66
  %90 = load ptr, ptr %6, align 8, !tbaa !17
  %91 = call i32 @qh_setunique(ptr noundef %14, ptr noundef %90)
  %92 = load ptr, ptr %4, align 8, !tbaa !17
  %93 = load ptr, ptr %6, align 8, !tbaa !17
  %94 = icmp eq ptr %92, %93
  br i1 %94, label %95, label %96

95:                                               ; preds = %89
  br label %24, !llvm.loop !22

96:                                               ; preds = %89
  %97 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !9
  %98 = icmp sge i32 %97, 2
  br i1 %98, label %99, label %110

99:                                               ; preds = %96
  %100 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %101 = load ptr, ptr %4, align 8, !tbaa !17
  %102 = getelementptr inbounds %struct.facetT, ptr %101, i32 0, i32 14
  %103 = load i32, ptr %102, align 4, !tbaa !29
  %104 = load ptr, ptr %6, align 8, !tbaa !17
  %105 = getelementptr inbounds %struct.facetT, ptr %104, i32 0, i32 14
  %106 = load i32, ptr %105, align 4, !tbaa !29
  %107 = load ptr, ptr %5, align 8, !tbaa !17
  %108 = getelementptr inbounds %struct.facetT, ptr %107, i32 0, i32 14
  %109 = load i32, ptr %108, align 4, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %100, i32 noundef 2025, ptr noundef @.str.120, i32 noundef %103, i32 noundef %106, i32 noundef %109)
  br label %110

110:                                              ; preds = %99, %96
  %111 = load ptr, ptr %4, align 8, !tbaa !17
  %112 = load ptr, ptr %6, align 8, !tbaa !17
  %113 = load i32, ptr %13, align 4, !tbaa !5
  call void @qh_mergefacet(ptr noundef %111, ptr noundef %112, i32 noundef %113, ptr noundef null, ptr noundef null, i32 noundef 0)
  %114 = load i32, ptr %12, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %12, align 4, !tbaa !5
  br label %229

116:                                              ; preds = %63
  %117 = load ptr, ptr %4, align 8, !tbaa !17
  %118 = getelementptr inbounds %struct.facetT, ptr %117, i32 0, i32 10
  %119 = load ptr, ptr %118, align 8, !tbaa !31
  %120 = call i32 @qh_setsize(ptr noundef %119)
  store i32 %120, ptr %1, align 4, !tbaa !5
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %187, label %122

122:                                              ; preds = %116
  %123 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 51), align 8, !tbaa !25
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 51), align 8, !tbaa !25
  %125 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !9
  %126 = icmp sge i32 %125, 2
  br i1 %126, label %127, label %132

127:                                              ; preds = %122
  %128 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %129 = load ptr, ptr %4, align 8, !tbaa !17
  %130 = getelementptr inbounds %struct.facetT, ptr %129, i32 0, i32 14
  %131 = load i32, ptr %130, align 4, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %128, i32 noundef 2026, ptr noundef @.str.121, i32 noundef %131)
  br label %132

132:                                              ; preds = %127, %122
  %133 = load ptr, ptr %4, align 8, !tbaa !17
  call void @qh_willdelete(ptr noundef %133, ptr noundef null)
  store ptr null, ptr %10, align 8, !tbaa !17
  %134 = load ptr, ptr %4, align 8, !tbaa !17
  %135 = getelementptr inbounds %struct.facetT, ptr %134, i32 0, i32 8
  %136 = load ptr, ptr %135, align 8, !tbaa !32
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %184

138:                                              ; preds = %132
  %139 = load ptr, ptr %4, align 8, !tbaa !17
  %140 = getelementptr inbounds %struct.facetT, ptr %139, i32 0, i32 8
  %141 = load ptr, ptr %140, align 8, !tbaa !32
  %142 = getelementptr inbounds %struct.setT, ptr %141, i32 0, i32 1
  %143 = getelementptr inbounds [1 x %union.setelemT], ptr %142, i64 0, i64 0
  store ptr %143, ptr %11, align 8, !tbaa !17
  br label %144

144:                                              ; preds = %182, %138
  %145 = load ptr, ptr %11, align 8, !tbaa !17
  %146 = getelementptr inbounds ptr, ptr %145, i32 1
  store ptr %146, ptr %11, align 8, !tbaa !17
  %147 = load ptr, ptr %145, align 8, !tbaa !17
  store ptr %147, ptr %10, align 8, !tbaa !17
  %148 = icmp ne ptr %147, null
  br i1 %148, label %149, label %183

149:                                              ; preds = %144
  %150 = load ptr, ptr %10, align 8, !tbaa !17
  %151 = getelementptr inbounds %struct.vertexT, ptr %150, i32 0, i32 3
  %152 = load ptr, ptr %151, align 8, !tbaa !33
  %153 = load ptr, ptr %4, align 8, !tbaa !17
  %154 = call ptr @qh_setdel(ptr noundef %152, ptr noundef %153)
  %155 = load ptr, ptr %10, align 8, !tbaa !17
  %156 = getelementptr inbounds %struct.vertexT, ptr %155, i32 0, i32 3
  %157 = load ptr, ptr %156, align 8, !tbaa !33
  %158 = getelementptr inbounds %struct.setT, ptr %157, i32 0, i32 1
  %159 = getelementptr inbounds [1 x %union.setelemT], ptr %158, i64 0, i64 0
  %160 = load ptr, ptr %159, align 8, !tbaa !25
  %161 = icmp ne ptr %160, null
  br i1 %161, label %182, label %162

162:                                              ; preds = %149
  %163 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 50), align 8, !tbaa !25
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 50), align 8, !tbaa !25
  %165 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !9
  %166 = icmp sge i32 %165, 2
  br i1 %166, label %167, label %175

167:                                              ; preds = %162
  %168 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %169 = load ptr, ptr %10, align 8, !tbaa !17
  %170 = getelementptr inbounds %struct.vertexT, ptr %169, i32 0, i32 4
  %171 = load i32, ptr %170, align 8, !tbaa !35
  %172 = load ptr, ptr %4, align 8, !tbaa !17
  %173 = getelementptr inbounds %struct.facetT, ptr %172, i32 0, i32 14
  %174 = load i32, ptr %173, align 4, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %168, i32 noundef 2027, ptr noundef @.str.122, i32 noundef %171, i32 noundef %174)
  br label %175

175:                                              ; preds = %167, %162
  %176 = load ptr, ptr %10, align 8, !tbaa !17
  %177 = getelementptr inbounds %struct.vertexT, ptr %176, i32 0, i32 6
  %178 = load i8, ptr %177, align 8
  %179 = and i8 %178, -5
  %180 = or i8 %179, 4
  store i8 %180, ptr %177, align 8
  %181 = load ptr, ptr %10, align 8, !tbaa !17
  call void @qh_setappend(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 226), ptr noundef %181)
  br label %182

182:                                              ; preds = %175, %149
  br label %144, !llvm.loop !36

183:                                              ; preds = %144
  br label %184

184:                                              ; preds = %183, %132
  %185 = load i32, ptr %12, align 4, !tbaa !5
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %12, align 4, !tbaa !5
  br label %228

187:                                              ; preds = %116
  %188 = load i32, ptr %1, align 4, !tbaa !5
  %189 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !37
  %190 = icmp slt i32 %188, %189
  br i1 %190, label %191, label %227

191:                                              ; preds = %187
  %192 = load ptr, ptr %4, align 8, !tbaa !17
  %193 = call ptr @qh_findbestneighbor(ptr noundef %192, ptr noundef %7, ptr noundef %8, ptr noundef %9)
  store ptr %193, ptr %3, align 8, !tbaa !17
  %194 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !9
  %195 = icmp sge i32 %194, 2
  br i1 %195, label %196, label %206

196:                                              ; preds = %191
  %197 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %198 = load ptr, ptr %4, align 8, !tbaa !17
  %199 = getelementptr inbounds %struct.facetT, ptr %198, i32 0, i32 14
  %200 = load i32, ptr %199, align 4, !tbaa !29
  %201 = load i32, ptr %1, align 4, !tbaa !5
  %202 = load ptr, ptr %3, align 8, !tbaa !17
  %203 = getelementptr inbounds %struct.facetT, ptr %202, i32 0, i32 14
  %204 = load i32, ptr %203, align 4, !tbaa !29
  %205 = load double, ptr %7, align 8, !tbaa !38
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %197, i32 noundef 2028, ptr noundef @.str.123, i32 noundef %200, i32 noundef %201, i32 noundef %204, double noundef %205)
  br label %206

206:                                              ; preds = %196, %191
  %207 = load ptr, ptr %4, align 8, !tbaa !17
  %208 = load ptr, ptr %3, align 8, !tbaa !17
  %209 = load i32, ptr %13, align 4, !tbaa !5
  call void @qh_mergefacet(ptr noundef %207, ptr noundef %208, i32 noundef %209, ptr noundef %8, ptr noundef %9, i32 noundef 0)
  %210 = load i32, ptr %12, align 4, !tbaa !5
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %12, align 4, !tbaa !5
  %212 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 67), align 8, !tbaa !39
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %214, label %226

214:                                              ; preds = %206
  %215 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 47), align 8, !tbaa !25
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 47), align 8, !tbaa !25
  %217 = load double, ptr %7, align 8, !tbaa !38
  %218 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 49), align 8, !tbaa !25
  %219 = fadd double %218, %217
  store double %219, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 49), align 8, !tbaa !25
  %220 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 48), align 8, !tbaa !25
  %221 = load double, ptr %7, align 8, !tbaa !38
  %222 = fcmp olt double %220, %221
  br i1 %222, label %223, label %225

223:                                              ; preds = %214
  %224 = load double, ptr %7, align 8, !tbaa !38
  store double %224, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 48), align 8, !tbaa !25
  br label %225

225:                                              ; preds = %223, %214
  br label %226

226:                                              ; preds = %225, %206
  br label %227

227:                                              ; preds = %226, %187
  br label %228

228:                                              ; preds = %227, %184
  br label %229

229:                                              ; preds = %228, %110
  br label %24, !llvm.loop !22

230:                                              ; preds = %24
  call void @qh_settempfree(ptr noundef %14)
  %231 = load i32, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #3
  ret i32 %231
}

declare ptr @qh_setdellast(ptr noundef) #1

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

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

declare ptr @qh_getreplacement(ptr noundef) #1

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

declare ptr @qh_settemp(i32 noundef) #1

declare ptr @qh_setdel(ptr noundef, ptr 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

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

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

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

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @qh_merge_degenredundant() local_unnamed_addr #2 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %5 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %6 = icmp sgt i32 %5, 1
  br i1 %6, label %7, label %11

7:                                                ; preds = %0
  %8 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %9 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2808), align 8, !tbaa !14
  %10 = tail call i32 @qh_setsize(ptr noundef %9) #3
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %8, i32 noundef 2095, ptr noundef nonnull @.str.118, i32 noundef %10) #3
  br label %11

11:                                               ; preds = %7, %0
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2448), align 8, !tbaa !15
  %13 = tail call ptr @qh_settemp(i32 noundef %12) #3
  store ptr %13, ptr %4, align 8, !tbaa !16
  %14 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2808), align 8, !tbaa !14
  %15 = tail call ptr @qh_setdellast(ptr noundef %14) #3
  %.not7379 = icmp eq ptr %15, null
  br i1 %.not7379, label %.outer._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %11, %.outer
  %16 = phi ptr [ %139, %.outer ], [ %15, %11 ]
  %.0.ph80 = phi i32 [ %.1, %.outer ], [ 0, %11 ]
  br label %17

17:                                               ; preds = %.lr.ph, %.backedge
  %18 = phi ptr [ %16, %.lr.ph ], [ %29, %.backedge ]
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  %20 = load ptr, ptr %19, align 8, !tbaa !17
  %21 = getelementptr inbounds i8, ptr %18, i64 24
  %22 = load ptr, ptr %21, align 8, !tbaa !19
  %23 = getelementptr inbounds i8, ptr %18, i64 64
  %24 = load i32, ptr %23, align 8, !tbaa !20
  call void @qh_memfree(ptr noundef nonnull %18, i32 noundef 72) #3
  %25 = getelementptr inbounds i8, ptr %20, i64 112
  %26 = load i32, ptr %25, align 8
  %27 = and i32 %26, 2048
  %.not59 = icmp eq i32 %27, 0
  br i1 %.not59, label %30, label %.backedge

.backedge:                                        ; preds = %17, %53
  %28 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2808), align 8, !tbaa !14
  %29 = call ptr @qh_setdellast(ptr noundef %28) #3
  %.not = icmp eq ptr %29, null
  br i1 %.not, label %.outer._crit_edge, label %17, !llvm.loop !21

30:                                               ; preds = %17
  %31 = and i32 %26, 1073739775
  store i32 %31, ptr %25, align 8
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 560), align 8, !tbaa !23
  %33 = add nsw i32 %32, -1
  %34 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !24
  %35 = icmp eq i32 %33, %34
  br i1 %35, label %36, label %38

36:                                               ; preds = %30
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 536), align 8, !tbaa !25
  store i32 %37, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  store i32 %37, ptr getelementptr inbounds (i8, ptr @qhmem, i64 88), align 8, !tbaa !26
  br label %38

38:                                               ; preds = %36, %30
  %39 = icmp eq i32 %24, 11
  br i1 %39, label %40, label %69

40:                                               ; preds = %38
  %41 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1160), align 8, !tbaa !24
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1160), align 8, !tbaa !24
  %43 = call ptr @qh_getreplacement(ptr noundef %22) #3
  %.not65 = icmp eq ptr %43, null
  br i1 %.not65, label %44, label %53

44:                                               ; preds = %40
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %46 = getelementptr inbounds i8, ptr %20, i64 108
  %47 = load i32, ptr %46, align 4, !tbaa !28
  %.not66 = icmp eq ptr %22, null
  br i1 %.not66, label %51, label %48

48:                                               ; preds = %44
  %49 = getelementptr inbounds i8, ptr %22, i64 108
  %50 = load i32, ptr %49, align 4, !tbaa !28
  br label %51

51:                                               ; preds = %44, %48
  %52 = phi i32 [ %50, %48 ], [ -1, %44 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %45, i32 noundef 6097, ptr noundef nonnull @.str.119, i32 noundef %47, i32 noundef %52) #3
  call void @qh_errexit2(i32 noundef 5, ptr noundef nonnull %20, ptr noundef %22) #3
  br label %53

53:                                               ; preds = %51, %40
  %54 = call i32 @qh_setunique(ptr noundef nonnull %4, ptr noundef %43) #3
  %55 = icmp eq ptr %20, %43
  br i1 %55, label %.backedge, label %56

56:                                               ; preds = %53
  %57 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %58 = icmp sgt i32 %57, 1
  br i1 %58, label %59, label %67

59:                                               ; preds = %56
  %60 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %61 = getelementptr inbounds i8, ptr %20, i64 108
  %62 = load i32, ptr %61, align 4, !tbaa !28
  %63 = getelementptr inbounds i8, ptr %43, i64 108
  %64 = load i32, ptr %63, align 4, !tbaa !28
  %65 = getelementptr inbounds i8, ptr %22, i64 108
  %66 = load i32, ptr %65, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %60, i32 noundef 2025, ptr noundef nonnull @.str.120, i32 noundef %62, i32 noundef %64, i32 noundef %66) #3
  br label %67

67:                                               ; preds = %59, %56
  call void @qh_mergefacet(ptr noundef nonnull %20, ptr noundef %43, i32 noundef 11, ptr noundef null, ptr noundef null, i32 noundef 0)
  %68 = add nsw i32 %.0.ph80, 1
  br label %.outer

69:                                               ; preds = %38
  %70 = getelementptr inbounds i8, ptr %20, i64 80
  %71 = load ptr, ptr %70, align 8, !tbaa !30
  %72 = call i32 @qh_setsize(ptr noundef %71) #3
  %.not60 = icmp eq i32 %72, 0
  br i1 %.not60, label %73, label %112

73:                                               ; preds = %69
  %74 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 408), align 8, !tbaa !24
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 408), align 8, !tbaa !24
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %77 = icmp sgt i32 %76, 1
  br i1 %77, label %78, label %82

78:                                               ; preds = %73
  %79 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %80 = getelementptr inbounds i8, ptr %20, i64 108
  %81 = load i32, ptr %80, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %79, i32 noundef 2026, ptr noundef nonnull @.str.121, i32 noundef %81) #3
  br label %82

82:                                               ; preds = %78, %73
  call void @qh_willdelete(ptr noundef nonnull %20, ptr noundef null)
  %83 = getelementptr inbounds i8, ptr %20, i64 64
  %84 = load ptr, ptr %83, align 8, !tbaa !31
  %.not61 = icmp eq ptr %84, null
  br i1 %.not61, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %82
  %.04875 = getelementptr inbounds i8, ptr %84, i64 8
  %85 = load ptr, ptr %.04875, align 8, !tbaa !16
  %.not6276 = icmp eq ptr %85, null
  br i1 %.not6276, label %.loopexit, label %.lr.ph78

.lr.ph78:                                         ; preds = %.preheader
  %86 = getelementptr inbounds i8, ptr %20, i64 108
  br label %87

87:                                               ; preds = %.lr.ph78, %109
  %88 = phi ptr [ %85, %.lr.ph78 ], [ %110, %109 ]
  %.04877 = phi ptr [ %.04875, %.lr.ph78 ], [ %.048, %109 ]
  %89 = getelementptr inbounds i8, ptr %88, i64 24
  %90 = load ptr, ptr %89, align 8, !tbaa !32
  %91 = call ptr @qh_setdel(ptr noundef %90, ptr noundef %20) #3
  %92 = load ptr, ptr %89, align 8, !tbaa !32
  %93 = getelementptr inbounds i8, ptr %92, i64 8
  %94 = load ptr, ptr %93, align 8, !tbaa !24
  %.not63 = icmp eq ptr %94, null
  br i1 %.not63, label %95, label %109

95:                                               ; preds = %87
  %96 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 400), align 8, !tbaa !24
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 400), align 8, !tbaa !24
  %98 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %99 = icmp sgt i32 %98, 1
  br i1 %99, label %100, label %105

100:                                              ; preds = %95
  %101 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %102 = getelementptr inbounds i8, ptr %88, i64 32
  %103 = load i32, ptr %102, align 8, !tbaa !34
  %104 = load i32, ptr %86, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %101, i32 noundef 2027, ptr noundef nonnull @.str.122, i32 noundef %103, i32 noundef %104) #3
  br label %105

105:                                              ; preds = %100, %95
  %106 = getelementptr inbounds i8, ptr %88, i64 40
  %107 = load i8, ptr %106, align 8
  %108 = or i8 %107, 4
  store i8 %108, ptr %106, align 8
  call void @qh_setappend(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 2840), ptr noundef nonnull %88) #3
  br label %109

109:                                              ; preds = %105, %87
  %.048 = getelementptr inbounds i8, ptr %.04877, i64 8
  %110 = load ptr, ptr %.048, align 8, !tbaa !16
  %.not62 = icmp eq ptr %110, null
  br i1 %.not62, label %.loopexit, label %87, !llvm.loop !35

.loopexit:                                        ; preds = %109, %.preheader, %82
  %111 = add nsw i32 %.0.ph80, 1
  br label %.outer

112:                                              ; preds = %69
  %113 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !36
  %114 = icmp slt i32 %72, %113
  br i1 %114, label %115, label %.outer

115:                                              ; preds = %112
  %116 = call ptr @qh_findbestneighbor(ptr noundef nonnull %20, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %117 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %118 = icmp sgt i32 %117, 1
  br i1 %118, label %119, label %126

119:                                              ; preds = %115
  %120 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %121 = getelementptr inbounds i8, ptr %20, i64 108
  %122 = load i32, ptr %121, align 4, !tbaa !28
  %123 = getelementptr inbounds i8, ptr %116, i64 108
  %124 = load i32, ptr %123, align 4, !tbaa !28
  %125 = load double, ptr %1, align 8, !tbaa !37
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %120, i32 noundef 2028, ptr noundef nonnull @.str.123, i32 noundef %122, i32 noundef %72, i32 noundef %124, double noundef %125) #3
  br label %126

126:                                              ; preds = %119, %115
  call void @qh_mergefacet(ptr noundef nonnull %20, ptr noundef %116, i32 noundef %24, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef 0)
  %127 = add nsw i32 %.0.ph80, 1
  %128 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 424), align 8, !tbaa !38
  %.not64 = icmp eq i32 %128, 0
  br i1 %.not64, label %.outer, label %129

129:                                              ; preds = %126
  %130 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 376), align 8, !tbaa !24
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 376), align 8, !tbaa !24
  %132 = load double, ptr %1, align 8, !tbaa !37
  %133 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 392), align 8, !tbaa !24
  %134 = fadd double %132, %133
  store double %134, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 392), align 8, !tbaa !24
  %135 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 384), align 8, !tbaa !24
  %136 = fcmp olt double %135, %132
  br i1 %136, label %137, label %.outer

137:                                              ; preds = %129
  store double %132, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 384), align 8, !tbaa !24
  br label %.outer

.outer:                                           ; preds = %.loopexit, %126, %137, %129, %112, %67
  %.1 = phi i32 [ %68, %67 ], [ %127, %137 ], [ %127, %129 ], [ %127, %126 ], [ %.0.ph80, %112 ], [ %111, %.loopexit ]
  %138 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2808), align 8, !tbaa !14
  %139 = call ptr @qh_setdellast(ptr noundef %138) #3
  %.not73 = icmp eq ptr %139, null
  br i1 %.not73, label %.outer._crit_edge, label %.lr.ph, !llvm.loop !21

.outer._crit_edge:                                ; preds = %.outer, %.backedge, %11
  %.0.ph.lcssa = phi i32 [ 0, %11 ], [ %.0.ph80, %.backedge ], [ %.1, %.outer ]
  call void @qh_settempfree(ptr noundef nonnull %4) #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
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #3
  ret i32 %.0.ph.lcssa
}

declare ptr @qh_setdellast(ptr noundef) local_unnamed_addr #1

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

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

declare ptr @qh_getreplacement(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 ptr @qh_setdel(ptr noundef, ptr 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

; 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

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_willdelete(ptr noundef, ptr 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 = !{!6, !11, i64 2808}
!15 = !{!6, !7, i64 2448}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !11, i64 16}
!18 = !{!"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}
!19 = !{!18, !11, i64 24}
!20 = !{!18, !7, i64 64}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!6, !7, i64 560}
!24 = !{!8, !8, i64 0}
!25 = !{!6, !7, i64 536}
!26 = !{!27, !7, i64 88}
!27 = !{!"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}
!28 = !{!29, !7, i64 108}
!29 = !{!"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}
!30 = !{!29, !11, i64 80}
!31 = !{!29, !11, i64 64}
!32 = !{!33, !11, i64 24}
!33 = !{!"vertexT", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40}
!34 = !{!33, !7, i64 32}
!35 = distinct !{!35, !22}
!36 = !{!6, !7, i64 632}
!37 = !{!10, !10, i64 0}
!38 = !{!6, !7, i64 424}


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