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

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

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.mergeT = type { double, double, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }
%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.ridgeT = type { ptr, ptr, ptr, i32, i8 }

@.str.187 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [177 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [154 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [134 x i8], align 1

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_next_vertexmerge(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 -1, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store double 0x7FEFFFFFFFFFFFFF, ptr %7, align 8, !tbaa !11
  store ptr null, ptr %3, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.qhT, ptr %8, i32 0, i32 223
  %10 = load ptr, ptr %9, align 8, !tbaa !13
  %11 = icmp ne ptr %10, null
  br i1 %11, label %12, label %207

12:                                               ; preds = %1
  store i32 0, ptr %4, align 4, !tbaa !9
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.qhT, ptr %13, i32 0, i32 223
  %15 = load ptr, ptr %14, align 8, !tbaa !13
  %16 = getelementptr inbounds %struct.setT, ptr %15, i32 0, i32 1
  %17 = getelementptr inbounds [1 x %union.setelemT], ptr %16, i64 0, i64 0
  %18 = load ptr, ptr %17, align 8, !tbaa !18
  store ptr %18, ptr %3, align 8, !tbaa !5
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.qhT, ptr %20, i32 0, i32 223
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = call i32 @qh_setsize(ptr noundef %19, ptr noundef %22)
  store i32 %23, ptr %5, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %196, %12
  %25 = load i32, ptr %4, align 4, !tbaa !9
  %26 = load i32, ptr %5, align 4, !tbaa !9
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %28, label %206

28:                                               ; preds = %24
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.mergeT, ptr %29, i32 0, i32 4
  %31 = load ptr, ptr %30, align 8, !tbaa !19
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %38

33:                                               ; preds = %28
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.mergeT, ptr %34, i32 0, i32 5
  %36 = load ptr, ptr %35, align 8, !tbaa !21
  %37 = icmp ne ptr %36, null
  br i1 %37, label %86, label %38

38:                                               ; preds = %33, %28
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.qhT, ptr %40, i32 0, i32 158
  %42 = load ptr, ptr %41, align 8, !tbaa !22
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.mergeT, ptr %43, i32 0, i32 4
  %45 = load ptr, ptr %44, align 8, !tbaa !19
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %53

47:                                               ; preds = %38
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.mergeT, ptr %48, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !19
  %51 = getelementptr inbounds %struct.vertexT, ptr %50, i32 0, i32 4
  %52 = load i32, ptr %51, align 8, !tbaa !23
  br label %54

53:                                               ; preds = %38
  br label %54

54:                                               ; preds = %53, %47
  %55 = phi i32 [ %52, %47 ], [ -1, %53 ]
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.mergeT, ptr %56, i32 0, i32 5
  %58 = load ptr, ptr %57, align 8, !tbaa !21
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %66

60:                                               ; preds = %54
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.mergeT, ptr %61, i32 0, i32 5
  %63 = load ptr, ptr %62, align 8, !tbaa !21
  %64 = getelementptr inbounds %struct.vertexT, ptr %63, i32 0, i32 4
  %65 = load i32, ptr %64, align 8, !tbaa !23
  br label %67

66:                                               ; preds = %54
  br label %67

67:                                               ; preds = %66, %60
  %68 = phi i32 [ %65, %60 ], [ -1, %66 ]
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.mergeT, ptr %69, i32 0, i32 2
  %71 = load ptr, ptr %70, align 8, !tbaa !25
  %72 = icmp ne ptr %71, null
  br i1 %72, label %73, label %79

73:                                               ; preds = %67
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.mergeT, ptr %74, i32 0, i32 2
  %76 = load ptr, ptr %75, align 8, !tbaa !25
  %77 = getelementptr inbounds %struct.facetT, ptr %76, i32 0, i32 14
  %78 = load i32, ptr %77, align 4, !tbaa !26
  br label %80

79:                                               ; preds = %67
  br label %80

80:                                               ; preds = %79, %73
  %81 = phi i32 [ %78, %73 ], [ -1, %79 ]
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %39, ptr noundef %42, i32 noundef 6299, ptr noundef @.str.187, i32 noundef %55, i32 noundef %68, i32 noundef %81)
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.mergeT, ptr %83, i32 0, i32 2
  %85 = load ptr, ptr %84, align 8, !tbaa !25
  call void @qh_errexit(ptr noundef %82, i32 noundef 5, ptr noundef %85, ptr noundef null)
  br label %86

86:                                               ; preds = %80, %33
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.mergeT, ptr %87, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !19
  %90 = getelementptr inbounds %struct.vertexT, ptr %89, i32 0, i32 6
  %91 = load i8, ptr %90, align 8
  %92 = lshr i8 %91, 2
  %93 = and i8 %92, 1
  %94 = zext i8 %93 to i32
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %106, label %96

96:                                               ; preds = %86
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.mergeT, ptr %97, i32 0, i32 5
  %99 = load ptr, ptr %98, align 8, !tbaa !21
  %100 = getelementptr inbounds %struct.vertexT, ptr %99, i32 0, i32 6
  %101 = load i8, ptr %100, align 8
  %102 = lshr i8 %101, 2
  %103 = and i8 %102, 1
  %104 = zext i8 %103 to i32
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %183

106:                                              ; preds = %96, %86
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.qhT, ptr %107, i32 0, i32 29
  %109 = load i32, ptr %108, align 8, !tbaa !28
  %110 = icmp sge i32 %109, 3
  br i1 %110, label %111, label %168

111:                                              ; preds = %106
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = load ptr, ptr %2, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.qhT, ptr %113, i32 0, i32 158
  %115 = load ptr, ptr %114, align 8, !tbaa !22
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.mergeT, ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !19
  %119 = getelementptr inbounds %struct.vertexT, ptr %118, i32 0, i32 4
  %120 = load i32, ptr %119, align 8, !tbaa !23
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.mergeT, ptr %121, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !19
  %124 = getelementptr inbounds %struct.vertexT, ptr %123, i32 0, i32 6
  %125 = load i8, ptr %124, align 8
  %126 = lshr i8 %125, 2
  %127 = and i8 %126, 1
  %128 = zext i8 %127 to i32
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.mergeT, ptr %129, i32 0, i32 5
  %131 = load ptr, ptr %130, align 8, !tbaa !21
  %132 = getelementptr inbounds %struct.vertexT, ptr %131, i32 0, i32 4
  %133 = load i32, ptr %132, align 8, !tbaa !23
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.mergeT, ptr %134, i32 0, i32 5
  %136 = load ptr, ptr %135, align 8, !tbaa !21
  %137 = getelementptr inbounds %struct.vertexT, ptr %136, i32 0, i32 6
  %138 = load i8, ptr %137, align 8
  %139 = lshr i8 %138, 2
  %140 = and i8 %139, 1
  %141 = zext i8 %140 to i32
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.mergeT, ptr %142, i32 0, i32 6
  %144 = load ptr, ptr %143, align 8, !tbaa !29
  %145 = icmp ne ptr %144, null
  br i1 %145, label %146, label %152

146:                                              ; preds = %111
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.mergeT, ptr %147, i32 0, i32 6
  %149 = load ptr, ptr %148, align 8, !tbaa !29
  %150 = getelementptr inbounds %struct.ridgeT, ptr %149, i32 0, i32 3
  %151 = load i32, ptr %150, align 8, !tbaa !30
  br label %153

152:                                              ; preds = %111
  br label %153

153:                                              ; preds = %152, %146
  %154 = phi i32 [ %151, %146 ], [ -1, %152 ]
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.mergeT, ptr %155, i32 0, i32 7
  %157 = load ptr, ptr %156, align 8, !tbaa !32
  %158 = icmp ne ptr %157, null
  br i1 %158, label %159, label %165

159:                                              ; preds = %153
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.mergeT, ptr %160, i32 0, i32 7
  %162 = load ptr, ptr %161, align 8, !tbaa !32
  %163 = getelementptr inbounds %struct.ridgeT, ptr %162, i32 0, i32 3
  %164 = load i32, ptr %163, align 8, !tbaa !30
  br label %166

165:                                              ; preds = %153
  br label %166

166:                                              ; preds = %165, %159
  %167 = phi i32 [ %164, %159 ], [ -1, %165 ]
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %112, ptr noundef %115, i32 noundef 3030, ptr noundef @.str.188, i32 noundef %120, i32 noundef %128, i32 noundef %133, i32 noundef %141, i32 noundef %154, i32 noundef %167)
  br label %168

168:                                              ; preds = %166, %106
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  %170 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_drop_mergevertex(ptr noundef %169, ptr noundef %170)
  %171 = load ptr, ptr %2, align 8, !tbaa !5
  %172 = load ptr, ptr %2, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.qhT, ptr %172, i32 0, i32 223
  %174 = load ptr, ptr %173, align 8, !tbaa !13
  %175 = load i32, ptr %4, align 4, !tbaa !9
  %176 = call ptr @qh_setdelnth(ptr noundef %171, ptr noundef %174, i32 noundef %175)
  %177 = load i32, ptr %4, align 4, !tbaa !9
  %178 = add nsw i32 %177, -1
  store i32 %178, ptr %4, align 4, !tbaa !9
  %179 = load i32, ptr %5, align 4, !tbaa !9
  %180 = add nsw i32 %179, -1
  store i32 %180, ptr %5, align 4, !tbaa !9
  %181 = load ptr, ptr %2, align 8, !tbaa !5
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_memfree(ptr noundef %181, ptr noundef %182, i32 noundef 72)
  br label %195

183:                                              ; preds = %96
  %184 = load ptr, ptr %3, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.mergeT, ptr %184, i32 0, i32 1
  %186 = load double, ptr %185, align 8, !tbaa !33
  %187 = load double, ptr %7, align 8, !tbaa !11
  %188 = fcmp olt double %186, %187
  br i1 %188, label %189, label %194

189:                                              ; preds = %183
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.mergeT, ptr %190, i32 0, i32 1
  %192 = load double, ptr %191, align 8, !tbaa !33
  store double %192, ptr %7, align 8, !tbaa !11
  %193 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %193, ptr %6, align 4, !tbaa !9
  br label %194

194:                                              ; preds = %189, %183
  br label %195

195:                                              ; preds = %194, %168
  br label %196

196:                                              ; preds = %195
  %197 = load ptr, ptr %2, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.qhT, ptr %197, i32 0, i32 223
  %199 = load ptr, ptr %198, align 8, !tbaa !13
  %200 = getelementptr inbounds %struct.setT, ptr %199, i32 0, i32 1
  %201 = load i32, ptr %4, align 4, !tbaa !9
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %4, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [1 x %union.setelemT], ptr %200, i64 0, i64 %203
  %205 = load ptr, ptr %204, align 8, !tbaa !18
  store ptr %205, ptr %3, align 8, !tbaa !5
  br label %24, !llvm.loop !34

206:                                              ; preds = %24
  br label %207

207:                                              ; preds = %206, %1
  store ptr null, ptr %3, align 8, !tbaa !5
  %208 = load i32, ptr %6, align 4, !tbaa !9
  %209 = icmp sge i32 %208, 0
  br i1 %209, label %210, label %364

210:                                              ; preds = %207
  %211 = load ptr, ptr %2, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.qhT, ptr %211, i32 0, i32 223
  %213 = load ptr, ptr %212, align 8, !tbaa !13
  %214 = getelementptr inbounds %struct.setT, ptr %213, i32 0, i32 1
  %215 = load i32, ptr %6, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [1 x %union.setelemT], ptr %214, i64 0, i64 %216
  %218 = load ptr, ptr %217, align 8, !tbaa !18
  store ptr %218, ptr %3, align 8, !tbaa !5
  %219 = load double, ptr %7, align 8, !tbaa !11
  %220 = load ptr, ptr %2, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.qhT, ptr %220, i32 0, i32 147
  %222 = load double, ptr %221, align 8, !tbaa !36
  %223 = fdiv double %219, %222
  %224 = fcmp ogt double %223, 1.000000e+02
  br i1 %224, label %225, label %357

225:                                              ; preds = %210
  %226 = load ptr, ptr %3, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.mergeT, ptr %226, i32 0, i32 8
  %228 = load i32, ptr %227, align 8, !tbaa !37
  %229 = icmp eq i32 %228, 9
  br i1 %229, label %230, label %331

230:                                              ; preds = %225
  %231 = load ptr, ptr %3, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.mergeT, ptr %231, i32 0, i32 6
  %233 = load ptr, ptr %232, align 8, !tbaa !29
  %234 = getelementptr inbounds %struct.ridgeT, ptr %233, i32 0, i32 1
  %235 = load ptr, ptr %234, align 8, !tbaa !38
  %236 = load ptr, ptr %3, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.mergeT, ptr %236, i32 0, i32 7
  %238 = load ptr, ptr %237, align 8, !tbaa !32
  %239 = getelementptr inbounds %struct.ridgeT, ptr %238, i32 0, i32 2
  %240 = load ptr, ptr %239, align 8, !tbaa !39
  %241 = icmp eq ptr %235, %240
  br i1 %241, label %242, label %299

242:                                              ; preds = %230
  %243 = load ptr, ptr %3, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.mergeT, ptr %243, i32 0, i32 6
  %245 = load ptr, ptr %244, align 8, !tbaa !29
  %246 = getelementptr inbounds %struct.ridgeT, ptr %245, i32 0, i32 2
  %247 = load ptr, ptr %246, align 8, !tbaa !39
  %248 = load ptr, ptr %3, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.mergeT, ptr %248, i32 0, i32 7
  %250 = load ptr, ptr %249, align 8, !tbaa !32
  %251 = getelementptr inbounds %struct.ridgeT, ptr %250, i32 0, i32 1
  %252 = load ptr, ptr %251, align 8, !tbaa !38
  %253 = icmp eq ptr %247, %252
  br i1 %253, label %254, label %299

254:                                              ; preds = %242
  %255 = load ptr, ptr %2, align 8, !tbaa !5
  %256 = load ptr, ptr %2, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.qhT, ptr %256, i32 0, i32 158
  %258 = load ptr, ptr %257, align 8, !tbaa !22
  %259 = load ptr, ptr %3, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.mergeT, ptr %259, i32 0, i32 6
  %261 = load ptr, ptr %260, align 8, !tbaa !29
  %262 = getelementptr inbounds %struct.ridgeT, ptr %261, i32 0, i32 3
  %263 = load i32, ptr %262, align 8, !tbaa !30
  %264 = load ptr, ptr %3, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.mergeT, ptr %264, i32 0, i32 7
  %266 = load ptr, ptr %265, align 8, !tbaa !32
  %267 = getelementptr inbounds %struct.ridgeT, ptr %266, i32 0, i32 3
  %268 = load i32, ptr %267, align 8, !tbaa !30
  %269 = load ptr, ptr %3, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.mergeT, ptr %269, i32 0, i32 6
  %271 = load ptr, ptr %270, align 8, !tbaa !29
  %272 = getelementptr inbounds %struct.ridgeT, ptr %271, i32 0, i32 1
  %273 = load ptr, ptr %272, align 8, !tbaa !38
  %274 = getelementptr inbounds %struct.facetT, ptr %273, i32 0, i32 14
  %275 = load i32, ptr %274, align 4, !tbaa !26
  %276 = load ptr, ptr %3, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.mergeT, ptr %276, i32 0, i32 6
  %278 = load ptr, ptr %277, align 8, !tbaa !29
  %279 = getelementptr inbounds %struct.ridgeT, ptr %278, i32 0, i32 2
  %280 = load ptr, ptr %279, align 8, !tbaa !39
  %281 = getelementptr inbounds %struct.facetT, ptr %280, i32 0, i32 14
  %282 = load i32, ptr %281, align 4, !tbaa !26
  %283 = load ptr, ptr %3, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.mergeT, ptr %283, i32 0, i32 4
  %285 = load ptr, ptr %284, align 8, !tbaa !19
  %286 = getelementptr inbounds %struct.vertexT, ptr %285, i32 0, i32 4
  %287 = load i32, ptr %286, align 8, !tbaa !23
  %288 = load ptr, ptr %3, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.mergeT, ptr %288, i32 0, i32 5
  %290 = load ptr, ptr %289, align 8, !tbaa !21
  %291 = getelementptr inbounds %struct.vertexT, ptr %290, i32 0, i32 4
  %292 = load i32, ptr %291, align 8, !tbaa !23
  %293 = load double, ptr %7, align 8, !tbaa !11
  %294 = load double, ptr %7, align 8, !tbaa !11
  %295 = load ptr, ptr %2, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.qhT, ptr %295, i32 0, i32 147
  %297 = load double, ptr %296, align 8, !tbaa !36
  %298 = fdiv double %294, %297
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %255, ptr noundef %258, i32 noundef 6391, ptr noundef @.str.189, i32 noundef %263, i32 noundef %268, i32 noundef %275, i32 noundef %282, i32 noundef %287, i32 noundef %292, double noundef %293, double noundef %298)
  br label %330

