; 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.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.ridgeT = type { ptr, ptr, ptr, i32, i8 }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }

@qh_qh = external global %struct.qhT, align 8
@.str.110 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [139 x i8], align 1

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

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

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

declare i32 @qh_setsize(ptr noundef) #1

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

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

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

19:                                               ; preds = %1
  %20 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 13), align 8, !tbaa !15
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %23, label %22

22:                                               ; preds = %19, %1
  store i32 1, ptr %14, align 4
  br label %312

23:                                               ; preds = %19
  store ptr null, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.facetT, ptr %24, i32 0, i32 9
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %311

28:                                               ; preds = %23
  store i32 0, ptr %9, align 4, !tbaa !14
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.facetT, ptr %29, i32 0, i32 9
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %32 = getelementptr inbounds %struct.setT, ptr %31, i32 0, i32 1
  %33 = getelementptr inbounds [1 x %union.setelemT], ptr %32, i64 0, i64 0
  %34 = load ptr, ptr %33, align 8, !tbaa !18
  store ptr %34, ptr %4, align 8, !tbaa !5
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.facetT, ptr %35, i32 0, i32 9
  %37 = load ptr, ptr %36, align 8, !tbaa !16
  %38 = call i32 @qh_setsize(ptr noundef %37)
  store i32 %38, ptr %10, align 4, !tbaa !14
  br label %39

39:                                               ; preds = %300, %28
  %40 = load i32, ptr %9, align 4, !tbaa !14
  %41 = load i32, ptr %10, align 4, !tbaa !14
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %43, label %310

43:                                               ; preds = %39
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ridgeT, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !19
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = icmp eq ptr %46, %47
  br i1 %48, label %49, label %53

49:                                               ; preds = %43
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ridgeT, ptr %50, i32 0, i32 2
  %52 = load ptr, ptr %51, align 8, !tbaa !21
  br label %57

53:                                               ; preds = %43
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ridgeT, ptr %54, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !19
  br label %57

57:                                               ; preds = %53, %49
  %58 = phi ptr [ %52, %49 ], [ %56, %53 ]
  store ptr %58, ptr %3, align 8, !tbaa !5
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.facetT, ptr %59, i32 0, i32 15
  %61 = load i32, ptr %60, align 8
  %62 = lshr i32 %61, 30
  %63 = and i32 %62, 1
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %85, label %65

65:                                               ; preds = %57
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.facetT, ptr %66, i32 0, i32 15
  %68 = load i32, ptr %67, align 8
  %69 = lshr i32 %68, 31
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %85, label %71

71:                                               ; preds = %65
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.facetT, ptr %72, i32 0, i32 15
  %74 = load i32, ptr %73, align 8
  %75 = lshr i32 %74, 21
  %76 = and i32 %75, 1
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %85, label %78

78:                                               ; preds = %71
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.facetT, ptr %79, i32 0, i32 15
  %81 = load i32, ptr %80, align 8
  %82 = lshr i32 %81, 16
  %83 = and i32 %82, 1
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %78, %71, %65, %57
  br label %300

86:                                               ; preds = %78
  %87 = load i32, ptr %9, align 4, !tbaa !14
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %11, align 4, !tbaa !14
  br label %89

89:                                               ; preds = %296, %86
  %90 = load i32, ptr %11, align 4, !tbaa !14
  %91 = load i32, ptr %10, align 4, !tbaa !14
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %93, label %299

93:                                               ; preds = %89
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.facetT, ptr %94, i32 0, i32 9
  %96 = load ptr, ptr %95, align 8, !tbaa !16
  %97 = getelementptr inbounds %struct.setT, ptr %96, i32 0, i32 1
  %98 = load i32, ptr %11, align 4, !tbaa !14
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [1 x %union.setelemT], ptr %97, i64 0, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !18
  store ptr %101, ptr %5, align 8, !tbaa !5
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ridgeT, ptr %102, i32 0, i32 1
  %104 = load ptr, ptr %103, align 8, !tbaa !19
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = icmp eq ptr %104, %105
  br i1 %106, label %107, label %111

107:                                              ; preds = %93
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.ridgeT, ptr %108, i32 0, i32 2
  %110 = load ptr, ptr %109, align 8, !tbaa !21
  br label %115

