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

@qh_qh = external global %struct.qhT, align 8
@.str.103 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [100 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: nounwind uwtable
define dso_local void @qh_mark_dupridges(ptr noundef %0, i32 noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  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 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %12 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !11
  %13 = icmp sge i32 %12, 4
  br i1 %13, label %14, label %20

14:                                               ; preds = %2
  %15 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.facetT, ptr %16, i32 0, i32 14
  %18 = load i32, ptr %17, align 4, !tbaa !16
  %19 = load i32, ptr %4, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %15, i32 noundef 4028, ptr noundef @.str.103, i32 noundef %18, i32 noundef %19)
  br label %20

20:                                               ; preds = %14, %2
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %51

23:                                               ; preds = %20
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %24, ptr %5, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %46, %23
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %33

28:                                               ; preds = %25
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.facetT, ptr %29, i32 0, i32 7
  %31 = load ptr, ptr %30, align 8, !tbaa !18
  %32 = icmp ne ptr %31, null
  br label %33

33:                                               ; preds = %28, %25
  %34 = phi i1 [ false, %25 ], [ %32, %28 ]
  br i1 %34, label %35, label %50

35:                                               ; preds = %33
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.facetT, ptr %36, i32 0, i32 15
  %38 = load i32, ptr %37, align 8
  %39 = and i32 %38, -8388609
  %40 = or i32 %39, 0
  store i32 %40, ptr %37, align 8
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.facetT, ptr %41, i32 0, i32 15
  %43 = load i32, ptr %42, align 8
  %44 = and i32 %43, -4194305
  %45 = or i32 %44, 0
  store i32 %45, ptr %42, align 8
  br label %46

46:                                               ; preds = %35
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.facetT, ptr %47, i32 0, i32 7
  %49 = load ptr, ptr %48, align 8, !tbaa !18
  store ptr %49, ptr %5, align 8, !tbaa !5
  br label %25, !llvm.loop !19

50:                                               ; preds = %33
  br label %51

51:                                               ; preds = %50, %20
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %173

54:                                               ; preds = %51
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %55, ptr %5, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %168, %54
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %64

59:                                               ; preds = %56
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.facetT, ptr %60, i32 0, i32 7
  %62 = load ptr, ptr %61, align 8, !tbaa !18
  %63 = icmp ne ptr %62, null
  br label %64

64:                                               ; preds = %59, %56
  %65 = phi i1 [ false, %56 ], [ %63, %59 ]
  br i1 %65, label %66, label %172

66:                                               ; preds = %64
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.facetT, ptr %67, i32 0, i32 15
  %69 = load i32, ptr %68, align 8
  %70 = lshr i32 %69, 21
  %71 = and i32 %70, 1
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %167

73:                                               ; preds = %66
  store ptr null, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.facetT, ptr %74, i32 0, i32 10
  %76 = load ptr, ptr %75, align 8, !tbaa !21
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %166

78:                                               ; preds = %73
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.facetT, ptr %79, i32 0, i32 10
  %81 = load ptr, ptr %80, align 8, !tbaa !21
  %82 = getelementptr inbounds %struct.setT, ptr %81, i32 0, i32 1
  %83 = getelementptr inbounds [1 x %union.setelemT], ptr %82, i64 0, i64 0
  store ptr %83, ptr %7, align 8, !tbaa !5
  br label %84

84:                                               ; preds = %164, %92, %78
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds ptr, ptr %85, i32 1
  store ptr %86, ptr %7, align 8, !tbaa !5
  %87 = load ptr, ptr %85, align 8, !tbaa !5
  store ptr %87, ptr %6, align 8, !tbaa !5
  %88 = icmp ne ptr %87, null
  br i1 %88, label %89, label %165

89:                                               ; preds = %84
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = icmp eq ptr %90, inttoptr (i64 2 to ptr)
  br i1 %91, label %92, label %98

92:                                               ; preds = %89
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.facetT, ptr %93, i32 0, i32 15
  %95 = load i32, ptr %94, align 8
  %96 = and i32 %95, -4194305
  %97 = or i32 %96, 4194304
  store i32 %97, ptr %94, align 8
  br label %84, !llvm.loop !22

98:                                               ; preds = %89
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.facetT, ptr %99, i32 0, i32 15
  %101 = load i32, ptr %100, align 8
  %102 = lshr i32 %101, 21
  %103 = and i32 %102, 1
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %164

105:                                              ; preds = %98
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.facetT, ptr %106, i32 0, i32 10
  %108 = load ptr, ptr %107, align 8, !tbaa !21
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = call i32 @qh_setin(ptr noundef %108, ptr noundef %109)
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %127, label %112

112:                                              ; preds = %105
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_appendmergeset(ptr noundef %113, ptr noundef %114, i32 noundef 7, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.facetT, ptr %115, i32 0, i32 15
  %117 = load i32, ptr %116, align 8
  %118 = and i32 %117, -8388609
  %119 = or i32 %118, 8388608
  store i32 %119, ptr %116, align 8
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.facetT, ptr %120, i32 0, i32 15
  %122 = load i32, ptr %121, align 8
  %123 = and i32 %122, -4194305
  %124 = or i32 %123, 4194304
  store i32 %124, ptr %121, align 8
  %125 = load i32, ptr %8, align 4, !tbaa !9
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %8, align 4, !tbaa !9
  br label %163

127:                                              ; preds = %105
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.facetT, ptr %128, i32 0, i32 8
  %130 = load ptr, ptr %129, align 8, !tbaa !23
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.facetT, ptr %131, i32 0, i32 8
  %133 = load ptr, ptr %132, align 8, !tbaa !23
  %134 = call i32 @qh_setequal(ptr noundef %130, ptr noundef %133)
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %162

136:                                              ; preds = %127
  %137 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !11
  %138 = icmp sge i32 %137, 3
  br i1 %138, label %139, label %147

139:                                              ; preds = %136
  %140 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.facetT, ptr %141, i32 0, i32 14
  %143 = load i32, ptr %142, align 4, !tbaa !16
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.facetT, ptr %144, i32 0, i32 14
  %146 = load i32, ptr %145, align 4, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %140, i32 noundef 3043, ptr noundef @.str.104, i32 noundef %143, i32 noundef %146)
  br label %147

147:                                              ; preds = %139, %136
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_appendmergeset(ptr noundef %148, ptr noundef %149, i32 noundef 7, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.facetT, ptr %150, i32 0, i32 15
  %152 = load i32, ptr %151, align 8
  %153 = and i32 %152, -8388609
  %154 = or i32 %153, 8388608
  store i32 %154, ptr %151, align 8
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.facetT, ptr %155, i32 0, i32 15
  %157 = load i32, ptr %156, align 8
  %158 = and i32 %157, -4194305
  %159 = or i32 %158, 4194304
  store i32 %159, ptr %156, align 8
  %160 = load i32, ptr %8, align 4, !tbaa !9
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %8, align 4, !tbaa !9
  br label %165

162:                                              ; preds = %127
  br label %163

163:                                              ; preds = %162, %112
  br label %164

164:                                              ; preds = %163, %98
  br label %84, !llvm.loop !22

165:                                              ; preds = %147, %84
  br label %166

166:                                              ; preds = %165, %73
  br label %167

167:                                              ; preds = %166, %66
  br label %168

168:                                              ; preds = %167
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.facetT, ptr %169, i32 0, i32 7
  %171 = load ptr, ptr %170, align 8, !tbaa !18
  store ptr %171, ptr %5, align 8, !tbaa !5
  br label %56, !llvm.loop !24

172:                                              ; preds = %64
  br label %173

173:                                              ; preds = %172, %51
  %174 = load i32, ptr %8, align 4, !tbaa !9
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %177, label %176

176:                                              ; preds = %173
  store i32 1, ptr %11, align 4
  br label %305

177:                                              ; preds = %173
  %178 = load i32, ptr %4, align 4, !tbaa !9
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %187, label %180

180:                                              ; preds = %177
  %181 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !11
  %182 = icmp sge i32 %181, 1
  br i1 %182, label %183, label %186

183:                                              ; preds = %180
  %184 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %185 = load i32, ptr %8, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %184, i32 noundef 1012, ptr noundef @.str.105, i32 noundef %185)
  br label %186

186:                                              ; preds = %183, %180
  store i32 1, ptr %11, align 4
  br label %305

187:                                              ; preds = %177
  %188 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !11
  %189 = icmp sge i32 %188, 1
  br i1 %189, label %190, label %193

190:                                              ; preds = %187
  %191 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %192 = load i32, ptr %8, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %191, i32 noundef 1048, ptr noundef @.str.106, i32 noundef %192)
  br label %193

