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

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

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

@.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, ptr noundef, i32 noundef, ptr noundef, ...) #1

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

18:                                               ; preds = %3
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.qhT, ptr %20, i32 0, i32 158
  %22 = load ptr, ptr %21, align 8, !tbaa !17
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.facetT, ptr %23, i32 0, i32 14
  %25 = load i32, ptr %24, align 4, !tbaa !18
  %26 = load i32, ptr %6, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %19, ptr noundef %22, i32 noundef 4028, ptr noundef @.str.103, i32 noundef %25, i32 noundef %26)
  br label %27

27:                                               ; preds = %18, %3
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %58

30:                                               ; preds = %27
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %31, ptr %7, align 8, !tbaa !5
  br label %32

32:                                               ; preds = %53, %30
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %40

35:                                               ; preds = %32
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.facetT, ptr %36, i32 0, i32 7
  %38 = load ptr, ptr %37, align 8, !tbaa !20
  %39 = icmp ne ptr %38, null
  br label %40

40:                                               ; preds = %35, %32
  %41 = phi i1 [ false, %32 ], [ %39, %35 ]
  br i1 %41, label %42, label %57

42:                                               ; preds = %40
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.facetT, ptr %43, i32 0, i32 15
  %45 = load i32, ptr %44, align 8
  %46 = and i32 %45, -8388609
  %47 = or i32 %46, 0
  store i32 %47, ptr %44, align 8
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.facetT, ptr %48, i32 0, i32 15
  %50 = load i32, ptr %49, align 8
  %51 = and i32 %50, -4194305
  %52 = or i32 %51, 0
  store i32 %52, ptr %49, align 8
  br label %53

53:                                               ; preds = %42
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.facetT, ptr %54, i32 0, i32 7
  %56 = load ptr, ptr %55, align 8, !tbaa !20
  store ptr %56, ptr %7, align 8, !tbaa !5
  br label %32, !llvm.loop !21

57:                                               ; preds = %40
  br label %58

58:                                               ; preds = %57, %27
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %187

61:                                               ; preds = %58
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %62, ptr %7, align 8, !tbaa !5
  br label %63

63:                                               ; preds = %182, %61
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %71

66:                                               ; preds = %63
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.facetT, ptr %67, i32 0, i32 7
  %69 = load ptr, ptr %68, align 8, !tbaa !20
  %70 = icmp ne ptr %69, null
  br label %71

71:                                               ; preds = %66, %63
  %72 = phi i1 [ false, %63 ], [ %70, %66 ]
  br i1 %72, label %73, label %186

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

80:                                               ; preds = %73
  store ptr null, ptr %8, align 8, !tbaa !5
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.facetT, ptr %81, i32 0, i32 10
  %83 = load ptr, ptr %82, align 8, !tbaa !23
  %84 = icmp ne ptr %83, null
  br i1 %84, label %85, label %180

85:                                               ; preds = %80
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.facetT, ptr %86, i32 0, i32 10
  %88 = load ptr, ptr %87, align 8, !tbaa !23
  %89 = getelementptr inbounds %struct.setT, ptr %88, i32 0, i32 1
  %90 = getelementptr inbounds [1 x %union.setelemT], ptr %89, i64 0, i64 0
  store ptr %90, ptr %9, align 8, !tbaa !5
  br label %91

91:                                               ; preds = %178, %99, %85
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = getelementptr inbounds ptr, ptr %92, i32 1
  store ptr %93, ptr %9, align 8, !tbaa !5
  %94 = load ptr, ptr %92, align 8, !tbaa !5
  store ptr %94, ptr %8, align 8, !tbaa !5
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %179

96:                                               ; preds = %91
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = icmp eq ptr %97, inttoptr (i64 2 to ptr)
  br i1 %98, label %99, label %105

99:                                               ; preds = %96
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.facetT, ptr %100, i32 0, i32 15
  %102 = load i32, ptr %101, align 8
  %103 = and i32 %102, -4194305
  %104 = or i32 %103, 4194304
  store i32 %104, ptr %101, align 8
  br label %91, !llvm.loop !24

105:                                              ; preds = %96
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.facetT, ptr %106, i32 0, i32 15
  %108 = load i32, ptr %107, align 8
  %109 = lshr i32 %108, 21
  %110 = and i32 %109, 1
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %178