111:                                              ; preds = %93
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.ridgeT, ptr %112, i32 0, i32 1
  %114 = load ptr, ptr %113, align 8, !tbaa !19
  br label %115

115:                                              ; preds = %111, %107
  %116 = phi ptr [ %110, %107 ], [ %114, %111 ]
  store ptr %116, ptr %3, align 8, !tbaa !5
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.facetT, ptr %117, i32 0, i32 15
  %119 = load i32, ptr %118, align 8
  %120 = lshr i32 %119, 30
  %121 = and i32 %120, 1
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %143, label %123

123:                                              ; preds = %115
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.facetT, ptr %124, i32 0, i32 15
  %126 = load i32, ptr %125, align 8
  %127 = lshr i32 %126, 31
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %143, label %129

129:                                              ; preds = %123
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.facetT, ptr %130, i32 0, i32 15
  %132 = load i32, ptr %131, align 8
  %133 = lshr i32 %132, 21
  %134 = and i32 %133, 1
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %143, label %136

136:                                              ; preds = %129
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.facetT, ptr %137, i32 0, i32 15
  %139 = load i32, ptr %138, align 8
  %140 = lshr i32 %139, 16
  %141 = and i32 %140, 1
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %144

143:                                              ; preds = %136, %129, %123, %115
  br label %296

144:                                              ; preds = %136
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.ridgeT, ptr %145, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !22
  %148 = getelementptr inbounds %struct.setT, ptr %147, i32 0, i32 1
  %149 = load i32, ptr %13, align 4, !tbaa !14
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [1 x %union.setelemT], ptr %148, i64 0, i64 %150
  %152 = load ptr, ptr %151, align 8, !tbaa !18
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.ridgeT, ptr %153, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8, !tbaa !22
  %156 = getelementptr inbounds %struct.setT, ptr %155, i32 0, i32 1
  %157 = load i32, ptr %13, align 4, !tbaa !14
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [1 x %union.setelemT], ptr %156, i64 0, i64 %158
  %160 = load ptr, ptr %159, align 8, !tbaa !18
  %161 = icmp eq ptr %152, %160
  br i1 %161, label %162, label %295

162:                                              ; preds = %144
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.ridgeT, ptr %163, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8, !tbaa !22
  %166 = getelementptr inbounds %struct.setT, ptr %165, i32 0, i32 1
  %167 = getelementptr inbounds [1 x %union.setelemT], ptr %166, i64 0, i64 0
  %168 = load ptr, ptr %167, align 8, !tbaa !18
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.ridgeT, ptr %169, i32 0, i32 0
  %171 = load ptr, ptr %170, align 8, !tbaa !22
  %172 = getelementptr inbounds %struct.setT, ptr %171, i32 0, i32 1
  %173 = getelementptr inbounds [1 x %union.setelemT], ptr %172, i64 0, i64 0
  %174 = load ptr, ptr %173, align 8, !tbaa !18
  %175 = icmp eq ptr %168, %174
  br i1 %175, label %176, label %294

176:                                              ; preds = %162
  store i32 1, ptr %12, align 4, !tbaa !14
  br label %177

177:                                              ; preds = %201, %176
  %178 = load i32, ptr %12, align 4, !tbaa !14
  %179 = load i32, ptr %13, align 4, !tbaa !14
  %180 = icmp slt i32 %178, %179
  br i1 %180, label %181, label %204

181:                                              ; preds = %177
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.ridgeT, ptr %182, i32 0, i32 0
  %184 = load ptr, ptr %183, align 8, !tbaa !22
  %185 = getelementptr inbounds %struct.setT, ptr %184, i32 0, i32 1
  %186 = load i32, ptr %12, align 4, !tbaa !14
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [1 x %union.setelemT], ptr %185, i64 0, i64 %187
  %189 = load ptr, ptr %188, align 8, !tbaa !18
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.ridgeT, ptr %190, i32 0, i32 0
  %192 = load ptr, ptr %191, align 8, !tbaa !22
  %193 = getelementptr inbounds %struct.setT, ptr %192, i32 0, i32 1
  %194 = load i32, ptr %12, align 4, !tbaa !14
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [1 x %union.setelemT], ptr %193, i64 0, i64 %195
  %197 = load ptr, ptr %196, align 8, !tbaa !18
  %198 = icmp ne ptr %189, %197
  br i1 %198, label %199, label %200