193:                                              ; preds = %190, %187
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = icmp ne ptr %194, null
  br i1 %195, label %196, label %230

196:                                              ; preds = %193
  %197 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %197, ptr %5, align 8, !tbaa !5
  br label %198

198:                                              ; preds = %225, %196
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = icmp ne ptr %199, null
  br i1 %200, label %201, label %206

201:                                              ; preds = %198
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.facetT, ptr %202, i32 0, i32 7
  %204 = load ptr, ptr %203, align 8, !tbaa !18
  %205 = icmp ne ptr %204, null
  br label %206

206:                                              ; preds = %201, %198
  %207 = phi i1 [ false, %198 ], [ %205, %201 ]
  br i1 %207, label %208, label %229

208:                                              ; preds = %206
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.facetT, ptr %209, i32 0, i32 15
  %211 = load i32, ptr %210, align 8
  %212 = lshr i32 %211, 22
  %213 = and i32 %212, 1
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %224

215:                                              ; preds = %208
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.facetT, ptr %216, i32 0, i32 15
  %218 = load i32, ptr %217, align 8
  %219 = lshr i32 %218, 23
  %220 = and i32 %219, 1
  %221 = icmp ne i32 %220, 0
  br i1 %221, label %224, label %222

222:                                              ; preds = %215
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_makeridges(ptr noundef %223)
  br label %224