112:                                              ; preds = %105
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.facetT, ptr %113, i32 0, i32 10
  %115 = load ptr, ptr %114, align 8, !tbaa !23
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = call i32 @qh_setin(ptr noundef %115, ptr noundef %116)
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %135, label %119

119:                                              ; preds = %112
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_appendmergeset(ptr noundef %120, ptr noundef %121, ptr noundef %122, i32 noundef 7, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.facetT, ptr %123, i32 0, i32 15
  %125 = load i32, ptr %124, align 8
  %126 = and i32 %125, -8388609
  %127 = or i32 %126, 8388608
  store i32 %127, ptr %124, align 8
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.facetT, ptr %128, i32 0, i32 15
  %130 = load i32, ptr %129, align 8
  %131 = and i32 %130, -4194305
  %132 = or i32 %131, 4194304
  store i32 %132, ptr %129, align 8
  %133 = load i32, ptr %10, align 4, !tbaa !9
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %10, align 4, !tbaa !9
  br label %177

135:                                              ; preds = %112
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.facetT, ptr %136, i32 0, i32 8
  %138 = load ptr, ptr %137, align 8, !tbaa !25
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.facetT, ptr %139, i32 0, i32 8
  %141 = load ptr, ptr %140, align 8, !tbaa !25
  %142 = call i32 @qh_setequal(ptr noundef %138, ptr noundef %141)
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %176

144:                                              ; preds = %135
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.qhT, ptr %145, i32 0, i32 29
  %147 = load i32, ptr %146, align 8, !tbaa !11
  %148 = icmp sge i32 %147, 3
  br i1 %148, label %149, label %160

149:                                              ; preds = %144
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.qhT, ptr %151, i32 0, i32 158
  %153 = load ptr, ptr %152, align 8, !tbaa !17
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.facetT, ptr %154, i32 0, i32 14
  %156 = load i32, ptr %155, align 4, !tbaa !18
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.facetT, ptr %157, i32 0, i32 14
  %159 = load i32, ptr %158, align 4, !tbaa !18
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %150, ptr noundef %153, i32 noundef 3043, ptr noundef @.str.104, i32 noundef %156, i32 noundef %159)
  br label %160

160:                                              ; preds = %149, %144
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_appendmergeset(ptr noundef %161, ptr noundef %162, ptr noundef %163, i32 noundef 7, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.facetT, ptr %164, i32 0, i32 15
  %166 = load i32, ptr %165, align 8
  %167 = and i32 %166, -8388609
  %168 = or i32 %167, 8388608
  store i32 %168, ptr %165, align 8
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.facetT, ptr %169, i32 0, i32 15
  %171 = load i32, ptr %170, align 8
  %172 = and i32 %171, -4194305
  %173 = or i32 %172, 4194304
  store i32 %173, ptr %170, align 8
  %174 = load i32, ptr %10, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %10, align 4, !tbaa !9
  br label %179

176:                                              ; preds = %135
  br label %177

177:                                              ; preds = %176, %119
  br label %178

178:                                              ; preds = %177, %105
  br label %91, !llvm.loop !24

179:                                              ; preds = %160, %91
  br label %180

180:                                              ; preds = %179, %80
  br label %181

181:                                              ; preds = %180, %73
  br label %182

182:                                              ; preds = %181
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.facetT, ptr %183, i32 0, i32 7
  %185 = load ptr, ptr %184, align 8, !tbaa !20
  store ptr %185, ptr %7, align 8, !tbaa !5
  br label %63, !llvm.loop !26

186:                                              ; preds = %71
  br label %187

187:                                              ; preds = %186, %58
  %188 = load i32, ptr %10, align 4, !tbaa !9
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %191, label %190

190:                                              ; preds = %187
  store i32 1, ptr %13, align 4
  br label %345

191:                                              ; preds = %187
  %192 = load i32, ptr %6, align 4, !tbaa !9
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %206, label %194

194:                                              ; preds = %191
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.qhT, ptr %195, i32 0, i32 29
  %197 = load i32, ptr %196, align 8, !tbaa !11
  %198 = icmp sge i32 %197, 1
  br i1 %198, label %199, label %205

199:                                              ; preds = %194
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.qhT, ptr %201, i32 0, i32 158
  %203 = load ptr, ptr %202, align 8, !tbaa !17
  %204 = load i32, ptr %10, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %200, ptr noundef %203, i32 noundef 1012, ptr noundef @.str.105, i32 noundef %204)
  br label %205