199:                                              ; preds = %181
  br label %204

200:                                              ; preds = %181
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %12, align 4, !tbaa !14
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %12, align 4, !tbaa !14
  br label %177, !llvm.loop !23

204:                                              ; preds = %199, %177
  %205 = load i32, ptr %12, align 4, !tbaa !14
  %206 = load i32, ptr %13, align 4, !tbaa !14
  %207 = icmp eq i32 %205, %206
  br i1 %207, label %208, label %293

208:                                              ; preds = %204
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = call ptr @qh_findbest_ridgevertex(ptr noundef %209, ptr noundef %7, ptr noundef %8)
  store ptr %210, ptr %6, align 8, !tbaa !5
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.ridgeT, ptr %211, i32 0, i32 1
  %213 = load ptr, ptr %212, align 8, !tbaa !19
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.ridgeT, ptr %214, i32 0, i32 2
  %216 = load ptr, ptr %215, align 8, !tbaa !21
  %217 = icmp eq ptr %213, %216
  br i1 %217, label %218, label %255

218:                                              ; preds = %208
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.ridgeT, ptr %219, i32 0, i32 2
  %221 = load ptr, ptr %220, align 8, !tbaa !21
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.ridgeT, ptr %222, i32 0, i32 1
  %224 = load ptr, ptr %223, align 8, !tbaa !19
  %225 = icmp eq ptr %221, %224
  br i1 %225, label %226, label %255

226:                                              ; preds = %218
  %227 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !25
  %228 = icmp sge i32 %227, 2
  br i1 %228, label %229, label %254

229:                                              ; preds = %226
  %230 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !26
  %231 = load ptr, ptr %7, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.vertexT, ptr %231, i32 0, i32 4
  %233 = load i32, ptr %232, align 8, !tbaa !27
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.vertexT, ptr %234, i32 0, i32 4
  %236 = load i32, ptr %235, align 8, !tbaa !27
  %237 = load double, ptr %8, align 8, !tbaa !29
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.ridgeT, ptr %238, i32 0, i32 3
  %240 = load i32, ptr %239, align 8, !tbaa !30
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.ridgeT, ptr %241, i32 0, i32 3
  %243 = load i32, ptr %242, align 8, !tbaa !30
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.ridgeT, ptr %244, i32 0, i32 1
  %246 = load ptr, ptr %245, align 8, !tbaa !19
  %247 = getelementptr inbounds %struct.facetT, ptr %246, i32 0, i32 14
  %248 = load i32, ptr %247, align 4, !tbaa !31
  %249 = load ptr, ptr %4, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.ridgeT, ptr %249, i32 0, i32 2
  %251 = load ptr, ptr %250, align 8, !tbaa !21
  %252 = getelementptr inbounds %struct.facetT, ptr %251, i32 0, i32 14
  %253 = load i32, ptr %252, align 4, !tbaa !31
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %230, i32 noundef 2088, ptr noundef @.str.110, i32 noundef %233, i32 noundef %236, double noundef %237, i32 noundef %240, i32 noundef %243, i32 noundef %248, i32 noundef %253)
  br label %254

254:                                              ; preds = %229, %226
  br label %277

255:                                              ; preds = %218, %208
  %256 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !25
  %257 = icmp sge i32 %256, 2
  br i1 %257, label %258, label %276

258:                                              ; preds = %255
  %259 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !26
  %260 = load ptr, ptr %7, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.vertexT, ptr %260, i32 0, i32 4
  %262 = load i32, ptr %261, align 8, !tbaa !27
  %263 = load ptr, ptr %6, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.vertexT, ptr %263, i32 0, i32 4
  %265 = load i32, ptr %264, align 8, !tbaa !27
  %266 = load double, ptr %8, align 8, !tbaa !29
  %267 = load ptr, ptr %4, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.ridgeT, ptr %267, i32 0, i32 3
  %269 = load i32, ptr %268, align 8, !tbaa !30
  %270 = load ptr, ptr %5, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.ridgeT, ptr %270, i32 0, i32 3
  %272 = load i32, ptr %271, align 8, !tbaa !30
  %273 = load ptr, ptr %2, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.facetT, ptr %273, i32 0, i32 14
  %275 = load i32, ptr %274, align 4, !tbaa !31
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %259, i32 noundef 2083, ptr noundef @.str.111, i32 noundef %262, i32 noundef %265, double noundef %266, i32 noundef %269, i32 noundef %272, i32 noundef %275)
  br label %276