224:                                              ; preds = %222, %215, %208
  br label %225

225:                                              ; preds = %224
  %226 = load ptr, ptr %5, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.facetT, ptr %226, i32 0, i32 7
  %228 = load ptr, ptr %227, align 8, !tbaa !18
  store ptr %228, ptr %5, align 8, !tbaa !5
  br label %198, !llvm.loop !25

229:                                              ; preds = %206
  br label %230

230:                                              ; preds = %229, %193
  %231 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !11
  %232 = icmp sge i32 %231, 3
  br i1 %232, label %233, label %235

233:                                              ; preds = %230
  %234 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %234, i32 noundef 3075, ptr noundef @.str.107)
  br label %235

235:                                              ; preds = %233, %230
  store ptr null, ptr %9, align 8, !tbaa !5
  %236 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), align 8, !tbaa !26
  %237 = icmp ne ptr %236, null
  br i1 %237, label %238, label %304

238:                                              ; preds = %235
  %239 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), align 8, !tbaa !26
  %240 = getelementptr inbounds %struct.setT, ptr %239, i32 0, i32 1
  %241 = getelementptr inbounds [1 x %union.setelemT], ptr %240, i64 0, i64 0
  store ptr %241, ptr %10, align 8, !tbaa !5
  br label %242

242:                                              ; preds = %302, %238
  %243 = load ptr, ptr %10, align 8, !tbaa !5
  %244 = getelementptr inbounds ptr, ptr %243, i32 1
  store ptr %244, ptr %10, align 8, !tbaa !5
  %245 = load ptr, ptr %243, align 8, !tbaa !5
  store ptr %245, ptr %9, align 8, !tbaa !5
  %246 = icmp ne ptr %245, null
  br i1 %246, label %247, label %303

247:                                              ; preds = %242
  %248 = load ptr, ptr %9, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.mergeT, ptr %248, i32 0, i32 8
  %250 = load i32, ptr %249, align 8, !tbaa !27
  %251 = icmp eq i32 %250, 7
  br i1 %251, label %252, label %302

252:                                              ; preds = %247
  %253 = load ptr, ptr %9, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.mergeT, ptr %253, i32 0, i32 3
  %255 = load ptr, ptr %254, align 8, !tbaa !29
  %256 = getelementptr inbounds %struct.facetT, ptr %255, i32 0, i32 15
  %257 = load i32, ptr %256, align 8
  %258 = lshr i32 %257, 23
  %259 = and i32 %258, 1
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %261, label %290