205:                                              ; preds = %199, %194
  store i32 1, ptr %13, align 4
  br label %345

206:                                              ; preds = %191
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.qhT, ptr %207, i32 0, i32 29
  %209 = load i32, ptr %208, align 8, !tbaa !11
  %210 = icmp sge i32 %209, 1
  br i1 %210, label %211, label %217

211:                                              ; preds = %206
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.qhT, ptr %213, i32 0, i32 158
  %215 = load ptr, ptr %214, align 8, !tbaa !17
  %216 = load i32, ptr %10, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %212, ptr noundef %215, i32 noundef 1048, ptr noundef @.str.106, i32 noundef %216)
  br label %217

217:                                              ; preds = %211, %206
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = icmp ne ptr %218, null
  br i1 %219, label %220, label %255

220:                                              ; preds = %217
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %221, ptr %7, align 8, !tbaa !5
  br label %222

222:                                              ; preds = %250, %220
  %223 = load ptr, ptr %7, align 8, !tbaa !5
  %224 = icmp ne ptr %223, null
  br i1 %224, label %225, label %230

225:                                              ; preds = %222
  %226 = load ptr, ptr %7, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.facetT, ptr %226, i32 0, i32 7
  %228 = load ptr, ptr %227, align 8, !tbaa !20
  %229 = icmp ne ptr %228, null
  br label %230

230:                                              ; preds = %225, %222
  %231 = phi i1 [ false, %222 ], [ %229, %225 ]
  br i1 %231, label %232, label %254

232:                                              ; preds = %230
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.facetT, ptr %233, i32 0, i32 15
  %235 = load i32, ptr %234, align 8
  %236 = lshr i32 %235, 22
  %237 = and i32 %236, 1
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %239, label %249

239:                                              ; preds = %232
  %240 = load ptr, ptr %7, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.facetT, ptr %240, i32 0, i32 15
  %242 = load i32, ptr %241, align 8
  %243 = lshr i32 %242, 23
  %244 = and i32 %243, 1
  %245 = icmp ne i32 %244, 0
  br i1 %245, label %249, label %246

246:                                              ; preds = %239
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  %248 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_makeridges(ptr noundef %247, ptr noundef %248)
  br label %249

249:                                              ; preds = %246, %239, %232
  br label %250

250:                                              ; preds = %249
  %251 = load ptr, ptr %7, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.facetT, ptr %251, i32 0, i32 7
  %253 = load ptr, ptr %252, align 8, !tbaa !20
  store ptr %253, ptr %7, align 8, !tbaa !5
  br label %222, !llvm.loop !27

254:                                              ; preds = %230
  br label %255

255:                                              ; preds = %254, %217
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.qhT, ptr %256, i32 0, i32 29
  %258 = load i32, ptr %257, align 8, !tbaa !11
  %259 = icmp sge i32 %258, 3
  br i1 %259, label %260, label %265

260:                                              ; preds = %255
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.qhT, ptr %262, i32 0, i32 158
  %264 = load ptr, ptr %263, align 8, !tbaa !17
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %261, ptr noundef %264, i32 noundef 3075, ptr noundef @.str.107)
  br label %265

265:                                              ; preds = %260, %255
  store ptr null, ptr %11, align 8, !tbaa !5
  %266 = load ptr, ptr %4, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.qhT, ptr %266, i32 0, i32 221
  %268 = load ptr, ptr %267, align 8, !tbaa !28
  %269 = icmp ne ptr %268, null
  br i1 %269, label %270, label %344

270:                                              ; preds = %265
  %271 = load ptr, ptr %4, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.qhT, ptr %271, i32 0, i32 221
  %273 = load ptr, ptr %272, align 8, !tbaa !28
  %274 = getelementptr inbounds %struct.setT, ptr %273, i32 0, i32 1
  %275 = getelementptr inbounds [1 x %union.setelemT], ptr %274, i64 0, i64 0
  store ptr %275, ptr %12, align 8, !tbaa !5
  br label %276

276:                                              ; preds = %342, %270
  %277 = load ptr, ptr %12, align 8, !tbaa !5
  %278 = getelementptr inbounds ptr, ptr %277, i32 1
  store ptr %278, ptr %12, align 8, !tbaa !5
  %279 = load ptr, ptr %277, align 8, !tbaa !5
  store ptr %279, ptr %11, align 8, !tbaa !5
  %280 = icmp ne ptr %279, null
  br i1 %280, label %281, label %343