276:                                              ; preds = %258, %255
  br label %277

277:                                              ; preds = %276, %254
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = load ptr, ptr %6, align 8, !tbaa !5
  %280 = load double, ptr %8, align 8, !tbaa !29
  %281 = load ptr, ptr %4, align 8, !tbaa !5
  %282 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_appendvertexmerge(ptr noundef %278, ptr noundef %279, i32 noundef 9, double noundef %280, ptr noundef %281, ptr noundef %282)
  %283 = load ptr, ptr %4, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.ridgeT, ptr %283, i32 0, i32 4
  %285 = load i8, ptr %284, align 4
  %286 = and i8 %285, -9
  %287 = or i8 %286, 8
  store i8 %287, ptr %284, align 4
  %288 = load ptr, ptr %5, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.ridgeT, ptr %288, i32 0, i32 4
  %290 = load i8, ptr %289, align 4
  %291 = and i8 %290, -9
  %292 = or i8 %291, 8
  store i8 %292, ptr %289, align 4
  br label %293

293:                                              ; preds = %277, %204
  br label %294

294:                                              ; preds = %293, %162
  br label %295

295:                                              ; preds = %294, %144
  br label %296

296:                                              ; preds = %295, %143
  %297 = load i32, ptr %11, align 4, !tbaa !14
  %298 = add nsw i32 %297, 1
  store i32 %298, ptr %11, align 4, !tbaa !14
  br label %89, !llvm.loop !32

299:                                              ; preds = %89
  br label %300

300:                                              ; preds = %299, %85
  %301 = load ptr, ptr %2, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.facetT, ptr %301, i32 0, i32 9
  %303 = load ptr, ptr %302, align 8, !tbaa !16
  %304 = getelementptr inbounds %struct.setT, ptr %303, i32 0, i32 1
  %305 = load i32, ptr %9, align 4, !tbaa !14
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr %9, align 4, !tbaa !14
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [1 x %union.setelemT], ptr %304, i64 0, i64 %307
  %309 = load ptr, ptr %308, align 8, !tbaa !18
  store ptr %309, ptr %4, align 8, !tbaa !5
  br label %39, !llvm.loop !33

310:                                              ; preds = %39
  br label %311

311:                                              ; preds = %310, %23
  store i32 0, ptr %14, align 4
  br label %312

312:                                              ; preds = %311, %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  %313 = load i32, ptr %14, align 4
  switch i32 %313, label %315 [
    i32 0, label %314
    i32 1, label %314
  ]

314:                                              ; preds = %312, %312
  ret void