261:                                              ; preds = %252
  %262 = load ptr, ptr %9, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.mergeT, ptr %262, i32 0, i32 3
  %264 = load ptr, ptr %263, align 8, !tbaa !29
  %265 = getelementptr inbounds %struct.facetT, ptr %264, i32 0, i32 10
  %266 = load ptr, ptr %265, align 8, !tbaa !21
  %267 = load ptr, ptr %9, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.mergeT, ptr %267, i32 0, i32 2
  %269 = load ptr, ptr %268, align 8, !tbaa !30
  %270 = call i32 @qh_setin(ptr noundef %266, ptr noundef %269)
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %272, label %290

272:                                              ; preds = %261
  %273 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %274 = load ptr, ptr %9, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.mergeT, ptr %274, i32 0, i32 2
  %276 = load ptr, ptr %275, align 8, !tbaa !30
  %277 = getelementptr inbounds %struct.facetT, ptr %276, i32 0, i32 14
  %278 = load i32, ptr %277, align 4, !tbaa !16
  %279 = load ptr, ptr %9, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.mergeT, ptr %279, i32 0, i32 3
  %281 = load ptr, ptr %280, align 8, !tbaa !29
  %282 = getelementptr inbounds %struct.facetT, ptr %281, i32 0, i32 14
  %283 = load i32, ptr %282, align 4, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %273, i32 noundef 6361, ptr noundef @.str.108, i32 noundef %278, i32 noundef %283)
  %284 = load ptr, ptr %9, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.mergeT, ptr %284, i32 0, i32 2
  %286 = load ptr, ptr %285, align 8, !tbaa !30
  %287 = load ptr, ptr %9, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.mergeT, ptr %287, i32 0, i32 3
  %289 = load ptr, ptr %288, align 8, !tbaa !29
  call void @qh_errexit2(i32 noundef 7, ptr noundef %286, ptr noundef %289)
  br label %298

290:                                              ; preds = %261, %252
  %291 = load ptr, ptr %9, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.mergeT, ptr %291, i32 0, i32 3
  %293 = load ptr, ptr %292, align 8, !tbaa !29
  %294 = getelementptr inbounds %struct.facetT, ptr %293, i32 0, i32 10
  %295 = load ptr, ptr %9, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.mergeT, ptr %295, i32 0, i32 2
  %297 = load ptr, ptr %296, align 8, !tbaa !30
  call void @qh_setappend(ptr noundef %294, ptr noundef %297)
  br label %298

298:                                              ; preds = %290, %272
  %299 = load ptr, ptr %9, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.mergeT, ptr %299, i32 0, i32 2
  %301 = load ptr, ptr %300, align 8, !tbaa !30
  call void @qh_makeridges(ptr noundef %301)
  br label %302

302:                                              ; preds = %298, %247
  br label %242, !llvm.loop !31

303:                                              ; preds = %242
  br label %304

304:                                              ; preds = %303, %235
  store i32 0, ptr %11, align 4
  br label %305

305:                                              ; preds = %304, %186, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  %306 = load i32, ptr %11, align 4
  switch i32 %306, label %308 [
    i32 0, label %307
    i32 1, label %307
  ]

307:                                              ; preds = %305, %305
  ret void

