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

@qh_qh = external global %struct.qhT, align 8
@.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, 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

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

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

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

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

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

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

15:                                               ; preds = %173, %8
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = icmp slt i32 %16, %17
  br i1 %18, label %19, label %181

19:                                               ; preds = %15
  %20 = load ptr, ptr %1, align 8, !tbaa !11
  %21 = getelementptr inbounds %struct.mergeT, ptr %20, i32 0, i32 4
  %22 = load ptr, ptr %21, align 8, !tbaa !17
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %29

24:                                               ; preds = %19
  %25 = load ptr, ptr %1, align 8, !tbaa !11
  %26 = getelementptr inbounds %struct.mergeT, ptr %25, i32 0, i32 5
  %27 = load ptr, ptr %26, align 8, !tbaa !19
  %28 = icmp ne ptr %27, null
  br i1 %28, label %73, label %29

29:                                               ; preds = %24, %19
  %30 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !20
  %31 = load ptr, ptr %1, align 8, !tbaa !11
  %32 = getelementptr inbounds %struct.mergeT, ptr %31, i32 0, i32 4
  %33 = load ptr, ptr %32, align 8, !tbaa !17
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %41

35:                                               ; preds = %29
  %36 = load ptr, ptr %1, align 8, !tbaa !11
  %37 = getelementptr inbounds %struct.mergeT, ptr %36, i32 0, i32 4
  %38 = load ptr, ptr %37, align 8, !tbaa !17
  %39 = getelementptr inbounds %struct.vertexT, ptr %38, i32 0, i32 4
  %40 = load i32, ptr %39, align 8, !tbaa !21
  br label %42

41:                                               ; preds = %29
  br label %42

42:                                               ; preds = %41, %35
  %43 = phi i32 [ %40, %35 ], [ -1, %41 ]
  %44 = load ptr, ptr %1, align 8, !tbaa !11
  %45 = getelementptr inbounds %struct.mergeT, ptr %44, i32 0, i32 5
  %46 = load ptr, ptr %45, align 8, !tbaa !19
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %54

48:                                               ; preds = %42
  %49 = load ptr, ptr %1, align 8, !tbaa !11
  %50 = getelementptr inbounds %struct.mergeT, ptr %49, i32 0, i32 5
  %51 = load ptr, ptr %50, align 8, !tbaa !19
  %52 = getelementptr inbounds %struct.vertexT, ptr %51, i32 0, i32 4
  %53 = load i32, ptr %52, align 8, !tbaa !21
  br label %55

54:                                               ; preds = %42
  br label %55

55:                                               ; preds = %54, %48
  %56 = phi i32 [ %53, %48 ], [ -1, %54 ]
  %57 = load ptr, ptr %1, align 8, !tbaa !11
  %58 = getelementptr inbounds %struct.mergeT, ptr %57, i32 0, i32 2
  %59 = load ptr, ptr %58, align 8, !tbaa !23
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %67

61:                                               ; preds = %55
  %62 = load ptr, ptr %1, align 8, !tbaa !11
  %63 = getelementptr inbounds %struct.mergeT, ptr %62, i32 0, i32 2
  %64 = load ptr, ptr %63, align 8, !tbaa !23
  %65 = getelementptr inbounds %struct.facetT, ptr %64, i32 0, i32 14
  %66 = load i32, ptr %65, align 4, !tbaa !24
  br label %68

67:                                               ; preds = %55
  br label %68

68:                                               ; preds = %67, %61
  %69 = phi i32 [ %66, %61 ], [ -1, %67 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %30, i32 noundef 6299, ptr noundef @.str.187, i32 noundef %43, i32 noundef %56, i32 noundef %69)
  %70 = load ptr, ptr %1, align 8, !tbaa !11
  %71 = getelementptr inbounds %struct.mergeT, ptr %70, i32 0, i32 2
  %72 = load ptr, ptr %71, align 8, !tbaa !23
  call void @qh_errexit(i32 noundef 5, ptr noundef %72, ptr noundef null)
  br label %73

73:                                               ; preds = %68, %24
  %74 = load ptr, ptr %1, align 8, !tbaa !11
  %75 = getelementptr inbounds %struct.mergeT, ptr %74, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !17
  %77 = getelementptr inbounds %struct.vertexT, ptr %76, i32 0, i32 6
  %78 = load i8, ptr %77, align 8
  %79 = lshr i8 %78, 2
  %80 = and i8 %79, 1
  %81 = zext i8 %80 to i32
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %93, label %83

83:                                               ; preds = %73
  %84 = load ptr, ptr %1, align 8, !tbaa !11
  %85 = getelementptr inbounds %struct.mergeT, ptr %84, i32 0, i32 5
  %86 = load ptr, ptr %85, align 8, !tbaa !19
  %87 = getelementptr inbounds %struct.vertexT, ptr %86, i32 0, i32 6
  %88 = load i8, ptr %87, align 8
  %89 = lshr i8 %88, 2
  %90 = and i8 %89, 1
  %91 = zext i8 %90 to i32
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %160