315:                                              ; preds = %312
  unreachable
}

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, !11, i64 632}
!10 = !{!"qhT", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !12, i64 64, !12, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !6, i64 104, !11, i64 112, !11, i64 116, !6, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !12, i64 160, !12, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !12, i64 192, !12, i64 200, !11, i64 208, !11, i64 212, !12, i64 216, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !11, i64 296, !7, i64 300, !11, i64 416, !11, i64 420, !11, i64 424, !11, i64 428, !11, i64 432, !11, i64 436, !11, i64 440, !11, i64 444, !12, i64 448, !12, i64 456, !12, i64 464, !11, i64 472, !11, i64 476, !11, i64 480, !11, i64 484, !11, i64 488, !11, i64 492, !11, i64 496, !11, i64 500, !11, i64 504, !11, i64 508, !11, i64 512, !11, i64 516, !11, i64 520, !11, i64 524, !11, i64 528, !11, i64 532, !11, i64 536, !11, i64 540, !11, i64 544, !12, i64 552, !11, i64 560, !11, i64 564, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !11, i64 584, !11, i64 588, !12, i64 592, !11, i64 600, !6, i64 608, !6, i64 616, !11, i64 624, !11, i64 628, !11, i64 632, !11, i64 636, !11, i64 640, !6, i64 648, !11, i64 656, !6, i64 664, !11, i64 672, !7, i64 676, !11, i64 932, !7, i64 936, !7, i64 1192, !11, i64 1704, !11, i64 1708, !11, i64 1712, !11, i64 1716, !11, i64 1720, !11, 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, !11, 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, !11, i64 2440, !11, i64 2444, !11, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !11, i64 2496, !11, i64 2500, !6, i64 2504, !11, i64 2512, !6, i64 2520, !11, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !11, i64 2568, !11, i64 2572, !11, i64 2576, !11, i64 2580, !11, i64 2584, !11, i64 2588, !11, i64 2592, !11, i64 2596, !13, i64 2600, !11, i64 2608, !11, i64 2612, !11, i64 2616, !11, i64 2620, !11, i64 2624, !6, i64 2632, !6, i64 2640, !11, i64 2648, !11, i64 2652, !11, i64 2656, !12, i64 2664, !11, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !11, i64 2704, !11, i64 2708, !11, i64 2712, !11, i64 2716, !11, i64 2720, !12, i64 2728, !12, i64 2736, !11, i64 2744, !11, i64 2748, !11, i64 2752, !11, i64 2756, !11, i64 2760, !11, i64 2764, !12, i64 2768, !12, i64 2776, !11, i64 2784, !11, i64 2788, !11, i64 2792, !11, 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, !11, i64 2872, !6, i64 2880, !6, i64 2888, !11, i64 2896, !11, i64 2900, !11, i64 2904, !6, i64 2912, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, i64 2944, !11, i64 2952, !11, i64 2956, !11, i64 2960, !11, i64 2964, !11, i64 2968, !11, i64 2972, !6, i64 2976, !6, i64 2984, !11, i64 2992}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !11, i64 56}
!16 = !{!17, !6, i64 72}
!17 = !{!"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, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !6, i64 8}
!20 = !{!"ridgeT", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 28, !11, i64 28, !11, i64 28, !11, i64 28, !11, i64 28, !11, i64 28}
!21 = !{!20, !6, i64 16}
!22 = !{!20, !6, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!10, !11, i64 136}
!26 = !{!10, !6, i64 2424}
!27 = !{!28, !11, i64 32}
!28 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40}
!29 = !{!12, !12, i64 0}
!30 = !{!20, !11, i64 24}
!31 = !{!17, !11, i64 108}
!32 = distinct !{!32, !24}
!33 = distinct !{!33, !24}


; 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.110 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [139 x i8], align 1

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

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

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

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_maybe_duplicateridges(ptr noundef readonly %0) local_unnamed_addr #2 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %4 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !5
  %5 = add i32 %4, -2
  %6 = icmp sgt i32 %4, 2
  %7 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 56), align 8
  %8 = icmp ne i32 %7, 0
  %or.cond = select i1 %6, i1 %8, i1 false
  br i1 %or.cond, label %9, label %.loopexit88

9:                                                ; preds = %1
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %.loopexit88, label %12

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %11, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  %15 = tail call i32 @qh_setsize(ptr noundef nonnull %11) #3
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph98, label %.loopexit88

.lr.ph98:                                         ; preds = %12
  %17 = zext nneg i32 %5 to i64
  %18 = icmp ugt i32 %4, 3
  %19 = getelementptr inbounds i8, ptr %0, i64 108
  %20 = zext nneg i32 %15 to i64
  %wide.trip.count111 = zext nneg i32 %15 to i64
  %wide.trip.count = zext i32 %5 to i64
  br label %21

21:                                               ; preds = %.lr.ph98, %.loopexit
  %indvars.iv107 = phi i64 [ 0, %.lr.ph98 ], [ %33, %.loopexit ]
  %indvars.iv100 = phi i64 [ 1, %.lr.ph98 ], [ %indvars.iv.next101, %.loopexit ]
  %.06496 = phi ptr [ %14, %.lr.ph98 ], [ %129, %.loopexit ]
  %22 = getelementptr inbounds i8, ptr %.06496, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !16
  %24 = icmp eq ptr %23, %0
  br i1 %24, label %25, label %28

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %.06496, i64 16
  %27 = load ptr, ptr %26, align 8, !tbaa !18
  br label %28