308:                                              ; preds = %305
  unreachable
}

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

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

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

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

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

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

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

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

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

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


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

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@.str.103 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [100 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_mark_dupridges(ptr noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %4 = icmp sgt i32 %3, 3
  br i1 %4, label %.thread, label %8

.thread:                                          ; preds = %2
  %5 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %6 = getelementptr inbounds i8, ptr %0, i64 108
  %7 = load i32, ptr %6, align 4, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %5, i32 noundef 4028, ptr noundef nonnull @.str.103, i32 noundef %7, i32 noundef %1) #2
  br label %.preheader100

8:                                                ; preds = %2
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %.critedge2.thread, label %.preheader100

.preheader100:                                    ; preds = %.thread, %8
  %9 = getelementptr inbounds i8, ptr %0, i64 56
  %10 = load ptr, ptr %9, align 8, !tbaa !16
  %.not77105 = icmp eq ptr %10, null
  br i1 %.not77105, label %.preheader99.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader100, %.lr.ph
  %11 = phi ptr [ %16, %.lr.ph ], [ %10, %.preheader100 ]
  %.066106 = phi ptr [ %11, %.lr.ph ], [ %0, %.preheader100 ]
  %12 = getelementptr inbounds i8, ptr %.066106, i64 112
  %13 = load i32, ptr %12, align 8
  %14 = and i32 %13, -12582913
  store i32 %14, ptr %12, align 8
  %15 = getelementptr inbounds i8, ptr %11, i64 56
  %16 = load ptr, ptr %15, align 8, !tbaa !16
  %.not77 = icmp eq ptr %16, null
  br i1 %.not77, label %.preheader99.preheader, label %.lr.ph, !llvm.loop !17

.preheader99.preheader:                           ; preds = %.lr.ph, %.preheader100
  br label %.preheader99

.preheader99:                                     ; preds = %.preheader99.preheader, %.loopexit
  %.064108 = phi i32 [ %.3, %.loopexit ], [ 0, %.preheader99.preheader ]
  %.167107 = phi ptr [ %65, %.loopexit ], [ %0, %.preheader99.preheader ]
  %17 = getelementptr inbounds i8, ptr %.167107, i64 56
  %18 = load ptr, ptr %17, align 8, !tbaa !16
  %.not79 = icmp eq ptr %18, null
  br i1 %.not79, label %.critedge2, label %19

19:                                               ; preds = %.preheader99
  %20 = getelementptr inbounds i8, ptr %.167107, i64 112
  %21 = load i32, ptr %20, align 8
  %22 = and i32 %21, 2097152
  %.not90 = icmp eq i32 %22, 0
  br i1 %.not90, label %.loopexit, label %23

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %.167107, i64 80
  %25 = load ptr, ptr %24, align 8, !tbaa !19
  %.not91 = icmp eq ptr %25, null
  br i1 %.not91, label %.loopexit, label %26

26:                                               ; preds = %23
  %27 = getelementptr inbounds i8, ptr %25, i64 8
  %28 = getelementptr inbounds i8, ptr %.167107, i64 64
  br label %.outer.outer

.outer.outer:                                     ; preds = %43, %26
  %.065.ph.ph = phi ptr [ %30, %43 ], [ %27, %26 ]
  %.1.ph.ph = phi i32 [ %46, %43 ], [ %.064108, %26 ]
  br label %.outer

.outer:                                           ; preds = %.outer.backedge, %.outer.outer
  %.065.ph = phi ptr [ %.065.ph.ph, %.outer.outer ], [ %30, %.outer.backedge ]
  br label %29

29:                                               ; preds = %.outer, %32
  %.065 = phi ptr [ %30, %32 ], [ %.065.ph, %.outer ]
  %30 = getelementptr inbounds i8, ptr %.065, i64 8
  %31 = load ptr, ptr %.065, align 8, !tbaa !20
  %magicptr = ptrtoint ptr %31 to i64
  switch i64 %magicptr, label %35 [
    i64 0, label %.loopexit
    i64 2, label %32
  ]

32:                                               ; preds = %29
  %33 = load i32, ptr %20, align 8
  %34 = or i32 %33, 4194304
  store i32 %34, ptr %20, align 8
  br label %29, !llvm.loop !21

35:                                               ; preds = %29
  %36 = getelementptr inbounds i8, ptr %31, i64 112
  %37 = load i32, ptr %36, align 8
  %38 = and i32 %37, 2097152
  %.not93 = icmp eq i32 %38, 0
  br i1 %.not93, label %.outer.backedge, label %39

39:                                               ; preds = %35
  %40 = getelementptr inbounds i8, ptr %31, i64 80
  %41 = load ptr, ptr %40, align 8, !tbaa !19
  %42 = tail call i32 @qh_setin(ptr noundef %41, ptr noundef nonnull %.167107) #2
  %.not94 = icmp eq i32 %42, 0
  br i1 %.not94, label %43, label %47

43:                                               ; preds = %39
  tail call void @qh_appendmergeset(ptr noundef nonnull %.167107, ptr noundef nonnull %31, i32 noundef 7, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %44 = load i32, ptr %20, align 8
  %45 = or i32 %44, 12582912
  store i32 %45, ptr %20, align 8
  %46 = add nsw i32 %.1.ph.ph, 1
  br label %.outer.outer, !llvm.loop !21

47:                                               ; preds = %39
  %48 = load ptr, ptr %28, align 8, !tbaa !22
  %49 = getelementptr inbounds i8, ptr %31, i64 64
  %50 = load ptr, ptr %49, align 8, !tbaa !22
  %51 = tail call i32 @qh_setequal(ptr noundef %48, ptr noundef %50) #2
  %.not95 = icmp eq i32 %51, 0
  br i1 %.not95, label %.outer.backedge, label %52

.outer.backedge:                                  ; preds = %47, %35
  br label %.outer, !llvm.loop !21

52:                                               ; preds = %47
  %53 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %54 = icmp sgt i32 %53, 2
  br i1 %54, label %55, label %61

55:                                               ; preds = %52
  %56 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %57 = getelementptr inbounds i8, ptr %.167107, i64 108
  %58 = load i32, ptr %57, align 4, !tbaa !14
  %59 = getelementptr inbounds i8, ptr %31, i64 108
  %60 = load i32, ptr %59, align 4, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %56, i32 noundef 3043, ptr noundef nonnull @.str.104, i32 noundef %58, i32 noundef %60) #2
  br label %61

61:                                               ; preds = %55, %52
  tail call void @qh_appendmergeset(ptr noundef nonnull %.167107, ptr noundef nonnull %31, i32 noundef 7, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %62 = load i32, ptr %20, align 8
  %63 = or i32 %62, 12582912
  store i32 %63, ptr %20, align 8
  %64 = add nsw i32 %.1.ph.ph, 1
  br label %.loopexit

.loopexit:                                        ; preds = %29, %19, %61, %23
  %.3 = phi i32 [ %64, %61 ], [ %.064108, %23 ], [ %.064108, %19 ], [ %.1.ph.ph, %29 ]
  %65 = load ptr, ptr %17, align 8, !tbaa !16
  %.not78 = icmp eq ptr %65, null
  br i1 %.not78, label %.critedge2, label %.preheader99, !llvm.loop !23

.critedge2:                                       ; preds = %.preheader99, %.loopexit
  %.064.lcssa = phi i32 [ %.064108, %.preheader99 ], [ %.3, %.loopexit ]
  %.not80 = icmp eq i32 %.064.lcssa, 0
  br i1 %.not80, label %.critedge2.thread, label %66

66:                                               ; preds = %.critedge2
  %.not81 = icmp eq i32 %1, 0
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %68 = icmp sgt i32 %67, 0
  br i1 %.not81, label %69, label %72

69:                                               ; preds = %66
  br i1 %68, label %70, label %.critedge2.thread

70:                                               ; preds = %69
  %71 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %71, i32 noundef 1012, ptr noundef nonnull @.str.105, i32 noundef %.064.lcssa) #2
  br label %.critedge2.thread

72:                                               ; preds = %66
  br i1 %68, label %73, label %.preheader98.preheader

73:                                               ; preds = %72
  %74 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %74, i32 noundef 1048, ptr noundef nonnull @.str.106, i32 noundef %.064.lcssa) #2
  br label %.preheader98.preheader