281:                                              ; preds = %276
  %282 = load ptr, ptr %11, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.mergeT, ptr %282, i32 0, i32 8
  %284 = load i32, ptr %283, align 8, !tbaa !29
  %285 = icmp eq i32 %284, 7
  br i1 %285, label %286, label %342

286:                                              ; preds = %281
  %287 = load ptr, ptr %11, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.mergeT, ptr %287, i32 0, i32 3
  %289 = load ptr, ptr %288, align 8, !tbaa !31
  %290 = getelementptr inbounds %struct.facetT, ptr %289, i32 0, i32 15
  %291 = load i32, ptr %290, align 8
  %292 = lshr i32 %291, 23
  %293 = and i32 %292, 1
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %295, label %328

295:                                              ; preds = %286
  %296 = load ptr, ptr %11, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.mergeT, ptr %296, i32 0, i32 3
  %298 = load ptr, ptr %297, align 8, !tbaa !31
  %299 = getelementptr inbounds %struct.facetT, ptr %298, i32 0, i32 10
  %300 = load ptr, ptr %299, align 8, !tbaa !23
  %301 = load ptr, ptr %11, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.mergeT, ptr %301, i32 0, i32 2
  %303 = load ptr, ptr %302, align 8, !tbaa !32
  %304 = call i32 @qh_setin(ptr noundef %300, ptr noundef %303)
  %305 = icmp ne i32 %304, 0
  br i1 %305, label %306, label %328

306:                                              ; preds = %295
  %307 = load ptr, ptr %4, align 8, !tbaa !5
  %308 = load ptr, ptr %4, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.qhT, ptr %308, i32 0, i32 158
  %310 = load ptr, ptr %309, align 8, !tbaa !17
  %311 = load ptr, ptr %11, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.mergeT, ptr %311, i32 0, i32 2
  %313 = load ptr, ptr %312, align 8, !tbaa !32
  %314 = getelementptr inbounds %struct.facetT, ptr %313, i32 0, i32 14
  %315 = load i32, ptr %314, align 4, !tbaa !18
  %316 = load ptr, ptr %11, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.mergeT, ptr %316, i32 0, i32 3
  %318 = load ptr, ptr %317, align 8, !tbaa !31
  %319 = getelementptr inbounds %struct.facetT, ptr %318, i32 0, i32 14
  %320 = load i32, ptr %319, align 4, !tbaa !18
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %307, ptr noundef %310, i32 noundef 6361, ptr noundef @.str.108, i32 noundef %315, i32 noundef %320)
  %321 = load ptr, ptr %4, align 8, !tbaa !5
  %322 = load ptr, ptr %11, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.mergeT, ptr %322, i32 0, i32 2
  %324 = load ptr, ptr %323, align 8, !tbaa !32
  %325 = load ptr, ptr %11, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.mergeT, ptr %325, i32 0, i32 3
  %327 = load ptr, ptr %326, align 8, !tbaa !31
  call void @qh_errexit2(ptr noundef %321, i32 noundef 7, ptr noundef %324, ptr noundef %327)
  br label %337

328:                                              ; preds = %295, %286
  %329 = load ptr, ptr %4, align 8, !tbaa !5
  %330 = load ptr, ptr %11, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.mergeT, ptr %330, i32 0, i32 3
  %332 = load ptr, ptr %331, align 8, !tbaa !31
  %333 = getelementptr inbounds %struct.facetT, ptr %332, i32 0, i32 10
  %334 = load ptr, ptr %11, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.mergeT, ptr %334, i32 0, i32 2
  %336 = load ptr, ptr %335, align 8, !tbaa !32
  call void @qh_setappend(ptr noundef %329, ptr noundef %333, ptr noundef %336)
  br label %337

337:                                              ; preds = %328, %306
  %338 = load ptr, ptr %4, align 8, !tbaa !5
  %339 = load ptr, ptr %11, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.mergeT, ptr %339, i32 0, i32 2
  %341 = load ptr, ptr %340, align 8, !tbaa !32
  call void @qh_makeridges(ptr noundef %338, ptr noundef %341)
  br label %342