299:                                              ; preds = %242, %230
  %300 = load ptr, ptr %2, align 8, !tbaa !5
  %301 = load ptr, ptr %2, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.qhT, ptr %301, i32 0, i32 158
  %303 = load ptr, ptr %302, align 8, !tbaa !22
  %304 = load ptr, ptr %3, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.mergeT, ptr %304, i32 0, i32 6
  %306 = load ptr, ptr %305, align 8, !tbaa !29
  %307 = getelementptr inbounds %struct.ridgeT, ptr %306, i32 0, i32 3
  %308 = load i32, ptr %307, align 8, !tbaa !30
  %309 = load ptr, ptr %3, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.mergeT, ptr %309, i32 0, i32 7
  %311 = load ptr, ptr %310, align 8, !tbaa !32
  %312 = getelementptr inbounds %struct.ridgeT, ptr %311, i32 0, i32 3
  %313 = load i32, ptr %312, align 8, !tbaa !30
  %314 = load ptr, ptr %3, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.mergeT, ptr %314, i32 0, i32 4
  %316 = load ptr, ptr %315, align 8, !tbaa !19
  %317 = getelementptr inbounds %struct.vertexT, ptr %316, i32 0, i32 4
  %318 = load i32, ptr %317, align 8, !tbaa !23
  %319 = load ptr, ptr %3, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.mergeT, ptr %319, i32 0, i32 5
  %321 = load ptr, ptr %320, align 8, !tbaa !21
  %322 = getelementptr inbounds %struct.vertexT, ptr %321, i32 0, i32 4
  %323 = load i32, ptr %322, align 8, !tbaa !23
  %324 = load double, ptr %7, align 8, !tbaa !11
  %325 = load double, ptr %7, align 8, !tbaa !11
  %326 = load ptr, ptr %2, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.qhT, ptr %326, i32 0, i32 147
  %328 = load double, ptr %327, align 8, !tbaa !36
  %329 = fdiv double %325, %328
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %300, ptr noundef %303, i32 noundef 6381, ptr noundef @.str.190, i32 noundef %308, i32 noundef %313, i32 noundef %318, i32 noundef %323, double noundef %324, double noundef %329)
  br label %330