93:                                               ; preds = %83, %73
  %94 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !26
  %95 = icmp sge i32 %94, 3
  br i1 %95, label %96, label %150

96:                                               ; preds = %93
  %97 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !20
  %98 = load ptr, ptr %1, align 8, !tbaa !11
  %99 = getelementptr inbounds %struct.mergeT, ptr %98, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !17
  %101 = getelementptr inbounds %struct.vertexT, ptr %100, i32 0, i32 4
  %102 = load i32, ptr %101, align 8, !tbaa !21
  %103 = load ptr, ptr %1, align 8, !tbaa !11
  %104 = getelementptr inbounds %struct.mergeT, ptr %103, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !17
  %106 = getelementptr inbounds %struct.vertexT, ptr %105, i32 0, i32 6
  %107 = load i8, ptr %106, align 8
  %108 = lshr i8 %107, 2
  %109 = and i8 %108, 1
  %110 = zext i8 %109 to i32
  %111 = load ptr, ptr %1, align 8, !tbaa !11
  %112 = getelementptr inbounds %struct.mergeT, ptr %111, i32 0, i32 5
  %113 = load ptr, ptr %112, align 8, !tbaa !19
  %114 = getelementptr inbounds %struct.vertexT, ptr %113, i32 0, i32 4
  %115 = load i32, ptr %114, align 8, !tbaa !21
  %116 = load ptr, ptr %1, align 8, !tbaa !11
  %117 = getelementptr inbounds %struct.mergeT, ptr %116, i32 0, i32 5
  %118 = load ptr, ptr %117, align 8, !tbaa !19
  %119 = getelementptr inbounds %struct.vertexT, ptr %118, i32 0, i32 6
  %120 = load i8, ptr %119, align 8
  %121 = lshr i8 %120, 2
  %122 = and i8 %121, 1
  %123 = zext i8 %122 to i32
  %124 = load ptr, ptr %1, align 8, !tbaa !11
  %125 = getelementptr inbounds %struct.mergeT, ptr %124, i32 0, i32 6
  %126 = load ptr, ptr %125, align 8, !tbaa !27
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %134

128:                                              ; preds = %96
  %129 = load ptr, ptr %1, align 8, !tbaa !11
  %130 = getelementptr inbounds %struct.mergeT, ptr %129, i32 0, i32 6
  %131 = load ptr, ptr %130, align 8, !tbaa !27
  %132 = getelementptr inbounds %struct.ridgeT, ptr %131, i32 0, i32 3
  %133 = load i32, ptr %132, align 8, !tbaa !28
  br label %135

134:                                              ; preds = %96
  br label %135

135:                                              ; preds = %134, %128
  %136 = phi i32 [ %133, %128 ], [ -1, %134 ]
  %137 = load ptr, ptr %1, align 8, !tbaa !11
  %138 = getelementptr inbounds %struct.mergeT, ptr %137, i32 0, i32 7
  %139 = load ptr, ptr %138, align 8, !tbaa !30
  %140 = icmp ne ptr %139, null
  br i1 %140, label %141, label %147

141:                                              ; preds = %135
  %142 = load ptr, ptr %1, align 8, !tbaa !11
  %143 = getelementptr inbounds %struct.mergeT, ptr %142, i32 0, i32 7
  %144 = load ptr, ptr %143, align 8, !tbaa !30
  %145 = getelementptr inbounds %struct.ridgeT, ptr %144, i32 0, i32 3
  %146 = load i32, ptr %145, align 8, !tbaa !28
  br label %148

147:                                              ; preds = %135
  br label %148

148:                                              ; preds = %147, %141
  %149 = phi i32 [ %146, %141 ], [ -1, %147 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %97, i32 noundef 3030, ptr noundef @.str.188, i32 noundef %102, i32 noundef %110, i32 noundef %115, i32 noundef %123, i32 noundef %136, i32 noundef %149)
  br label %150

150:                                              ; preds = %148, %93
  %151 = load ptr, ptr %1, align 8, !tbaa !11
  call void @qh_drop_mergevertex(ptr noundef %151)
  %152 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 223), align 8, !tbaa !13
  %153 = load i32, ptr %2, align 4, !tbaa !5
  %154 = call ptr @qh_setdelnth(ptr noundef %152, i32 noundef %153)
  %155 = load i32, ptr %2, align 4, !tbaa !5
  %156 = add nsw i32 %155, -1
  store i32 %156, ptr %2, align 4, !tbaa !5
  %157 = load i32, ptr %3, align 4, !tbaa !5
  %158 = add nsw i32 %157, -1
  store i32 %158, ptr %3, align 4, !tbaa !5
  %159 = load ptr, ptr %1, align 8, !tbaa !11
  call void @qh_memfree(ptr noundef %159, i32 noundef 72)
  br label %172