342:                                              ; preds = %337, %281
  br label %276, !llvm.loop !33

343:                                              ; preds = %276
  br label %344

344:                                              ; preds = %343, %265
  store i32 0, ptr %13, align 4
  br label %345

345:                                              ; preds = %344, %205, %190
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  %346 = load i32, ptr %13, align 4
  switch i32 %346, label %348 [
    i32 0, label %347
    i32 1, label %347
  ]

347:                                              ; preds = %345, %345
  ret void

348:                                              ; preds = %345
  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(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

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

declare void @qh_setappend(ptr noundef, 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, 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, !10, i64 2984, !10, i64 2988, !7, i64 2992, !7, i64 3192, !10, i64 3232, !13, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !15, i64 3272, !16, i64 3424}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"qhmemT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144}
!16 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !10, i64 5320, !10, i64 5324, !10, i64 5328, !10, i64 5332, !13, i64 5336}
!17 = !{!12, !6, i64 2424}
!18 = !{!19, !10, i64 108}
!19 = !{!"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}
!20 = !{!19, !6, i64 56}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!19, !6, i64 80}
!24 = distinct !{!24, !22}
!25 = !{!19, !6, i64 64}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}
!28 = !{!12, !6, i64 2800}
!29 = !{!30, !10, i64 64}
!30 = !{!"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}
!31 = !{!30, !6, i64 24}
!32 = !{!30, !6, i64 16}
!33 = distinct !{!33, !22}


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

@.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, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

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

.thread:                                          ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 2424
  %8 = load ptr, ptr %7, align 8, !tbaa !15
  %9 = getelementptr inbounds i8, ptr %1, i64 108
  %10 = load i32, ptr %9, align 4, !tbaa !16
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %8, i32 noundef 4028, ptr noundef nonnull @.str.103, i32 noundef %10, i32 noundef %2) #2
  br label %.preheader125

11:                                               ; preds = %3
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.critedge2.thread, label %.preheader125

.preheader125:                                    ; preds = %.thread, %11
  %12 = getelementptr inbounds i8, ptr %1, i64 56
  %13 = load ptr, ptr %12, align 8, !tbaa !18
  %.not102130 = icmp eq ptr %13, null
  br i1 %.not102130, label %.preheader124, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader125, %.lr.ph
  %14 = phi ptr [ %19, %.lr.ph ], [ %13, %.preheader125 ]
  %.091131 = phi ptr [ %14, %.lr.ph ], [ %1, %.preheader125 ]
  %15 = getelementptr inbounds i8, ptr %.091131, i64 112
  %16 = load i32, ptr %15, align 8
  %17 = and i32 %16, -12582913
  store i32 %17, ptr %15, align 8
  %18 = getelementptr inbounds i8, ptr %14, i64 56
  %19 = load ptr, ptr %18, align 8, !tbaa !18
  %.not102 = icmp eq ptr %19, null
  br i1 %.not102, label %.preheader124, label %.lr.ph, !llvm.loop !19

.preheader124:                                    ; preds = %.lr.ph, %.preheader125
  %20 = getelementptr inbounds i8, ptr %0, i64 2424
  br label %21

21:                                               ; preds = %.preheader124, %.loopexit
  %.089133 = phi i32 [ 0, %.preheader124 ], [ %.3, %.loopexit ]
  %.192132 = phi ptr [ %1, %.preheader124 ], [ %70, %.loopexit ]
  %22 = getelementptr inbounds i8, ptr %.192132, i64 56
  %23 = load ptr, ptr %22, align 8, !tbaa !18
  %.not104 = icmp eq ptr %23, null
  br i1 %.not104, label %.critedge2, label %24

24:                                               ; preds = %21
  %25 = getelementptr inbounds i8, ptr %.192132, i64 112
  %26 = load i32, ptr %25, align 8
  %27 = and i32 %26, 2097152
  %.not115 = icmp eq i32 %27, 0
  br i1 %.not115, label %.loopexit, label %28

28:                                               ; preds = %24
  %29 = getelementptr inbounds i8, ptr %.192132, i64 80
  %30 = load ptr, ptr %29, align 8, !tbaa !21
  %.not116 = icmp eq ptr %30, null
  br i1 %.not116, label %.loopexit, label %31