28:                                               ; preds = %21, %25
  %29 = phi ptr [ %27, %25 ], [ %23, %21 ]
  %30 = getelementptr inbounds i8, ptr %29, i64 112
  %31 = load i32, ptr %30, align 8
  %32 = and i32 %31, -1071579136
  %or.cond83 = icmp eq i32 %32, 0
  %33 = add nuw nsw i64 %indvars.iv107, 1
  %34 = icmp ult i64 %33, %20
  %or.cond115 = select i1 %or.cond83, i1 %34, i1 false
  br i1 %or.cond115, label %.lr.ph94, label %.loopexit

.lr.ph94:                                         ; preds = %28
  %35 = getelementptr inbounds i8, ptr %.06496, i64 16
  %36 = getelementptr inbounds i8, ptr %.06496, i64 24
  %37 = getelementptr inbounds i8, ptr %.06496, i64 28
  br label %38

38:                                               ; preds = %.lr.ph94, %125
  %indvars.iv102 = phi i64 [ %indvars.iv100, %.lr.ph94 ], [ %indvars.iv.next103, %125 ]
  %39 = load ptr, ptr %10, align 8, !tbaa !13
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  %41 = getelementptr inbounds [1 x %union.setelemT], ptr %40, i64 0, i64 %indvars.iv102
  %42 = load ptr, ptr %41, align 8, !tbaa !15
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  %45 = icmp eq ptr %44, %0
  br i1 %45, label %46, label %49

46:                                               ; preds = %38
  %47 = getelementptr inbounds i8, ptr %42, i64 16
  %48 = load ptr, ptr %47, align 8, !tbaa !18
  br label %49

49:                                               ; preds = %38, %46
  %50 = phi ptr [ %48, %46 ], [ %44, %38 ]
  %51 = getelementptr inbounds i8, ptr %50, i64 112
  %52 = load i32, ptr %51, align 8
  %53 = and i32 %52, -1071579136
  %or.cond86 = icmp eq i32 %53, 0
  br i1 %or.cond86, label %54, label %125

54:                                               ; preds = %49
  %55 = load ptr, ptr %.06496, align 8, !tbaa !19
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  %57 = getelementptr inbounds [1 x %union.setelemT], ptr %56, i64 0, i64 %17
  %58 = load ptr, ptr %57, align 8, !tbaa !15
  %59 = load ptr, ptr %42, align 8, !tbaa !19
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  %61 = getelementptr inbounds [1 x %union.setelemT], ptr %60, i64 0, i64 %17
  %62 = load ptr, ptr %61, align 8, !tbaa !15
  %63 = icmp eq ptr %58, %62
  br i1 %63, label %64, label %125

64:                                               ; preds = %54
  %65 = load ptr, ptr %56, align 8, !tbaa !15
  %66 = load ptr, ptr %60, align 8, !tbaa !15
  %67 = icmp eq ptr %65, %66
  br i1 %67, label %.preheader, label %125

.preheader:                                       ; preds = %64
  br i1 %18, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader, %72
  %indvars.iv = phi i64 [ %indvars.iv.next, %72 ], [ 1, %.preheader ]
  %68 = getelementptr inbounds [1 x %union.setelemT], ptr %56, i64 0, i64 %indvars.iv
  %69 = load ptr, ptr %68, align 8, !tbaa !15
  %70 = getelementptr inbounds [1 x %union.setelemT], ptr %60, i64 0, i64 %indvars.iv
  %71 = load ptr, ptr %70, align 8, !tbaa !15
  %.not80 = icmp eq ptr %69, %71
  br i1 %.not80, label %72, label %._crit_edge.loopexit

72:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.thread, label %.lr.ph, !llvm.loop !20

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %73 = trunc nuw nsw i64 %indvars.iv to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %.0.lcssa = phi i32 [ 1, %.preheader ], [ %73, %._crit_edge.loopexit ]
  %74 = icmp eq i32 %.0.lcssa, %5
  br i1 %74, label %._crit_edge.thread, label %125