160:                                              ; preds = %83
  %161 = load ptr, ptr %1, align 8, !tbaa !11
  %162 = getelementptr inbounds %struct.mergeT, ptr %161, i32 0, i32 1
  %163 = load double, ptr %162, align 8, !tbaa !31
  %164 = load double, ptr %5, align 8, !tbaa !9
  %165 = fcmp olt double %163, %164
  br i1 %165, label %166, label %171

166:                                              ; preds = %160
  %167 = load ptr, ptr %1, align 8, !tbaa !11
  %168 = getelementptr inbounds %struct.mergeT, ptr %167, i32 0, i32 1
  %169 = load double, ptr %168, align 8, !tbaa !31
  store double %169, ptr %5, align 8, !tbaa !9
  %170 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %170, ptr %4, align 4, !tbaa !5
  br label %171

171:                                              ; preds = %166, %160
  br label %172

172:                                              ; preds = %171, %150
  br label %173

173:                                              ; preds = %172
  %174 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 223), align 8, !tbaa !13
  %175 = getelementptr inbounds %struct.setT, ptr %174, i32 0, i32 1
  %176 = load i32, ptr %2, align 4, !tbaa !5
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %2, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [1 x %union.setelemT], ptr %175, i64 0, i64 %178
  %180 = load ptr, ptr %179, align 8, !tbaa !16
  store ptr %180, ptr %1, align 8, !tbaa !11
  br label %15, !llvm.loop !32

181:                                              ; preds = %15
  br label %182

182:                                              ; preds = %181, %0
  store ptr null, ptr %1, align 8, !tbaa !11
  %183 = load i32, ptr %4, align 4, !tbaa !5
  %184 = icmp sge i32 %183, 0
  br i1 %184, label %185, label %316

185:                                              ; preds = %182
  %186 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 223), align 8, !tbaa !13
  %187 = getelementptr inbounds %struct.setT, ptr %186, i32 0, i32 1
  %188 = load i32, ptr %4, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [1 x %union.setelemT], ptr %187, i64 0, i64 %189
  %191 = load ptr, ptr %190, align 8, !tbaa !16
  store ptr %191, ptr %1, align 8, !tbaa !11
  %192 = load double, ptr %5, align 8, !tbaa !9
  %193 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 147), align 8, !tbaa !34
  %194 = fdiv double %192, %193
  %195 = fcmp ogt double %194, 1.000000e+02
  br i1 %195, label %196, label %312

196:                                              ; preds = %185
  %197 = load ptr, ptr %1, align 8, !tbaa !11
  %198 = getelementptr inbounds %struct.mergeT, ptr %197, i32 0, i32 8
  %199 = load i32, ptr %198, align 8, !tbaa !35
  %200 = icmp eq i32 %199, 9
  br i1 %200, label %201, label %292

201:                                              ; preds = %196
  %202 = load ptr, ptr %1, align 8, !tbaa !11
  %203 = getelementptr inbounds %struct.mergeT, ptr %202, i32 0, i32 6
  %204 = load ptr, ptr %203, align 8, !tbaa !27
  %205 = getelementptr inbounds %struct.ridgeT, ptr %204, i32 0, i32 1
  %206 = load ptr, ptr %205, align 8, !tbaa !36
  %207 = load ptr, ptr %1, align 8, !tbaa !11
  %208 = getelementptr inbounds %struct.mergeT, ptr %207, i32 0, i32 7
  %209 = load ptr, ptr %208, align 8, !tbaa !30
  %210 = getelementptr inbounds %struct.ridgeT, ptr %209, i32 0, i32 2
  %211 = load ptr, ptr %210, align 8, !tbaa !37
  %212 = icmp eq ptr %206, %211
  br i1 %212, label %213, label %265

213:                                              ; preds = %201
  %214 = load ptr, ptr %1, align 8, !tbaa !11
  %215 = getelementptr inbounds %struct.mergeT, ptr %214, i32 0, i32 6
  %216 = load ptr, ptr %215, align 8, !tbaa !27
  %217 = getelementptr inbounds %struct.ridgeT, ptr %216, i32 0, i32 2
  %218 = load ptr, ptr %217, align 8, !tbaa !37
  %219 = load ptr, ptr %1, align 8, !tbaa !11
  %220 = getelementptr inbounds %struct.mergeT, ptr %219, i32 0, i32 7
  %221 = load ptr, ptr %220, align 8, !tbaa !30
  %222 = getelementptr inbounds %struct.ridgeT, ptr %221, i32 0, i32 1
  %223 = load ptr, ptr %222, align 8, !tbaa !36
  %224 = icmp eq ptr %218, %223
  br i1 %224, label %225, label %265