330:                                              ; preds = %299, %254
  br label %352

331:                                              ; preds = %225
  %332 = load ptr, ptr %2, align 8, !tbaa !5
  %333 = load ptr, ptr %2, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.qhT, ptr %333, i32 0, i32 158
  %335 = load ptr, ptr %334, align 8, !tbaa !22
  %336 = load ptr, ptr %3, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.mergeT, ptr %336, i32 0, i32 4
  %338 = load ptr, ptr %337, align 8, !tbaa !19
  %339 = getelementptr inbounds %struct.vertexT, ptr %338, i32 0, i32 4
  %340 = load i32, ptr %339, align 8, !tbaa !23
  %341 = load ptr, ptr %3, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.mergeT, ptr %341, i32 0, i32 5
  %343 = load ptr, ptr %342, align 8, !tbaa !21
  %344 = getelementptr inbounds %struct.vertexT, ptr %343, i32 0, i32 4
  %345 = load i32, ptr %344, align 8, !tbaa !23
  %346 = load double, ptr %7, align 8, !tbaa !11
  %347 = load double, ptr %7, align 8, !tbaa !11
  %348 = load ptr, ptr %2, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.qhT, ptr %348, i32 0, i32 147
  %350 = load double, ptr %349, align 8, !tbaa !36
  %351 = fdiv double %347, %350
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %332, ptr noundef %335, i32 noundef 6208, ptr noundef @.str.191, i32 noundef %340, i32 noundef %345, double noundef %346, double noundef %351)
  br label %352