.preheader98.preheader:                           ; preds = %72, %73
  br label %.preheader98

.preheader98:                                     ; preds = %.preheader98.preheader, %82
  %.268109 = phi ptr [ %83, %82 ], [ %0, %.preheader98.preheader ]
  %75 = getelementptr inbounds i8, ptr %.268109, i64 56
  %76 = load ptr, ptr %75, align 8, !tbaa !16
  %.not83 = icmp eq ptr %76, null
  br i1 %.not83, label %.critedge4, label %77

77:                                               ; preds = %.preheader98
  %78 = getelementptr inbounds i8, ptr %.268109, i64 112
  %79 = load i32, ptr %78, align 8
  %80 = and i32 %79, 12582912
  %or.cond = icmp eq i32 %80, 4194304
  br i1 %or.cond, label %81, label %82

81:                                               ; preds = %77
  tail call void @qh_makeridges(ptr noundef nonnull %.268109)
  %.pre = load ptr, ptr %75, align 8, !tbaa !16
  br label %82

82:                                               ; preds = %77, %81
  %83 = phi ptr [ %76, %77 ], [ %.pre, %81 ]
  %.not82 = icmp eq ptr %83, null
  br i1 %.not82, label %.critedge4, label %.preheader98, !llvm.loop !24

.critedge4:                                       ; preds = %.preheader98, %82
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %85 = icmp sgt i32 %84, 2
  br i1 %85, label %86, label %88