31:                                               ; preds = %28
  %32 = getelementptr inbounds i8, ptr %30, i64 8
  %33 = getelementptr inbounds i8, ptr %.192132, i64 64
  br label %.outer.outer

.outer.outer:                                     ; preds = %48, %31
  %.090.ph.ph = phi ptr [ %35, %48 ], [ %32, %31 ]
  %.1.ph.ph = phi i32 [ %51, %48 ], [ %.089133, %31 ]
  br label %.outer

.outer:                                           ; preds = %.outer.backedge, %.outer.outer
  %.090.ph = phi ptr [ %.090.ph.ph, %.outer.outer ], [ %35, %.outer.backedge ]
  br label %34

34:                                               ; preds = %.outer, %37
  %.090 = phi ptr [ %35, %37 ], [ %.090.ph, %.outer ]
  %35 = getelementptr inbounds i8, ptr %.090, i64 8
  %36 = load ptr, ptr %.090, align 8, !tbaa !22
  %magicptr = ptrtoint ptr %36 to i64
  switch i64 %magicptr, label %40 [
    i64 0, label %.loopexit
    i64 2, label %37
  ]

37:                                               ; preds = %34
  %38 = load i32, ptr %25, align 8
  %39 = or i32 %38, 4194304
  store i32 %39, ptr %25, align 8
  br label %34, !llvm.loop !23

40:                                               ; preds = %34
  %41 = getelementptr inbounds i8, ptr %36, i64 112
  %42 = load i32, ptr %41, align 8
  %43 = and i32 %42, 2097152
  %.not118 = icmp eq i32 %43, 0
  br i1 %.not118, label %.outer.backedge, label %44

44:                                               ; preds = %40
  %45 = getelementptr inbounds i8, ptr %36, i64 80
  %46 = load ptr, ptr %45, align 8, !tbaa !21
  %47 = tail call i32 @qh_setin(ptr noundef %46, ptr noundef nonnull %.192132) #2
  %.not119 = icmp eq i32 %47, 0
  br i1 %.not119, label %48, label %52

48:                                               ; preds = %44
  tail call void @qh_appendmergeset(ptr noundef %0, ptr noundef nonnull %.192132, ptr noundef nonnull %36, i32 noundef 7, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %49 = load i32, ptr %25, align 8
  %50 = or i32 %49, 12582912
  store i32 %50, ptr %25, align 8
  %51 = add nsw i32 %.1.ph.ph, 1
  br label %.outer.outer, !llvm.loop !23

52:                                               ; preds = %44
  %53 = load ptr, ptr %33, align 8, !tbaa !24
  %54 = getelementptr inbounds i8, ptr %36, i64 64
  %55 = load ptr, ptr %54, align 8, !tbaa !24
  %56 = tail call i32 @qh_setequal(ptr noundef %53, ptr noundef %55) #2
  %.not120 = icmp eq i32 %56, 0
  br i1 %.not120, label %.outer.backedge, label %57

.outer.backedge:                                  ; preds = %52, %40
  br label %.outer, !llvm.loop !23

57:                                               ; preds = %52
  %58 = load i32, ptr %4, align 8, !tbaa !5
  %59 = icmp sgt i32 %58, 2
  br i1 %59, label %60, label %66

60:                                               ; preds = %57
  %61 = load ptr, ptr %20, align 8, !tbaa !15
  %62 = getelementptr inbounds i8, ptr %.192132, i64 108
  %63 = load i32, ptr %62, align 4, !tbaa !16
  %64 = getelementptr inbounds i8, ptr %36, i64 108
  %65 = load i32, ptr %64, align 4, !tbaa !16
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %61, i32 noundef 3043, ptr noundef nonnull @.str.104, i32 noundef %63, i32 noundef %65) #2
  br label %66