352:                                              ; preds = %331, %330
  %353 = load ptr, ptr %2, align 8, !tbaa !5
  %354 = load ptr, ptr %3, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.mergeT, ptr %354, i32 0, i32 6
  %356 = load ptr, ptr %355, align 8, !tbaa !29
  call void @qh_errexit(ptr noundef %353, i32 noundef 7, ptr noundef null, ptr noundef %356)
  br label %357

357:                                              ; preds = %352, %210
  %358 = load ptr, ptr %2, align 8, !tbaa !5
  %359 = load ptr, ptr %2, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.qhT, ptr %359, i32 0, i32 223
  %361 = load ptr, ptr %360, align 8, !tbaa !13
  %362 = load i32, ptr %6, align 4, !tbaa !9
  %363 = call ptr @qh_setdelnth(ptr noundef %358, ptr noundef %361, i32 noundef %362)
  br label %364

364:                                              ; preds = %357, %207
  %365 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret ptr %365
}

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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 2816}
!14 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !12, 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, !12, i64 64, !12, 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, !12, i64 160, !12, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !12, i64 192, !12, i64 200, !10, i64 208, !10, i64 212, !12, 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, !12, i64 448, !12, i64 456, !12, 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, !12, 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, !12, 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, !12, i64 1760, !12, i64 1768, !12, i64 1776, !12, i64 1784, !12, i64 1792, !12, i64 1800, !12, i64 1808, !12, i64 1816, !12, i64 1824, !12, i64 1832, !12, i64 1840, !12, i64 1848, !12, i64 1856, !12, i64 1864, !6, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !12, 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, !15, 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, !12, i64 2664, !10, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !12, i64 2728, !12, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !12, i64 2768, !12, 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, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, i64 2944, !10, i64 2952, !10, i64 2956, !10, i64 2960, !10, i64 2964, !10, i64 2968, !10, i64 2972, !6, i64 2976, !10, i64 2984, !10, i64 2988, !7, i64 2992, !7, i64 3192, !10, i64 3232, !12, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !16, i64 3272, !17, i64 3424}
!15 = !{!"long", !7, i64 0}
!16 = !{!"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}
!17 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !10, i64 5320, !10, i64 5324, !10, i64 5328, !10, i64 5332, !12, i64 5336}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !6, i64 32}
!20 = !{!"mergeT", !12, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64}
!21 = !{!20, !6, i64 40}
!22 = !{!14, !6, i64 2424}
!23 = !{!24, !10, i64 32}
!24 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40}
!25 = !{!20, !6, i64 16}
!26 = !{!27, !10, i64 108}
!27 = !{!"facetT", !12, i64 0, !12, i64 8, !12, 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}
!28 = !{!14, !10, i64 136}
!29 = !{!20, !6, i64 48}
!30 = !{!31, !10, i64 24}
!31 = !{!"ridgeT", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28}
!32 = !{!20, !6, i64 56}
!33 = !{!20, !12, i64 8}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!14, !12, i64 1888}
!37 = !{!20, !10, i64 64}
!38 = !{!31, !6, i64 8}
!39 = !{!31, !6, i64 16}


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