86:                                               ; preds = %.critedge4
  %87 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %87, i32 noundef 3075, ptr noundef nonnull @.str.107) #2
  br label %88

88:                                               ; preds = %86, %.critedge4
  %89 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2800), align 8, !tbaa !25
  %.not84 = icmp eq ptr %89, null
  br i1 %.not84, label %.critedge2.thread, label %.preheader

.preheader:                                       ; preds = %88
  %.0110 = getelementptr inbounds i8, ptr %89, i64 8
  %90 = load ptr, ptr %.0110, align 8, !tbaa !20
  %.not85111 = icmp eq ptr %90, null
  br i1 %.not85111, label %.critedge2.thread, label %.lr.ph113

.lr.ph113:                                        ; preds = %.preheader, %124
  %91 = phi ptr [ %125, %124 ], [ %90, %.preheader ]
  %.0112 = phi ptr [ %.0, %124 ], [ %.0110, %.preheader ]
  %92 = getelementptr inbounds i8, ptr %91, i64 64
  %93 = load i32, ptr %92, align 8, !tbaa !26
  %94 = icmp eq i32 %93, 7
  br i1 %94, label %95, label %124

95:                                               ; preds = %.lr.ph113
  %96 = getelementptr inbounds i8, ptr %91, i64 24
  %97 = load ptr, ptr %96, align 8, !tbaa !28
  %98 = getelementptr inbounds i8, ptr %97, i64 112
  %99 = load i32, ptr %98, align 8
  %100 = and i32 %99, 8388608
  %.not86 = icmp eq i32 %100, 0
  br i1 %.not86, label %116, label %101

101:                                              ; preds = %95
  %102 = getelementptr inbounds i8, ptr %97, i64 80
  %103 = load ptr, ptr %102, align 8, !tbaa !19
  %104 = getelementptr inbounds i8, ptr %91, i64 16
  %105 = load ptr, ptr %104, align 8, !tbaa !29
  %106 = tail call i32 @qh_setin(ptr noundef %103, ptr noundef %105) #2
  %.not87 = icmp eq i32 %106, 0
  %.pre118 = load ptr, ptr %96, align 8, !tbaa !28
  br i1 %.not87, label %116, label %107

107:                                              ; preds = %101
  %108 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %109 = load ptr, ptr %104, align 8, !tbaa !29
  %110 = getelementptr inbounds i8, ptr %109, i64 108
  %111 = load i32, ptr %110, align 4, !tbaa !14
  %112 = getelementptr inbounds i8, ptr %.pre118, i64 108
  %113 = load i32, ptr %112, align 4, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %108, i32 noundef 6361, ptr noundef nonnull @.str.108, i32 noundef %111, i32 noundef %113) #2
  %114 = load ptr, ptr %104, align 8, !tbaa !29
  %115 = load ptr, ptr %96, align 8, !tbaa !28
  tail call void @qh_errexit2(i32 noundef 7, ptr noundef %114, ptr noundef %115) #2
  br label %121

116:                                              ; preds = %101, %95
  %117 = phi ptr [ %.pre118, %101 ], [ %97, %95 ]
  %118 = getelementptr inbounds i8, ptr %117, i64 80
  %119 = getelementptr inbounds i8, ptr %91, i64 16
  %120 = load ptr, ptr %119, align 8, !tbaa !29
  tail call void @qh_setappend(ptr noundef nonnull %118, ptr noundef %120) #2
  br label %121

121:                                              ; preds = %116, %107
  %122 = getelementptr inbounds i8, ptr %91, i64 16
  %123 = load ptr, ptr %122, align 8, !tbaa !29
  tail call void @qh_makeridges(ptr noundef %123)
  br label %124

124:                                              ; preds = %121, %.lr.ph113
  %.0 = getelementptr inbounds i8, ptr %.0112, i64 8
  %125 = load ptr, ptr %.0, align 8, !tbaa !20
  %.not85 = icmp eq ptr %125, null
  br i1 %.not85, label %.critedge2.thread, label %.lr.ph113, !llvm.loop !30

.critedge2.thread:                                ; preds = %124, %.preheader, %8, %88, %69, %70, %.critedge2
  ret void
}

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

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

declare void @qh_setappend(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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


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