225:                                              ; preds = %213
  %226 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !20
  %227 = load ptr, ptr %1, align 8, !tbaa !11
  %228 = getelementptr inbounds %struct.mergeT, ptr %227, i32 0, i32 6
  %229 = load ptr, ptr %228, align 8, !tbaa !27
  %230 = getelementptr inbounds %struct.ridgeT, ptr %229, i32 0, i32 3
  %231 = load i32, ptr %230, align 8, !tbaa !28
  %232 = load ptr, ptr %1, align 8, !tbaa !11
  %233 = getelementptr inbounds %struct.mergeT, ptr %232, i32 0, i32 7
  %234 = load ptr, ptr %233, align 8, !tbaa !30
  %235 = getelementptr inbounds %struct.ridgeT, ptr %234, i32 0, i32 3
  %236 = load i32, ptr %235, align 8, !tbaa !28
  %237 = load ptr, ptr %1, align 8, !tbaa !11
  %238 = getelementptr inbounds %struct.mergeT, ptr %237, i32 0, i32 6
  %239 = load ptr, ptr %238, align 8, !tbaa !27
  %240 = getelementptr inbounds %struct.ridgeT, ptr %239, i32 0, i32 1
  %241 = load ptr, ptr %240, align 8, !tbaa !36
  %242 = getelementptr inbounds %struct.facetT, ptr %241, i32 0, i32 14
  %243 = load i32, ptr %242, align 4, !tbaa !24
  %244 = load ptr, ptr %1, align 8, !tbaa !11
  %245 = getelementptr inbounds %struct.mergeT, ptr %244, i32 0, i32 6
  %246 = load ptr, ptr %245, align 8, !tbaa !27
  %247 = getelementptr inbounds %struct.ridgeT, ptr %246, i32 0, i32 2
  %248 = load ptr, ptr %247, align 8, !tbaa !37
  %249 = getelementptr inbounds %struct.facetT, ptr %248, i32 0, i32 14
  %250 = load i32, ptr %249, align 4, !tbaa !24
  %251 = load ptr, ptr %1, align 8, !tbaa !11
  %252 = getelementptr inbounds %struct.mergeT, ptr %251, i32 0, i32 4
  %253 = load ptr, ptr %252, align 8, !tbaa !17
  %254 = getelementptr inbounds %struct.vertexT, ptr %253, i32 0, i32 4
  %255 = load i32, ptr %254, align 8, !tbaa !21
  %256 = load ptr, ptr %1, align 8, !tbaa !11
  %257 = getelementptr inbounds %struct.mergeT, ptr %256, i32 0, i32 5
  %258 = load ptr, ptr %257, align 8, !tbaa !19
  %259 = getelementptr inbounds %struct.vertexT, ptr %258, i32 0, i32 4
  %260 = load i32, ptr %259, align 8, !tbaa !21
  %261 = load double, ptr %5, align 8, !tbaa !9
  %262 = load double, ptr %5, align 8, !tbaa !9
  %263 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 147), align 8, !tbaa !34
  %264 = fdiv double %262, %263
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %226, i32 noundef 6391, ptr noundef @.str.189, i32 noundef %231, i32 noundef %236, i32 noundef %243, i32 noundef %250, i32 noundef %255, i32 noundef %260, double noundef %261, double noundef %264)
  br label %291

265:                                              ; preds = %213, %201
  %266 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !20
  %267 = load ptr, ptr %1, align 8, !tbaa !11
  %268 = getelementptr inbounds %struct.mergeT, ptr %267, i32 0, i32 6
  %269 = load ptr, ptr %268, align 8, !tbaa !27
  %270 = getelementptr inbounds %struct.ridgeT, ptr %269, i32 0, i32 3
  %271 = load i32, ptr %270, align 8, !tbaa !28
  %272 = load ptr, ptr %1, align 8, !tbaa !11
  %273 = getelementptr inbounds %struct.mergeT, ptr %272, i32 0, i32 7
  %274 = load ptr, ptr %273, align 8, !tbaa !30
  %275 = getelementptr inbounds %struct.ridgeT, ptr %274, i32 0, i32 3
  %276 = load i32, ptr %275, align 8, !tbaa !28
  %277 = load ptr, ptr %1, align 8, !tbaa !11
  %278 = getelementptr inbounds %struct.mergeT, ptr %277, i32 0, i32 4
  %279 = load ptr, ptr %278, align 8, !tbaa !17
  %280 = getelementptr inbounds %struct.vertexT, ptr %279, i32 0, i32 4
  %281 = load i32, ptr %280, align 8, !tbaa !21
  %282 = load ptr, ptr %1, align 8, !tbaa !11
  %283 = getelementptr inbounds %struct.mergeT, ptr %282, i32 0, i32 5
  %284 = load ptr, ptr %283, align 8, !tbaa !19
  %285 = getelementptr inbounds %struct.vertexT, ptr %284, i32 0, i32 4
  %286 = load i32, ptr %285, align 8, !tbaa !21
  %287 = load double, ptr %5, align 8, !tbaa !9
  %288 = load double, ptr %5, align 8, !tbaa !9
  %289 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 147), align 8, !tbaa !34
  %290 = fdiv double %288, %289
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %266, i32 noundef 6381, ptr noundef @.str.190, i32 noundef %271, i32 noundef %276, i32 noundef %281, i32 noundef %286, double noundef %287, double noundef %290)
  br label %291