66:                                               ; preds = %60, %57
  tail call void @qh_appendmergeset(ptr noundef nonnull %0, ptr noundef nonnull %.192132, ptr noundef nonnull %36, i32 noundef 7, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %67 = load i32, ptr %25, align 8
  %68 = or i32 %67, 12582912
  store i32 %68, ptr %25, align 8
  %69 = add nsw i32 %.1.ph.ph, 1
  br label %.loopexit

.loopexit:                                        ; preds = %34, %24, %66, %28
  %.3 = phi i32 [ %69, %66 ], [ %.089133, %28 ], [ %.089133, %24 ], [ %.1.ph.ph, %34 ]
  %70 = load ptr, ptr %22, align 8, !tbaa !18
  %.not103 = icmp eq ptr %70, null
  br i1 %.not103, label %.critedge2, label %21, !llvm.loop !25

.critedge2:                                       ; preds = %21, %.loopexit
  %.089.lcssa = phi i32 [ %.089133, %21 ], [ %.3, %.loopexit ]
  %.not105 = icmp eq i32 %.089.lcssa, 0
  br i1 %.not105, label %.critedge2.thread, label %71

71:                                               ; preds = %.critedge2
  %.not106 = icmp eq i32 %2, 0
  %72 = load i32, ptr %4, align 8, !tbaa !5
  %73 = icmp sgt i32 %72, 0
  br i1 %.not106, label %74, label %77

74:                                               ; preds = %71
  br i1 %73, label %75, label %.critedge2.thread

75:                                               ; preds = %74
  %76 = load ptr, ptr %20, align 8, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %76, i32 noundef 1012, ptr noundef nonnull @.str.105, i32 noundef %.089.lcssa) #2
  br label %.critedge2.thread

77:                                               ; preds = %71
  br i1 %73, label %78, label %.preheader123.preheader

78:                                               ; preds = %77
  %79 = load ptr, ptr %20, align 8, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %79, i32 noundef 1048, ptr noundef nonnull @.str.106, i32 noundef %.089.lcssa) #2
  br label %.preheader123.preheader

.preheader123.preheader:                          ; preds = %77, %78
  br label %.preheader123

.preheader123:                                    ; preds = %.preheader123.preheader, %87
  %.293134 = phi ptr [ %88, %87 ], [ %1, %.preheader123.preheader ]
  %80 = getelementptr inbounds i8, ptr %.293134, i64 56
  %81 = load ptr, ptr %80, align 8, !tbaa !18
  %.not108 = icmp eq ptr %81, null
  br i1 %.not108, label %.critedge4, label %82

82:                                               ; preds = %.preheader123
  %83 = getelementptr inbounds i8, ptr %.293134, i64 112
  %84 = load i32, ptr %83, align 8
  %85 = and i32 %84, 12582912
  %or.cond = icmp eq i32 %85, 4194304
  br i1 %or.cond, label %86, label %87

86:                                               ; preds = %82
  tail call void @qh_makeridges(ptr noundef %0, ptr noundef nonnull %.293134)
  %.pre = load ptr, ptr %80, align 8, !tbaa !18
  br label %87

87:                                               ; preds = %82, %86
  %88 = phi ptr [ %81, %82 ], [ %.pre, %86 ]
  %.not107 = icmp eq ptr %88, null
  br i1 %.not107, label %.critedge4, label %.preheader123, !llvm.loop !26

.critedge4:                                       ; preds = %.preheader123, %87
  %89 = load i32, ptr %4, align 8, !tbaa !5
  %90 = icmp sgt i32 %89, 2
  br i1 %90, label %91, label %93

91:                                               ; preds = %.critedge4
  %92 = load ptr, ptr %20, align 8, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %92, i32 noundef 3075, ptr noundef nonnull @.str.107) #2
  br label %93

93:                                               ; preds = %91, %.critedge4
  %94 = getelementptr inbounds i8, ptr %0, i64 2800
  %95 = load ptr, ptr %94, align 8, !tbaa !27
  %.not109 = icmp eq ptr %95, null
  br i1 %.not109, label %.critedge2.thread, label %.preheader

.preheader:                                       ; preds = %93
  %.0135 = getelementptr inbounds i8, ptr %95, i64 8
  %96 = load ptr, ptr %.0135, align 8, !tbaa !22
  %.not110136 = icmp eq ptr %96, null
  br i1 %.not110136, label %.critedge2.thread, label %.lr.ph138

.lr.ph138:                                        ; preds = %.preheader, %130
  %97 = phi ptr [ %131, %130 ], [ %96, %.preheader ]
  %.0137 = phi ptr [ %.0, %130 ], [ %.0135, %.preheader ]
  %98 = getelementptr inbounds i8, ptr %97, i64 64
  %99 = load i32, ptr %98, align 8, !tbaa !28
  %100 = icmp eq i32 %99, 7
  br i1 %100, label %101, label %130