%union.setelemT = type { ptr }

@.str.187 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [177 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [154 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [134 x i8], align 1

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

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

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

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

declare ptr @qh_setdelnth(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @qh_drop_mergevertex(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_next_vertexmerge(ptr noundef %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 2816
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %.thread116, label %4

4:                                                ; preds = %1
  %5 = getelementptr inbounds i8, ptr %3, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !15
  %7 = tail call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef nonnull %3) #2
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %.thread116

.lr.ph:                                           ; preds = %4
  %.in = getelementptr inbounds i8, ptr %0, i64 2424
  %9 = getelementptr inbounds i8, ptr %0, i64 136
  br label %10

10:                                               ; preds = %.lr.ph, %87
  %.0123 = phi double [ 0x7FEFFFFFFFFFFFFF, %.lr.ph ], [ %.1, %87 ]
  %.088122 = phi i32 [ -1, %.lr.ph ], [ %.189, %87 ]
  %.091121 = phi i32 [ %7, %.lr.ph ], [ %.192, %87 ]
  %.093120 = phi i32 [ 0, %.lr.ph ], [ %90, %87 ]
  %.095119 = phi ptr [ %6, %.lr.ph ], [ %93, %87 ]
  %11 = getelementptr inbounds i8, ptr %.095119, i64 32
  %12 = load ptr, ptr %11, align 8, !tbaa !16
  %.not107 = icmp eq ptr %12, null
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.095119, i64 40
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !18
  br i1 %.not107, label %.thread, label %13

13:                                               ; preds = %10
  %.not108 = icmp eq ptr %.pre, null
  br i1 %.not108, label %.thread.thread, label %33

.thread.thread:                                   ; preds = %13
  %14 = getelementptr inbounds i8, ptr %12, i64 32
  %15 = load i32, ptr %14, align 8, !tbaa !19
  %16 = load ptr, ptr %.in, align 8, !tbaa !21
  br label %21

.thread:                                          ; preds = %10
  %17 = load ptr, ptr %.in, align 8, !tbaa !21
  %.not110 = icmp eq ptr %.pre, null
  br i1 %.not110, label %21, label %18

18:                                               ; preds = %.thread
  %19 = getelementptr inbounds i8, ptr %.pre, i64 32
  %20 = load i32, ptr %19, align 8, !tbaa !19
  br label %21

21:                                               ; preds = %.thread.thread, %.thread, %18
  %22 = phi ptr [ %17, %18 ], [ %17, %.thread ], [ %16, %.thread.thread ]
  %23 = phi i32 [ -1, %18 ], [ -1, %.thread ], [ %15, %.thread.thread ]
  %24 = phi i32 [ %20, %18 ], [ -1, %.thread ], [ -1, %.thread.thread ]
  %25 = getelementptr inbounds i8, ptr %.095119, i64 16
  %26 = load ptr, ptr %25, align 8, !tbaa !22
  %.not111 = icmp eq ptr %26, null
  br i1 %.not111, label %30, label %27

27:                                               ; preds = %21
  %28 = getelementptr inbounds i8, ptr %26, i64 108
  %29 = load i32, ptr %28, align 4, !tbaa !23
  br label %30

30:                                               ; preds = %21, %27
  %31 = phi i32 [ %29, %27 ], [ -1, %21 ]
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %22, i32 noundef 6299, ptr noundef nonnull @.str.187, i32 noundef %23, i32 noundef %24, i32 noundef %31) #2
  %32 = load ptr, ptr %25, align 8, !tbaa !22
  tail call void @qh_errexit(ptr noundef nonnull %0, i32 noundef 5, ptr noundef %32, ptr noundef null) #2
  %.pre125 = load ptr, ptr %11, align 8, !tbaa !16
  br label %33

33:                                               ; preds = %30, %13
  %34 = phi ptr [ %.pre125, %30 ], [ %12, %13 ]
  %35 = getelementptr inbounds i8, ptr %34, i64 40
  %36 = load i8, ptr %35, align 8
  %37 = and i8 %36, 4
  %.not112 = icmp eq i8 %37, 0
  br i1 %.not112, label %38, label %44

38:                                               ; preds = %33
  %39 = getelementptr inbounds i8, ptr %.095119, i64 40
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = getelementptr inbounds i8, ptr %40, i64 40
  %42 = load i8, ptr %41, align 8
  %43 = and i8 %42, 4
  %.not113 = icmp eq i8 %43, 0
  br i1 %.not113, label %82, label %44

44:                                               ; preds = %38, %33
  %45 = load i32, ptr %9, align 8, !tbaa !25
  %46 = icmp sgt i32 %45, 2
  br i1 %46, label %47, label %77

47:                                               ; preds = %44
  %48 = load ptr, ptr %.in, align 8, !tbaa !21
  %49 = getelementptr inbounds i8, ptr %34, i64 32
  %50 = load i32, ptr %49, align 8, !tbaa !19
  %51 = lshr i8 %36, 2
  %52 = and i8 %51, 1
  %53 = zext nneg i8 %52 to i32
  %54 = getelementptr inbounds i8, ptr %.095119, i64 40
  %55 = load ptr, ptr %54, align 8, !tbaa !18
  %56 = getelementptr inbounds i8, ptr %55, i64 32
  %57 = load i32, ptr %56, align 8, !tbaa !19
  %58 = getelementptr inbounds i8, ptr %55, i64 40
  %59 = load i8, ptr %58, align 8
  %60 = lshr i8 %59, 2
  %61 = and i8 %60, 1
  %62 = zext nneg i8 %61 to i32
  %63 = getelementptr inbounds i8, ptr %.095119, i64 48
  %64 = load ptr, ptr %63, align 8, !tbaa !26
  %.not114 = icmp eq ptr %64, null
  br i1 %.not114, label %68, label %65

65:                                               ; preds = %47
  %66 = getelementptr inbounds i8, ptr %64, i64 24
  %67 = load i32, ptr %66, align 8, !tbaa !27
  br label %68

68:                                               ; preds = %47, %65
  %69 = phi i32 [ %67, %65 ], [ -1, %47 ]
  %70 = getelementptr inbounds i8, ptr %.095119, i64 56
  %71 = load ptr, ptr %70, align 8, !tbaa !29
  %.not115 = icmp eq ptr %71, null
  br i1 %.not115, label %75, label %72

72:                                               ; preds = %68
  %73 = getelementptr inbounds i8, ptr %71, i64 24
  %74 = load i32, ptr %73, align 8, !tbaa !27
  br label %75

75:                                               ; preds = %68, %72
  %76 = phi i32 [ %74, %72 ], [ -1, %68 ]
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %48, i32 noundef 3030, ptr noundef nonnull @.str.188, i32 noundef %50, i32 noundef %53, i32 noundef %57, i32 noundef %62, i32 noundef %69, i32 noundef %76) #2
  br label %77

77:                                               ; preds = %75, %44
  tail call void @qh_drop_mergevertex(ptr noundef nonnull %0, ptr noundef nonnull %.095119)
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = tail call ptr @qh_setdelnth(ptr noundef nonnull %0, ptr noundef %78, i32 noundef %.093120) #2
  %80 = add nsw i32 %.093120, -1
  %81 = add nsw i32 %.091121, -1
  tail call void @qh_memfree(ptr noundef nonnull %0, ptr noundef nonnull %.095119, i32 noundef 72) #2
  br label %87

82:                                               ; preds = %38
  %83 = getelementptr inbounds i8, ptr %.095119, i64 8
  %84 = load double, ptr %83, align 8, !tbaa !30
  %85 = fcmp olt double %84, %.0123
  br i1 %85, label %86, label %87

86:                                               ; preds = %82
  br label %87

87:                                               ; preds = %77, %86, %82
  %.194 = phi i32 [ %80, %77 ], [ %.093120, %86 ], [ %.093120, %82 ]
  %.192 = phi i32 [ %81, %77 ], [ %.091121, %86 ], [ %.091121, %82 ]
  %.189 = phi i32 [ %.088122, %77 ], [ %.093120, %86 ], [ %.088122, %82 ]
  %.1 = phi double [ %.0123, %77 ], [ %84, %86 ], [ %.0123, %82 ]
  %88 = load ptr, ptr %2, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 8
  %90 = add nsw i32 %.194, 1
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [1 x %union.setelemT], ptr %89, i64 0, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !15
  %94 = icmp slt i32 %90, %.192
  br i1 %94, label %10, label %._crit_edge, !llvm.loop !31

._crit_edge:                                      ; preds = %87
  %95 = icmp sgt i32 %.189, -1
  br i1 %95, label %96, label %.thread116

96:                                               ; preds = %._crit_edge
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %97, i64 8
  %99 = zext nneg i32 %.189 to i64
  %100 = getelementptr inbounds [1 x %union.setelemT], ptr %98, i64 0, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !15
  %102 = getelementptr inbounds i8, ptr %0, i64 1888
  %103 = load double, ptr %102, align 8, !tbaa !33
  %104 = fdiv double %.1, %103
  %105 = fcmp ogt double %104, 1.000000e+02
  br i1 %105, label %106, label %174

106:                                              ; preds = %96
  %107 = getelementptr inbounds i8, ptr %101, i64 64
  %108 = load i32, ptr %107, align 8, !tbaa !34
  %109 = icmp eq i32 %108, 9
  br i1 %109, label %110, label %160

110:                                              ; preds = %106
  %111 = getelementptr inbounds i8, ptr %101, i64 48
  %112 = load ptr, ptr %111, align 8, !tbaa !26
  %113 = getelementptr inbounds i8, ptr %112, i64 8
  %114 = load ptr, ptr %113, align 8, !tbaa !35
  %115 = getelementptr inbounds i8, ptr %101, i64 56
  %116 = load ptr, ptr %115, align 8, !tbaa !29
  %117 = getelementptr inbounds i8, ptr %116, i64 16
  %118 = load ptr, ptr %117, align 8, !tbaa !36
  %119 = icmp eq ptr %114, %118
  br i1 %119, label %120, label %145

120:                                              ; preds = %110
  %121 = getelementptr inbounds i8, ptr %112, i64 16
  %122 = load ptr, ptr %121, align 8, !tbaa !36
  %123 = getelementptr inbounds i8, ptr %116, i64 8
  %124 = load ptr, ptr %123, align 8, !tbaa !35
  %125 = icmp eq ptr %122, %124
  br i1 %125, label %126, label %145

126:                                              ; preds = %120
  %127 = getelementptr inbounds i8, ptr %0, i64 2424
  %128 = load ptr, ptr %127, align 8, !tbaa !21
  %129 = getelementptr inbounds i8, ptr %112, i64 24
  %130 = load i32, ptr %129, align 8, !tbaa !27
  %131 = getelementptr inbounds i8, ptr %116, i64 24
  %132 = load i32, ptr %131, align 8, !tbaa !27
  %133 = getelementptr inbounds i8, ptr %114, i64 108
  %134 = load i32, ptr %133, align 4, !tbaa !23
  %135 = getelementptr inbounds i8, ptr %122, i64 108
  %136 = load i32, ptr %135, align 4, !tbaa !23
  %137 = getelementptr inbounds i8, ptr %101, i64 32
  %138 = load ptr, ptr %137, align 8, !tbaa !16
  %139 = getelementptr inbounds i8, ptr %138, i64 32
  %140 = load i32, ptr %139, align 8, !tbaa !19
  %141 = getelementptr inbounds i8, ptr %101, i64 40
  %142 = load ptr, ptr %141, align 8, !tbaa !18
  %143 = getelementptr inbounds i8, ptr %142, i64 32
  %144 = load i32, ptr %143, align 8, !tbaa !19
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %128, i32 noundef 6391, ptr noundef nonnull @.str.189, i32 noundef %130, i32 noundef %132, i32 noundef %134, i32 noundef %136, i32 noundef %140, i32 noundef %144, double noundef %.1, double noundef %104) #2
  br label %171

145:                                              ; preds = %120, %110
  %146 = getelementptr inbounds i8, ptr %0, i64 2424
  %147 = load ptr, ptr %146, align 8, !tbaa !21
  %148 = getelementptr inbounds i8, ptr %112, i64 24
  %149 = load i32, ptr %148, align 8, !tbaa !27
  %150 = getelementptr inbounds i8, ptr %116, i64 24
  %151 = load i32, ptr %150, align 8, !tbaa !27
  %152 = getelementptr inbounds i8, ptr %101, i64 32
  %153 = load ptr, ptr %152, align 8, !tbaa !16
  %154 = getelementptr inbounds i8, ptr %153, i64 32
  %155 = load i32, ptr %154, align 8, !tbaa !19
  %156 = getelementptr inbounds i8, ptr %101, i64 40
  %157 = load ptr, ptr %156, align 8, !tbaa !18
  %158 = getelementptr inbounds i8, ptr %157, i64 32
  %159 = load i32, ptr %158, align 8, !tbaa !19
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %147, i32 noundef 6381, ptr noundef nonnull @.str.190, i32 noundef %149, i32 noundef %151, i32 noundef %155, i32 noundef %159, double noundef %.1, double noundef %104) #2
  br label %171