291:                                              ; preds = %265, %225
  br label %308

292:                                              ; preds = %196
  %293 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !20
  %294 = load ptr, ptr %1, align 8, !tbaa !11
  %295 = getelementptr inbounds %struct.mergeT, ptr %294, i32 0, i32 4
  %296 = load ptr, ptr %295, align 8, !tbaa !17
  %297 = getelementptr inbounds %struct.vertexT, ptr %296, i32 0, i32 4
  %298 = load i32, ptr %297, align 8, !tbaa !21
  %299 = load ptr, ptr %1, align 8, !tbaa !11
  %300 = getelementptr inbounds %struct.mergeT, ptr %299, i32 0, i32 5
  %301 = load ptr, ptr %300, align 8, !tbaa !19
  %302 = getelementptr inbounds %struct.vertexT, ptr %301, i32 0, i32 4
  %303 = load i32, ptr %302, align 8, !tbaa !21
  %304 = load double, ptr %5, align 8, !tbaa !9
  %305 = load double, ptr %5, align 8, !tbaa !9
  %306 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 147), align 8, !tbaa !34
  %307 = fdiv double %305, %306
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %293, i32 noundef 6208, ptr noundef @.str.191, i32 noundef %298, i32 noundef %303, double noundef %304, double noundef %307)
  br label %308

308:                                              ; preds = %292, %291
  %309 = load ptr, ptr %1, align 8, !tbaa !11
  %310 = getelementptr inbounds %struct.mergeT, ptr %309, i32 0, i32 6
  %311 = load ptr, ptr %310, align 8, !tbaa !27
  call void @qh_errexit(i32 noundef 7, ptr noundef null, ptr noundef %311)
  br label %312

312:                                              ; preds = %308, %185
  %313 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 223), align 8, !tbaa !13
  %314 = load i32, ptr %4, align 4, !tbaa !5
  %315 = call ptr @qh_setdelnth(ptr noundef %313, i32 noundef %314)
  br label %316

316:                                              ; preds = %312, %182
  %317 = load ptr, ptr %1, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #3
  ret ptr %317
}

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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 2816}
!14 = !{!"qhT", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !10, 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, !10, i64 64, !10, 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, !10, i64 160, !10, i64 168, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 188, !10, i64 192, !10, i64 200, !6, i64 208, !6, i64 212, !10, 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, !10, i64 448, !10, i64 456, !10, 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, !10, 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, !10, 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, !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, !12, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !10, 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, !15, 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, !10, i64 2664, !6, i64 2672, !10, i64 2680, !10, i64 2688, !10, i64 2696, !6, i64 2704, !6, i64 2708, !6, i64 2712, !6, i64 2716, !6, i64 2720, !10, i64 2728, !10, i64 2736, !6, i64 2744, !6, i64 2748, !6, i64 2752, !6, i64 2756, !6, i64 2760, !6, i64 2764, !10, i64 2768, !10, 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, !10, i64 2920, !10, i64 2928, !10, i64 2936, !10, 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}
!15 = !{!"long", !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !12, i64 32}
!18 = !{!"mergeT", !10, i64 0, !10, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !6, i64 64}
!19 = !{!18, !12, i64 40}
!20 = !{!14, !12, i64 2424}
!21 = !{!22, !6, i64 32}
!22 = !{!"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}
!23 = !{!18, !12, i64 16}
!24 = !{!25, !6, i64 108}
!25 = !{!"facetT", !10, i64 0, !10, i64 8, !10, 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}
!26 = !{!14, !6, i64 136}
!27 = !{!18, !12, i64 48}
!28 = !{!29, !6, i64 24}
!29 = !{!"ridgeT", !12, i64 0, !12, i64 8, !12, i64 16, !6, i64 24, !6, i64 28, !6, i64 28, !6, i64 28, !6, i64 28, !6, i64 28, !6, i64 28, !6, i64 28}
!30 = !{!18, !12, i64 56}
!31 = !{!18, !10, i64 8}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!14, !10, i64 1888}
!35 = !{!18, !6, i64 64}
!36 = !{!29, !12, i64 8}
!37 = !{!29, !12, 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"

%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] }
%union.setelemT = type { ptr }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@.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, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