101:                                              ; preds = %.lr.ph138
  %102 = getelementptr inbounds i8, ptr %97, i64 24
  %103 = load ptr, ptr %102, align 8, !tbaa !30
  %104 = getelementptr inbounds i8, ptr %103, i64 112
  %105 = load i32, ptr %104, align 8
  %106 = and i32 %105, 8388608
  %.not111 = icmp eq i32 %106, 0
  br i1 %.not111, label %122, label %107

107:                                              ; preds = %101
  %108 = getelementptr inbounds i8, ptr %103, i64 80
  %109 = load ptr, ptr %108, align 8, !tbaa !21
  %110 = getelementptr inbounds i8, ptr %97, i64 16
  %111 = load ptr, ptr %110, align 8, !tbaa !31
  %112 = tail call i32 @qh_setin(ptr noundef %109, ptr noundef %111) #2
  %.not112 = icmp eq i32 %112, 0
  %.pre143 = load ptr, ptr %102, align 8, !tbaa !30
  br i1 %.not112, label %122, label %113

113:                                              ; preds = %107
  %114 = load ptr, ptr %20, align 8, !tbaa !15
  %115 = load ptr, ptr %110, align 8, !tbaa !31
  %116 = getelementptr inbounds i8, ptr %115, i64 108
  %117 = load i32, ptr %116, align 4, !tbaa !16
  %118 = getelementptr inbounds i8, ptr %.pre143, i64 108
  %119 = load i32, ptr %118, align 4, !tbaa !16
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %114, i32 noundef 6361, ptr noundef nonnull @.str.108, i32 noundef %117, i32 noundef %119) #2
  %120 = load ptr, ptr %110, align 8, !tbaa !31
  %121 = load ptr, ptr %102, align 8, !tbaa !30
  tail call void @qh_errexit2(ptr noundef %0, i32 noundef 7, ptr noundef %120, ptr noundef %121) #2
  br label %127

122:                                              ; preds = %107, %101
  %123 = phi ptr [ %.pre143, %107 ], [ %103, %101 ]
  %124 = getelementptr inbounds i8, ptr %123, i64 80
  %125 = getelementptr inbounds i8, ptr %97, i64 16
  %126 = load ptr, ptr %125, align 8, !tbaa !31
  tail call void @qh_setappend(ptr noundef %0, ptr noundef nonnull %124, ptr noundef %126) #2
  br label %127

127:                                              ; preds = %122, %113
  %128 = getelementptr inbounds i8, ptr %97, i64 16
  %129 = load ptr, ptr %128, align 8, !tbaa !31
  tail call void @qh_makeridges(ptr noundef %0, ptr noundef %129)
  br label %130

130:                                              ; preds = %127, %.lr.ph138
  %.0 = getelementptr inbounds i8, ptr %.0137, i64 8
  %131 = load ptr, ptr %.0, align 8, !tbaa !22
  %.not110 = icmp eq ptr %131, null
  br i1 %.not110, label %.critedge2.thread, label %.lr.ph138, !llvm.loop !32

.critedge2.thread:                                ; preds = %130, %.preheader, %11, %93, %74, %75, %.critedge2
  ret void
}

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

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

declare void @qh_setappend(ptr noundef, 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, 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, !7, i64 2984, !7, i64 2988, !8, i64 2992, !8, i64 3192, !7, i64 3232, !10, i64 3240, !11, i64 3248, !11, i64 3256, !11, i64 3264, !13, i64 3272, !14, i64 3424}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"qhmemT", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !7, i64 64, !11, i64 72, !11, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144}
!14 = !{!"qhstatT", !8, i64 0, !8, i64 1992, !8, i64 2256, !8, i64 4248, !8, i64 4746, !8, i64 4995, !8, i64 5248, !7, i64 5320, !7, i64 5324, !7, i64 5328, !7, i64 5332, !10, i64 5336}
!15 = !{!6, !11, i64 2424}
!16 = !{!17, !7, i64 108}
!17 = !{!"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}
!18 = !{!17, !11, i64 56}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!17, !11, i64 80}
!22 = !{!11, !11, i64 0}
!23 = distinct !{!23, !20}
!24 = !{!17, !11, i64 64}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = !{!6, !11, i64 2800}
!28 = !{!29, !7, i64 64}
!29 = !{!"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}
!30 = !{!29, !11, i64 24}
!31 = !{!29, !11, i64 16}
!32 = distinct !{!32, !20}


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