160:                                              ; preds = %106
  %161 = getelementptr inbounds i8, ptr %0, i64 2424
  %162 = load ptr, ptr %161, align 8, !tbaa !21
  %163 = getelementptr inbounds i8, ptr %101, i64 32
  %164 = load ptr, ptr %163, align 8, !tbaa !16
  %165 = getelementptr inbounds i8, ptr %164, i64 32
  %166 = load i32, ptr %165, align 8, !tbaa !19
  %167 = getelementptr inbounds i8, ptr %101, i64 40
  %168 = load ptr, ptr %167, align 8, !tbaa !18
  %169 = getelementptr inbounds i8, ptr %168, i64 32
  %170 = load i32, ptr %169, align 8, !tbaa !19
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %162, i32 noundef 6208, ptr noundef nonnull @.str.191, i32 noundef %166, i32 noundef %170, double noundef %.1, double noundef %104) #2
  br label %171

171:                                              ; preds = %126, %145, %160
  %172 = getelementptr inbounds i8, ptr %101, i64 48
  %173 = load ptr, ptr %172, align 8, !tbaa !26
  tail call void @qh_errexit(ptr noundef nonnull %0, i32 noundef 7, ptr noundef null, ptr noundef %173) #2
  %.pre126 = load ptr, ptr %2, align 8, !tbaa !5
  br label %174

174:                                              ; preds = %171, %96
  %175 = phi ptr [ %.pre126, %171 ], [ %97, %96 ]
  %176 = tail call ptr @qh_setdelnth(ptr noundef nonnull %0, ptr noundef %175, i32 noundef %.189) #2
  br label %.thread116

.thread116:                                       ; preds = %4, %1, %174, %._crit_edge
  %.196 = phi ptr [ %101, %174 ], [ null, %._crit_edge ], [ null, %1 ], [ null, %4 ]
  ret ptr %.196
}

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


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