.lr.ph:                                           ; preds = %2, %83
  %.094 = phi double [ %.1, %83 ], [ 0x7FEFFFFFFFFFFFFF, %2 ]
  %.05993 = phi i32 [ %.160, %83 ], [ -1, %2 ]
  %.06292 = phi i32 [ %.163, %83 ], [ %5, %2 ]
  %.06491 = phi i32 [ %86, %83 ], [ 0, %2 ]
  %.06690 = phi ptr [ %89, %83 ], [ %4, %2 ]
  %7 = getelementptr inbounds i8, ptr %.06690, i64 32
  %8 = load ptr, ptr %7, align 8, !tbaa !14
  %.not78 = icmp eq ptr %8, null
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.06690, i64 40
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !16
  br i1 %.not78, label %.thread, label %9

9:                                                ; preds = %.lr.ph
  %.not79 = icmp eq ptr %.pre, null
  br i1 %.not79, label %.thread.thread, label %29

.thread.thread:                                   ; preds = %9
  %10 = getelementptr inbounds i8, ptr %8, i64 32
  %11 = load i32, ptr %10, align 8, !tbaa !17
  %12 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !19
  br label %17

.thread:                                          ; preds = %.lr.ph
  %13 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !19
  %.not81 = icmp eq ptr %.pre, null
  br i1 %.not81, label %17, label %14

14:                                               ; preds = %.thread
  %15 = getelementptr inbounds i8, ptr %.pre, i64 32
  %16 = load i32, ptr %15, align 8, !tbaa !17
  br label %17

17:                                               ; preds = %.thread.thread, %.thread, %14
  %18 = phi ptr [ %13, %14 ], [ %13, %.thread ], [ %12, %.thread.thread ]
  %19 = phi i32 [ -1, %14 ], [ -1, %.thread ], [ %11, %.thread.thread ]
  %20 = phi i32 [ %16, %14 ], [ -1, %.thread ], [ -1, %.thread.thread ]
  %21 = getelementptr inbounds i8, ptr %.06690, i64 16
  %22 = load ptr, ptr %21, align 8, !tbaa !20
  %.not82 = icmp eq ptr %22, null
  br i1 %.not82, label %26, label %23

23:                                               ; preds = %17
  %24 = getelementptr inbounds i8, ptr %22, i64 108
  %25 = load i32, ptr %24, align 4, !tbaa !21
  br label %26

26:                                               ; preds = %17, %23
  %27 = phi i32 [ %25, %23 ], [ -1, %17 ]
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %18, i32 noundef 6299, ptr noundef nonnull @.str.187, i32 noundef %19, i32 noundef %20, i32 noundef %27) #2
  %28 = load ptr, ptr %21, align 8, !tbaa !20
  tail call void @qh_errexit(i32 noundef 5, ptr noundef %28, ptr noundef null) #2
  %.pre96 = load ptr, ptr %7, align 8, !tbaa !14
  br label %29

29:                                               ; preds = %26, %9
  %30 = phi ptr [ %.pre96, %26 ], [ %8, %9 ]
  %31 = getelementptr inbounds i8, ptr %30, i64 40
  %32 = load i8, ptr %31, align 8
  %33 = and i8 %32, 4
  %.not83 = icmp eq i8 %33, 0
  br i1 %.not83, label %34, label %40

34:                                               ; preds = %29
  %35 = getelementptr inbounds i8, ptr %.06690, i64 40
  %36 = load ptr, ptr %35, align 8, !tbaa !16
  %37 = getelementptr inbounds i8, ptr %36, i64 40
  %38 = load i8, ptr %37, align 8
  %39 = and i8 %38, 4
  %.not84 = icmp eq i8 %39, 0
  br i1 %.not84, label %78, label %40

40:                                               ; preds = %34, %29
  %41 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !23
  %42 = icmp sgt i32 %41, 2
  br i1 %42, label %43, label %73

43:                                               ; preds = %40
  %44 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !19
  %45 = getelementptr inbounds i8, ptr %30, i64 32
  %46 = load i32, ptr %45, align 8, !tbaa !17
  %47 = lshr i8 %32, 2
  %48 = and i8 %47, 1
  %49 = zext nneg i8 %48 to i32
  %50 = getelementptr inbounds i8, ptr %.06690, i64 40
  %51 = load ptr, ptr %50, align 8, !tbaa !16
  %52 = getelementptr inbounds i8, ptr %51, i64 32
  %53 = load i32, ptr %52, align 8, !tbaa !17
  %54 = getelementptr inbounds i8, ptr %51, i64 40
  %55 = load i8, ptr %54, align 8
  %56 = lshr i8 %55, 2
  %57 = and i8 %56, 1
  %58 = zext nneg i8 %57 to i32
  %59 = getelementptr inbounds i8, ptr %.06690, i64 48
  %60 = load ptr, ptr %59, align 8, !tbaa !24
  %.not85 = icmp eq ptr %60, null
  br i1 %.not85, label %64, label %61