._crit_edge.thread:                               ; preds = %72, %._crit_edge
  %75 = call ptr @qh_findbest_ridgevertex(ptr noundef nonnull %.06496, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %76 = load ptr, ptr %22, align 8, !tbaa !16
  %77 = getelementptr inbounds i8, ptr %42, i64 16
  %78 = load ptr, ptr %77, align 8, !tbaa !18
  %79 = icmp eq ptr %76, %78
  br i1 %79, label %80, label %102

80:                                               ; preds = %._crit_edge.thread
  %81 = load ptr, ptr %35, align 8, !tbaa !18
  %82 = load ptr, ptr %43, align 8, !tbaa !16
  %83 = icmp eq ptr %81, %82
  br i1 %83, label %84, label %102

84:                                               ; preds = %80
  %85 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !22
  %86 = icmp sgt i32 %85, 1
  br i1 %86, label %87, label %117

87:                                               ; preds = %84
  %88 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !23
  %89 = load ptr, ptr %2, align 8, !tbaa !24
  %90 = getelementptr inbounds i8, ptr %89, i64 32
  %91 = load i32, ptr %90, align 8, !tbaa !25
  %92 = getelementptr inbounds i8, ptr %75, i64 32
  %93 = load i32, ptr %92, align 8, !tbaa !25
  %94 = load double, ptr %3, align 8, !tbaa !27
  %95 = load i32, ptr %36, align 8, !tbaa !28
  %96 = getelementptr inbounds i8, ptr %42, i64 24
  %97 = load i32, ptr %96, align 8, !tbaa !28
  %98 = getelementptr inbounds i8, ptr %76, i64 108
  %99 = load i32, ptr %98, align 4, !tbaa !29
  %100 = getelementptr inbounds i8, ptr %81, i64 108
  %101 = load i32, ptr %100, align 4, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %88, i32 noundef 2088, ptr noundef nonnull @.str.110, i32 noundef %91, i32 noundef %93, double noundef %94, i32 noundef %95, i32 noundef %97, i32 noundef %99, i32 noundef %101) #3
  br label %117

102:                                              ; preds = %80, %._crit_edge.thread
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !22
  %104 = icmp sgt i32 %103, 1
  br i1 %104, label %105, label %117

105:                                              ; preds = %102
  %106 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !23
  %107 = load ptr, ptr %2, align 8, !tbaa !24
  %108 = getelementptr inbounds i8, ptr %107, i64 32
  %109 = load i32, ptr %108, align 8, !tbaa !25
  %110 = getelementptr inbounds i8, ptr %75, i64 32
  %111 = load i32, ptr %110, align 8, !tbaa !25
  %112 = load double, ptr %3, align 8, !tbaa !27
  %113 = load i32, ptr %36, align 8, !tbaa !28
  %114 = getelementptr inbounds i8, ptr %42, i64 24
  %115 = load i32, ptr %114, align 8, !tbaa !28
  %116 = load i32, ptr %19, align 4, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %106, i32 noundef 2083, ptr noundef nonnull @.str.111, i32 noundef %109, i32 noundef %111, double noundef %112, i32 noundef %113, i32 noundef %115, i32 noundef %116) #3
  br label %117

117:                                              ; preds = %102, %105, %84, %87
  %118 = load ptr, ptr %2, align 8, !tbaa !24
  %119 = load double, ptr %3, align 8, !tbaa !27
  call void @qh_appendvertexmerge(ptr noundef %118, ptr noundef %75, i32 noundef 9, double noundef %119, ptr noundef nonnull %.06496, ptr noundef nonnull %42)
  %120 = load i8, ptr %37, align 4
  %121 = or i8 %120, 8
  store i8 %121, ptr %37, align 4
  %122 = getelementptr inbounds i8, ptr %42, i64 28
  %123 = load i8, ptr %122, align 4
  %124 = or i8 %123, 8
  store i8 %124, ptr %122, align 4
  br label %125

125:                                              ; preds = %54, %._crit_edge, %117, %64, %49
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %exitcond106.not = icmp eq i64 %indvars.iv.next103, %wide.trip.count111
  br i1 %exitcond106.not, label %.loopexit, label %38, !llvm.loop !30

.loopexit:                                        ; preds = %125, %28
  %126 = load ptr, ptr %10, align 8, !tbaa !13
  %127 = getelementptr inbounds i8, ptr %126, i64 8
  %128 = getelementptr inbounds [1 x %union.setelemT], ptr %127, i64 0, i64 %33
  %129 = load ptr, ptr %128, align 8, !tbaa !15
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %exitcond112.not = icmp eq i64 %33, %wide.trip.count111
  br i1 %exitcond112.not, label %.loopexit88, label %21, !llvm.loop !31

.loopexit88:                                      ; preds = %.loopexit, %12, %9, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

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


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