61:                                               ; preds = %43
  %62 = getelementptr inbounds i8, ptr %60, i64 24
  %63 = load i32, ptr %62, align 8, !tbaa !25
  br label %64

64:                                               ; preds = %43, %61
  %65 = phi i32 [ %63, %61 ], [ -1, %43 ]
  %66 = getelementptr inbounds i8, ptr %.06690, i64 56
  %67 = load ptr, ptr %66, align 8, !tbaa !27
  %.not86 = icmp eq ptr %67, null
  br i1 %.not86, label %71, label %68

68:                                               ; preds = %64
  %69 = getelementptr inbounds i8, ptr %67, i64 24
  %70 = load i32, ptr %69, align 8, !tbaa !25
  br label %71

71:                                               ; preds = %64, %68
  %72 = phi i32 [ %70, %68 ], [ -1, %64 ]
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %44, i32 noundef 3030, ptr noundef nonnull @.str.188, i32 noundef %46, i32 noundef %49, i32 noundef %53, i32 noundef %58, i32 noundef %65, i32 noundef %72) #2
  br label %73

73:                                               ; preds = %71, %40
  tail call void @qh_drop_mergevertex(ptr noundef nonnull %.06690)
  %74 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2816), align 8, !tbaa !5
  %75 = tail call ptr @qh_setdelnth(ptr noundef %74, i32 noundef %.06491) #2
  %76 = add nsw i32 %.06491, -1
  %77 = add nsw i32 %.06292, -1
  tail call void @qh_memfree(ptr noundef nonnull %.06690, i32 noundef 72) #2
  br label %83

78:                                               ; preds = %34
  %79 = getelementptr inbounds i8, ptr %.06690, i64 8
  %80 = load double, ptr %79, align 8, !tbaa !28
  %81 = fcmp olt double %80, %.094
  br i1 %81, label %82, label %83

82:                                               ; preds = %78
  br label %83

83:                                               ; preds = %73, %82, %78
  %.165 = phi i32 [ %76, %73 ], [ %.06491, %82 ], [ %.06491, %78 ]
  %.163 = phi i32 [ %77, %73 ], [ %.06292, %82 ], [ %.06292, %78 ]
  %.160 = phi i32 [ %.05993, %73 ], [ %.06491, %82 ], [ %.05993, %78 ]
  %.1 = phi double [ %.094, %73 ], [ %80, %82 ], [ %.094, %78 ]
  %84 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2816), align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i64 8
  %86 = add nsw i32 %.165, 1
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [1 x %union.setelemT], ptr %85, i64 0, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !13
  %90 = icmp slt i32 %86, %.163
  br i1 %90, label %.lr.ph, label %._crit_edge, !llvm.loop !29

._crit_edge:                                      ; preds = %83
  %91 = icmp sgt i32 %.160, -1
  br i1 %91, label %92, label %.thread87

92:                                               ; preds = %._crit_edge
  %93 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2816), align 8, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %93, i64 8
  %95 = zext nneg i32 %.160 to i64
  %96 = getelementptr inbounds [1 x %union.setelemT], ptr %94, i64 0, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !13
  %98 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1888), align 8, !tbaa !31
  %99 = fdiv double %.1, %98
  %100 = fcmp ogt double %99, 1.000000e+02
  br i1 %100, label %101, label %166

101:                                              ; preds = %92
  %102 = getelementptr inbounds i8, ptr %97, i64 64
  %103 = load i32, ptr %102, align 8, !tbaa !32
  %104 = icmp eq i32 %103, 9
  br i1 %104, label %105, label %153

105:                                              ; preds = %101
  %106 = getelementptr inbounds i8, ptr %97, i64 48
  %107 = load ptr, ptr %106, align 8, !tbaa !24
  %108 = getelementptr inbounds i8, ptr %107, i64 8
  %109 = load ptr, ptr %108, align 8, !tbaa !33
  %110 = getelementptr inbounds i8, ptr %97, i64 56
  %111 = load ptr, ptr %110, align 8, !tbaa !27
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  %113 = load ptr, ptr %112, align 8, !tbaa !34
  %114 = icmp eq ptr %109, %113
  br i1 %114, label %115, label %139

115:                                              ; preds = %105
  %116 = getelementptr inbounds i8, ptr %107, i64 16
  %117 = load ptr, ptr %116, align 8, !tbaa !34
  %118 = getelementptr inbounds i8, ptr %111, i64 8
  %119 = load ptr, ptr %118, align 8, !tbaa !33
  %120 = icmp eq ptr %117, %119
  br i1 %120, label %121, label %139

121:                                              ; preds = %115
  %122 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !19
  %123 = getelementptr inbounds i8, ptr %107, i64 24
  %124 = load i32, ptr %123, align 8, !tbaa !25
  %125 = getelementptr inbounds i8, ptr %111, i64 24
  %126 = load i32, ptr %125, align 8, !tbaa !25
  %127 = getelementptr inbounds i8, ptr %109, i64 108
  %128 = load i32, ptr %127, align 4, !tbaa !21
  %129 = getelementptr inbounds i8, ptr %117, i64 108
  %130 = load i32, ptr %129, align 4, !tbaa !21
  %131 = getelementptr inbounds i8, ptr %97, i64 32
  %132 = load ptr, ptr %131, align 8, !tbaa !14
  %133 = getelementptr inbounds i8, ptr %132, i64 32
  %134 = load i32, ptr %133, align 8, !tbaa !17
  %135 = getelementptr inbounds i8, ptr %97, i64 40
  %136 = load ptr, ptr %135, align 8, !tbaa !16
  %137 = getelementptr inbounds i8, ptr %136, i64 32
  %138 = load i32, ptr %137, align 8, !tbaa !17
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %122, i32 noundef 6391, ptr noundef nonnull @.str.189, i32 noundef %124, i32 noundef %126, i32 noundef %128, i32 noundef %130, i32 noundef %134, i32 noundef %138, double noundef %.1, double noundef %99) #2
  br label %163

139:                                              ; preds = %115, %105
  %140 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !19
  %141 = getelementptr inbounds i8, ptr %107, i64 24
  %142 = load i32, ptr %141, align 8, !tbaa !25
  %143 = getelementptr inbounds i8, ptr %111, i64 24
  %144 = load i32, ptr %143, align 8, !tbaa !25
  %145 = getelementptr inbounds i8, ptr %97, i64 32
  %146 = load ptr, ptr %145, align 8, !tbaa !14
  %147 = getelementptr inbounds i8, ptr %146, i64 32
  %148 = load i32, ptr %147, align 8, !tbaa !17
  %149 = getelementptr inbounds i8, ptr %97, i64 40
  %150 = load ptr, ptr %149, align 8, !tbaa !16
  %151 = getelementptr inbounds i8, ptr %150, i64 32
  %152 = load i32, ptr %151, align 8, !tbaa !17
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %140, i32 noundef 6381, ptr noundef nonnull @.str.190, i32 noundef %142, i32 noundef %144, i32 noundef %148, i32 noundef %152, double noundef %.1, double noundef %99) #2
  br label %163

153:                                              ; preds = %101
  %154 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !19
  %155 = getelementptr inbounds i8, ptr %97, i64 32
  %156 = load ptr, ptr %155, align 8, !tbaa !14
  %157 = getelementptr inbounds i8, ptr %156, i64 32
  %158 = load i32, ptr %157, align 8, !tbaa !17
  %159 = getelementptr inbounds i8, ptr %97, i64 40
  %160 = load ptr, ptr %159, align 8, !tbaa !16
  %161 = getelementptr inbounds i8, ptr %160, i64 32
  %162 = load i32, ptr %161, align 8, !tbaa !17
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %154, i32 noundef 6208, ptr noundef nonnull @.str.191, i32 noundef %158, i32 noundef %162, double noundef %.1, double noundef %99) #2
  br label %163

163:                                              ; preds = %121, %139, %153
  %164 = getelementptr inbounds i8, ptr %97, i64 48
  %165 = load ptr, ptr %164, align 8, !tbaa !24
  tail call void @qh_errexit(i32 noundef 7, ptr noundef null, ptr noundef %165) #2
  %.pre97 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2816), align 8, !tbaa !5
  br label %166

166:                                              ; preds = %163, %92
  %167 = phi ptr [ %.pre97, %163 ], [ %93, %92 ]
  %168 = tail call ptr @qh_setdelnth(ptr noundef %167, i32 noundef %.160) #2
  br label %.thread87

.thread87:                                        ; preds = %2, %0, %166, %._crit_edge
  %.167 = phi ptr [ %97, %166 ], [ null, %._crit_edge ], [ null, %0 ], [ null, %2 ]
  ret ptr %.167
}

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, !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 = !{!8, !8, i64 0}
!14 = !{!15, !11, i64 32}
!15 = !{!"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}
!16 = !{!15, !11, i64 40}
!17 = !{!18, !7, i64 32}
!18 = !{!"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}
!19 = !{!6, !11, i64 2424}
!20 = !{!15, !11, i64 16}
!21 = !{!22, !7, i64 108}
!22 = !{!"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}
!23 = !{!6, !7, i64 136}
!24 = !{!15, !11, i64 48}
!25 = !{!26, !7, i64 24}
!26 = !{!"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}
!27 = !{!15, !11, i64 56}
!28 = !{!15, !10, i64 8}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!6, !10, i64 1888}
!32 = !{!15, !7, i64 64}
!33 = !{!26, !11, i64 8}
!34 = !{!26, !11, i64 16}


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