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

@.str.147 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [60 x i8], align 1

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

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

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

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

declare ptr @qh_setdel(ptr noundef, ptr noundef) #1

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

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

22:                                               ; preds = %54, %3
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %56

25:                                               ; preds = %22
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.facetT, ptr %26, i32 0, i32 13
  %28 = load i32, ptr %27, align 8, !tbaa !18
  %29 = load i32, ptr %12, align 4, !tbaa !9
  %30 = icmp eq i32 %28, %29
  br i1 %30, label %38, label %31

31:                                               ; preds = %25
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.facetT, ptr %32, i32 0, i32 15
  %34 = load i32, ptr %33, align 8
  %35 = lshr i32 %34, 11
  %36 = and i32 %35, 1
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %41

38:                                               ; preds = %31, %25
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_infiniteloop(ptr noundef %39, ptr noundef %40)
  br label %41

41:                                               ; preds = %38, %31
  %42 = load i32, ptr %12, align 4, !tbaa !9
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.facetT, ptr %43, i32 0, i32 13
  store i32 %42, ptr %44, align 8, !tbaa !18
  br label %45

45:                                               ; preds = %41
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = icmp eq ptr %46, %47
  br i1 %48, label %49, label %50

49:                                               ; preds = %45
  br label %54

50:                                               ; preds = %45
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.facetT, ptr %51, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !17
  br label %54

54:                                               ; preds = %50, %49
  %55 = phi ptr [ null, %49 ], [ %53, %50 ]
  store ptr %55, ptr %7, align 8, !tbaa !5
  br label %22, !llvm.loop !20

56:                                               ; preds = %22
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.qhT, ptr %57, i32 0, i32 217
  %59 = load i32, ptr %58, align 8, !tbaa !11
  %60 = add i32 %59, 1
  store i32 %60, ptr %58, align 8, !tbaa !11
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.facetT, ptr %61, i32 0, i32 13
  store i32 %60, ptr %62, align 8, !tbaa !18
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.qhT, ptr %63, i32 0, i32 29
  %65 = load i32, ptr %64, align 8, !tbaa !22
  %66 = icmp sge i32 %65, 4
  br i1 %66, label %67, label %72

67:                                               ; preds = %56
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.qhT, ptr %69, i32 0, i32 158
  %71 = load ptr, ptr %70, align 8, !tbaa !23
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %68, ptr noundef %71, i32 noundef 4031, ptr noundef @.str.147)
  br label %72

72:                                               ; preds = %67, %56
  store ptr null, ptr %8, align 8, !tbaa !5
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.facetT, ptr %73, i32 0, i32 10
  %75 = load ptr, ptr %74, align 8, !tbaa !24
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %107

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

83:                                               ; preds = %105, %77
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds ptr, ptr %84, i32 1
  store ptr %85, ptr %9, align 8, !tbaa !5
  %86 = load ptr, ptr %84, align 8, !tbaa !5
  store ptr %86, ptr %8, align 8, !tbaa !5
  %87 = icmp ne ptr %86, null
  br i1 %87, label %88, label %106

88:                                               ; preds = %83
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.facetT, ptr %89, i32 0, i32 13
  %91 = load i32, ptr %90, align 8, !tbaa !18
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = icmp eq i32 %91, %92
  br i1 %93, label %94, label %99

94:                                               ; preds = %88
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = getelementptr inbounds ptr, ptr %95, i64 -1
  store ptr null, ptr %96, align 8, !tbaa !5
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %10, align 4, !tbaa !9
  br label %105

99:                                               ; preds = %88
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.qhT, ptr %100, i32 0, i32 217
  %102 = load i32, ptr %101, align 8, !tbaa !11
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.facetT, ptr %103, i32 0, i32 13
  store i32 %102, ptr %104, align 8, !tbaa !18
  br label %105

105:                                              ; preds = %99, %94
  br label %83, !llvm.loop !25

106:                                              ; preds = %83
  br label %107

107:                                              ; preds = %106, %72
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.facetT, ptr %109, i32 0, i32 10
  %111 = load ptr, ptr %110, align 8, !tbaa !24
  call void @qh_setcompact(ptr noundef %108, ptr noundef %111)
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.qhT, ptr %112, i32 0, i32 29
  %114 = load i32, ptr %113, align 8, !tbaa !22
  %115 = icmp sge i32 %114, 4
  br i1 %115, label %116, label %121

116:                                              ; preds = %107
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.qhT, ptr %118, i32 0, i32 158
  %120 = load ptr, ptr %119, align 8, !tbaa !23
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %117, ptr noundef %120, i32 noundef 4032, ptr noundef @.str.148)
  br label %121

121:                                              ; preds = %116, %107
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.facetT, ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !17
  store ptr %124, ptr %7, align 8, !tbaa !5
  br label %125

125:                                              ; preds = %274, %121
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %276

128:                                              ; preds = %125
  store ptr null, ptr %8, align 8, !tbaa !5
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.facetT, ptr %129, i32 0, i32 10
  %131 = load ptr, ptr %130, align 8, !tbaa !24
  %132 = icmp ne ptr %131, null
  br i1 %132, label %133, label %264

133:                                              ; preds = %128
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.facetT, ptr %134, i32 0, i32 10
  %136 = load ptr, ptr %135, align 8, !tbaa !24
  %137 = getelementptr inbounds %struct.setT, ptr %136, i32 0, i32 1
  %138 = getelementptr inbounds [1 x %union.setelemT], ptr %137, i64 0, i64 0
  store ptr %138, ptr %9, align 8, !tbaa !5
  br label %139

139:                                              ; preds = %262, %150, %133
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = getelementptr inbounds ptr, ptr %140, i32 1
  store ptr %141, ptr %9, align 8, !tbaa !5
  %142 = load ptr, ptr %140, align 8, !tbaa !5
  store ptr %142, ptr %8, align 8, !tbaa !5
  %143 = icmp ne ptr %142, null
  br i1 %143, label %144, label %263

144:                                              ; preds = %139
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.facetT, ptr %145, i32 0, i32 13
  %147 = load i32, ptr %146, align 8, !tbaa !18
  %148 = load i32, ptr %12, align 4, !tbaa !9
  %149 = icmp eq i32 %147, %148
  br i1 %149, label %150, label %151

150:                                              ; preds = %144
  br label %139, !llvm.loop !26

151:                                              ; preds = %144
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.facetT, ptr %152, i32 0, i32 15
  %154 = load i32, ptr %153, align 8
  %155 = lshr i32 %154, 13
  %156 = and i32 %155, 1
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %232

158:                                              ; preds = %151
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.facetT, ptr %159, i32 0, i32 13
  %161 = load i32, ptr %160, align 8, !tbaa !18
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.qhT, ptr %162, i32 0, i32 217
  %164 = load i32, ptr %163, align 8, !tbaa !11
  %165 = icmp ne i32 %161, %164
  br i1 %165, label %166, label %223

166:                                              ; preds = %158
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.facetT, ptr %168, i32 0, i32 10
  %170 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %167, ptr noundef %169, ptr noundef %170)
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.facetT, ptr %172, i32 0, i32 10
  %174 = load ptr, ptr %173, align 8, !tbaa !24
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_setreplace(ptr noundef %171, ptr noundef %174, ptr noundef %175, ptr noundef %176)
  %177 = load i32, ptr %11, align 4, !tbaa !9
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %11, align 4, !tbaa !9
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.qhT, ptr %179, i32 0, i32 217
  %181 = load i32, ptr %180, align 8, !tbaa !11
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.facetT, ptr %182, i32 0, i32 13
  store i32 %181, ptr %183, align 8, !tbaa !18
  store ptr null, ptr %13, align 8, !tbaa !5
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.facetT, ptr %184, i32 0, i32 9
  %186 = load ptr, ptr %185, align 8, !tbaa !27
  %187 = icmp ne ptr %186, null
  br i1 %187, label %188, label %222

188:                                              ; preds = %166
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.facetT, ptr %189, i32 0, i32 9
  %191 = load ptr, ptr %190, align 8, !tbaa !27
  %192 = getelementptr inbounds %struct.setT, ptr %191, i32 0, i32 1
  %193 = getelementptr inbounds [1 x %union.setelemT], ptr %192, i64 0, i64 0
  store ptr %193, ptr %14, align 8, !tbaa !5
  br label %194

194:                                              ; preds = %220, %188
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  %196 = getelementptr inbounds ptr, ptr %195, i32 1
  store ptr %196, ptr %14, align 8, !tbaa !5
  %197 = load ptr, ptr %195, align 8, !tbaa !5
  store ptr %197, ptr %13, align 8, !tbaa !5
  %198 = icmp ne ptr %197, null
  br i1 %198, label %199, label %221

199:                                              ; preds = %194
  %200 = load ptr, ptr %13, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.ridgeT, ptr %200, i32 0, i32 1
  %202 = load ptr, ptr %201, align 8, !tbaa !28
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = icmp eq ptr %202, %203
  br i1 %204, label %205, label %209

205:                                              ; preds = %199
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  %207 = load ptr, ptr %13, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.ridgeT, ptr %207, i32 0, i32 1
  store ptr %206, ptr %208, align 8, !tbaa !28
  br label %221

209:                                              ; preds = %199
  %210 = load ptr, ptr %13, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.ridgeT, ptr %210, i32 0, i32 2
  %212 = load ptr, ptr %211, align 8, !tbaa !30
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = icmp eq ptr %212, %213
  br i1 %214, label %215, label %219

215:                                              ; preds = %209
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = load ptr, ptr %13, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.ridgeT, ptr %217, i32 0, i32 2
  store ptr %216, ptr %218, align 8, !tbaa !30
  br label %221

219:                                              ; preds = %209
  br label %220

220:                                              ; preds = %219
  br label %194, !llvm.loop !31

221:                                              ; preds = %215, %205, %194
  br label %222

222:                                              ; preds = %221, %166
  br label %231

223:                                              ; preds = %158
  %224 = load ptr, ptr %4, align 8, !tbaa !5
  %225 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_makeridges(ptr noundef %224, ptr noundef %225)
  %226 = load ptr, ptr %8, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.facetT, ptr %226, i32 0, i32 10
  %228 = load ptr, ptr %227, align 8, !tbaa !24
  %229 = load ptr, ptr %7, align 8, !tbaa !5
  %230 = call ptr @qh_setdel(ptr noundef %228, ptr noundef %229)
  br label %231

231:                                              ; preds = %223, %222
  br label %262

232:                                              ; preds = %151
  %233 = load ptr, ptr %8, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.facetT, ptr %233, i32 0, i32 10
  %235 = load ptr, ptr %234, align 8, !tbaa !24
  %236 = load ptr, ptr %7, align 8, !tbaa !5
  %237 = call ptr @qh_setdel(ptr noundef %235, ptr noundef %236)
  %238 = load ptr, ptr %8, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.facetT, ptr %238, i32 0, i32 13
  %240 = load i32, ptr %239, align 8, !tbaa !18
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.qhT, ptr %241, i32 0, i32 217
  %243 = load i32, ptr %242, align 8, !tbaa !11
  %244 = icmp ne i32 %240, %243
  br i1 %244, label %245, label %261

245:                                              ; preds = %232
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = load ptr, ptr %8, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.facetT, ptr %247, i32 0, i32 10
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %246, ptr noundef %248, ptr noundef %249)
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = load ptr, ptr %6, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.facetT, ptr %251, i32 0, i32 10
  %253 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %250, ptr noundef %252, ptr noundef %253)
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.qhT, ptr %254, i32 0, i32 217
  %256 = load i32, ptr %255, align 8, !tbaa !11
  %257 = load ptr, ptr %8, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.facetT, ptr %257, i32 0, i32 13
  store i32 %256, ptr %258, align 8, !tbaa !18
  %259 = load i32, ptr %11, align 4, !tbaa !9
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %11, align 4, !tbaa !9
  br label %261

261:                                              ; preds = %245, %232
  br label %262

262:                                              ; preds = %261, %231
  br label %139, !llvm.loop !26

263:                                              ; preds = %139
  br label %264

264:                                              ; preds = %263, %128
  br label %265

265:                                              ; preds = %264
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = load ptr, ptr %5, align 8, !tbaa !5
  %268 = icmp eq ptr %266, %267
  br i1 %268, label %269, label %270

269:                                              ; preds = %265
  br label %274

270:                                              ; preds = %265
  %271 = load ptr, ptr %7, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.facetT, ptr %271, i32 0, i32 4
  %273 = load ptr, ptr %272, align 8, !tbaa !17
  br label %274

274:                                              ; preds = %270, %269
  %275 = phi ptr [ null, %269 ], [ %273, %270 ]
  store ptr %275, ptr %7, align 8, !tbaa !5
  br label %125, !llvm.loop !32

276:                                              ; preds = %125
  %277 = load ptr, ptr %4, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.qhT, ptr %277, i32 0, i32 29
  %279 = load i32, ptr %278, align 8, !tbaa !22
  %280 = icmp sge i32 %279, 2
  br i1 %280, label %281, label %288

281:                                              ; preds = %276
  %282 = load ptr, ptr %4, align 8, !tbaa !5
  %283 = load ptr, ptr %4, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.qhT, ptr %283, i32 0, i32 158
  %285 = load ptr, ptr %284, align 8, !tbaa !23
  %286 = load i32, ptr %10, align 4, !tbaa !9
  %287 = load i32, ptr %11, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %282, ptr noundef %285, i32 noundef 2032, ptr noundef @.str.149, i32 noundef %286, i32 noundef %287)
  br label %288

288:                                              ; preds = %281, %276
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 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
  ret void
}

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

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

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

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 2784}
!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 = !{!7, !7, i64 0}
!18 = !{!19, !10, i64 104}
!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 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!12, !10, i64 136}
!23 = !{!12, !6, i64 2424}
!24 = !{!19, !6, i64 80}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}
!27 = !{!19, !6, i64 72}
!28 = !{!29, !6, i64 8}
!29 = !{!"ridgeT", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28}
!30 = !{!29, !6, i64 16}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !21}


; 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.147 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [60 x i8], align 1

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

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

declare ptr @qh_setdel(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

; Function Attrs: nounwind uwtable
define dso_local void @qh_mergecycle_neighbors(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = getelementptr inbounds i8, ptr %0, i64 2784
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, 1
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %1, i64 32
  %8 = load ptr, ptr %7, align 8, !tbaa !15
  %.not124 = icmp eq ptr %8, null
  br i1 %.not124, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3, %19
  %.087125 = phi ptr [ %21, %19 ], [ %8, %3 ]
  %9 = getelementptr inbounds i8, ptr %.087125, i64 104
  %10 = load i32, ptr %9, align 8, !tbaa !16
  %11 = icmp eq i32 %10, %6
  br i1 %11, label %16, label %12

12:                                               ; preds = %.lr.ph
  %13 = getelementptr inbounds i8, ptr %.087125, i64 112
  %14 = load i32, ptr %13, align 8
  %15 = and i32 %14, 2048
  %.not113 = icmp eq i32 %15, 0
  br i1 %.not113, label %17, label %16

16:                                               ; preds = %12, %.lr.ph
  tail call void @qh_infiniteloop(ptr noundef %0, ptr noundef %1) #2
  br label %17

17:                                               ; preds = %16, %12
  store i32 %6, ptr %9, align 8, !tbaa !16
  %18 = icmp eq ptr %.087125, %1
  br i1 %18, label %._crit_edge.loopexit, label %19

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %.087125, i64 32
  %21 = load ptr, ptr %20, align 8, !tbaa !15
  %.not = icmp eq ptr %21, null
  br i1 %.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !18

._crit_edge.loopexit:                             ; preds = %17, %19
  %.pre = load i32, ptr %4, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %3
  %22 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %6, %3 ]
  %23 = add i32 %22, 1
  store i32 %23, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %2, i64 104
  store i32 %23, ptr %24, align 8, !tbaa !16
  %25 = getelementptr inbounds i8, ptr %0, i64 136
  %26 = load i32, ptr %25, align 8, !tbaa !20
  %27 = icmp sgt i32 %26, 3
  br i1 %27, label %28, label %31

28:                                               ; preds = %._crit_edge
  %29 = getelementptr inbounds i8, ptr %0, i64 2424
  %30 = load ptr, ptr %29, align 8, !tbaa !21
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %30, i32 noundef 4031, ptr noundef nonnull @.str.147) #2
  br label %31

31:                                               ; preds = %28, %._crit_edge
  %32 = getelementptr inbounds i8, ptr %2, i64 80
  %33 = load ptr, ptr %32, align 8, !tbaa !22
  %.not102 = icmp eq ptr %33, null
  br i1 %.not102, label %.loopexit116, label %.preheader115

.preheader115:                                    ; preds = %31
  %.093126 = getelementptr inbounds i8, ptr %33, i64 8
  %34 = load ptr, ptr %.093126, align 8, !tbaa !23
  %.not103127 = icmp eq ptr %34, null
  br i1 %.not103127, label %.loopexit116, label %.lr.ph130

.lr.ph130:                                        ; preds = %.preheader115, %43
  %35 = phi ptr [ %44, %43 ], [ %34, %.preheader115 ]
  %.093129 = phi ptr [ %.093, %43 ], [ %.093126, %.preheader115 ]
  %.090128 = phi i32 [ %.191, %43 ], [ 0, %.preheader115 ]
  %36 = getelementptr inbounds i8, ptr %35, i64 104
  %37 = load i32, ptr %36, align 8, !tbaa !16
  %38 = icmp eq i32 %37, %6
  br i1 %38, label %39, label %41

39:                                               ; preds = %.lr.ph130
  store ptr null, ptr %.093129, align 8, !tbaa !23
  %40 = add nsw i32 %.090128, 1
  br label %43

41:                                               ; preds = %.lr.ph130
  %42 = load i32, ptr %4, align 8, !tbaa !5
  store i32 %42, ptr %36, align 8, !tbaa !16
  br label %43

43:                                               ; preds = %41, %39
  %.191 = phi i32 [ %40, %39 ], [ %.090128, %41 ]
  %.093 = getelementptr inbounds i8, ptr %.093129, i64 8
  %44 = load ptr, ptr %.093, align 8, !tbaa !23
  %.not103 = icmp eq ptr %44, null
  br i1 %.not103, label %.loopexit116.loopexit, label %.lr.ph130, !llvm.loop !24

.loopexit116.loopexit:                            ; preds = %43
  %.pre146 = load ptr, ptr %32, align 8, !tbaa !22
  br label %.loopexit116

.loopexit116:                                     ; preds = %.loopexit116.loopexit, %.preheader115, %31
  %45 = phi ptr [ null, %31 ], [ %33, %.preheader115 ], [ %.pre146, %.loopexit116.loopexit ]
  %.292 = phi i32 [ 0, %31 ], [ 0, %.preheader115 ], [ %.191, %.loopexit116.loopexit ]
  tail call void @qh_setcompact(ptr noundef %0, ptr noundef %45) #2
  %46 = load i32, ptr %25, align 8, !tbaa !20
  %47 = icmp sgt i32 %46, 3
  br i1 %47, label %48, label %51

48:                                               ; preds = %.loopexit116
  %49 = getelementptr inbounds i8, ptr %0, i64 2424
  %50 = load ptr, ptr %49, align 8, !tbaa !21
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %50, i32 noundef 4032, ptr noundef nonnull @.str.148) #2
  br label %51

51:                                               ; preds = %48, %.loopexit116
  %52 = load ptr, ptr %7, align 8, !tbaa !15
  %.not104134 = icmp eq ptr %52, null
  br i1 %.not104134, label %._crit_edge139, label %.lr.ph138

.lr.ph138:                                        ; preds = %51, %103
  %.1136 = phi ptr [ %105, %103 ], [ %52, %51 ]
  %.088135 = phi i32 [ %.3, %103 ], [ 0, %51 ]
  %53 = getelementptr inbounds i8, ptr %.1136, i64 80
  %54 = load ptr, ptr %53, align 8, !tbaa !22
  %.not105 = icmp eq ptr %54, null
  br i1 %.not105, label %.loopexit114, label %55

55:                                               ; preds = %.lr.ph138
  %56 = getelementptr inbounds i8, ptr %54, i64 8
  br label %.outer.outer

.outer.outer:                                     ; preds = %.outer.outer.backedge, %55
  %.194.ph.ph = phi ptr [ %56, %55 ], [ %60, %.outer.outer.backedge ]
  %.189.ph.ph = phi i32 [ %.088135, %55 ], [ %.189.ph.ph.be, %.outer.outer.backedge ]
  br label %.outer

.outer:                                           ; preds = %.outer.backedge, %.outer.outer
  %.194.ph = phi ptr [ %.194.ph.ph, %.outer.outer ], [ %60, %.outer.backedge ]
  br label %57

57:                                               ; preds = %.outer, %59
  %.194 = phi ptr [ %60, %59 ], [ %.194.ph, %.outer ]
  %58 = load ptr, ptr %.194, align 8, !tbaa !23
  %.not106 = icmp eq ptr %58, null
  br i1 %.not106, label %.loopexit114, label %59

59:                                               ; preds = %57
  %60 = getelementptr inbounds i8, ptr %.194, i64 8
  %61 = getelementptr inbounds i8, ptr %58, i64 104
  %62 = load i32, ptr %61, align 8, !tbaa !16
  %63 = icmp eq i32 %62, %6
  br i1 %63, label %57, label %64, !llvm.loop !25

64:                                               ; preds = %59
  %65 = getelementptr inbounds i8, ptr %58, i64 104
  %66 = getelementptr inbounds i8, ptr %58, i64 112
  %67 = load i32, ptr %66, align 8
  %68 = and i32 %67, 8192
  %.not107 = icmp eq i32 %68, 0
  br i1 %.not107, label %93, label %69

69:                                               ; preds = %64
  %70 = load i32, ptr %4, align 8, !tbaa !5
  %.not109 = icmp eq i32 %62, %70
  %71 = getelementptr inbounds i8, ptr %58, i64 80
  br i1 %.not109, label %90, label %72

72:                                               ; preds = %69
  tail call void @qh_setappend(ptr noundef nonnull %0, ptr noundef nonnull %32, ptr noundef nonnull %58) #2
  %73 = load ptr, ptr %71, align 8, !tbaa !22
  tail call void @qh_setreplace(ptr noundef nonnull %0, ptr noundef %73, ptr noundef nonnull %.1136, ptr noundef %2) #2
  %74 = load i32, ptr %4, align 8, !tbaa !5
  store i32 %74, ptr %65, align 8, !tbaa !16
  %75 = getelementptr inbounds i8, ptr %58, i64 72
  %76 = load ptr, ptr %75, align 8, !tbaa !26
  %.not110 = icmp eq ptr %76, null
  br i1 %.not110, label %.outer.outer.backedge, label %.preheader

.preheader:                                       ; preds = %72, %84
  %.pn = phi ptr [ %.0, %84 ], [ %76, %72 ]
  %.0 = getelementptr inbounds i8, ptr %.pn, i64 8
  %77 = load ptr, ptr %.0, align 8, !tbaa !23
  %.not111 = icmp eq ptr %77, null
  br i1 %.not111, label %.outer.outer.backedge, label %78, !llvm.loop !25

78:                                               ; preds = %.preheader
  %79 = getelementptr inbounds i8, ptr %77, i64 8
  %80 = load ptr, ptr %79, align 8, !tbaa !27
  %81 = icmp eq ptr %80, %.1136
  br i1 %81, label %82, label %84

82:                                               ; preds = %78
  %83 = getelementptr inbounds i8, ptr %77, i64 8
  store ptr %2, ptr %83, align 8, !tbaa !27
  br label %.outer.outer.backedge

84:                                               ; preds = %78
  %85 = getelementptr inbounds i8, ptr %77, i64 16
  %86 = load ptr, ptr %85, align 8, !tbaa !29
  %87 = icmp eq ptr %86, %.1136
  br i1 %87, label %88, label %.preheader, !llvm.loop !30

88:                                               ; preds = %84
  %89 = getelementptr inbounds i8, ptr %77, i64 16
  store ptr %2, ptr %89, align 8, !tbaa !29
  br label %.outer.outer.backedge

90:                                               ; preds = %69
  tail call void @qh_makeridges(ptr noundef nonnull %0, ptr noundef nonnull %58)
  %91 = load ptr, ptr %71, align 8, !tbaa !22
  %92 = tail call ptr @qh_setdel(ptr noundef %91, ptr noundef nonnull %.1136) #2
  br label %.outer.backedge

93:                                               ; preds = %64
  %94 = getelementptr inbounds i8, ptr %58, i64 80
  %95 = load ptr, ptr %94, align 8, !tbaa !22
  %96 = tail call ptr @qh_setdel(ptr noundef %95, ptr noundef nonnull %.1136) #2
  %97 = load i32, ptr %65, align 8, !tbaa !16
  %98 = load i32, ptr %4, align 8, !tbaa !5
  %.not108 = icmp eq i32 %97, %98
  br i1 %.not108, label %.outer.backedge, label %99

.outer.backedge:                                  ; preds = %93, %90
  br label %.outer, !llvm.loop !25

99:                                               ; preds = %93
  %100 = getelementptr inbounds i8, ptr %58, i64 80
  tail call void @qh_setappend(ptr noundef nonnull %0, ptr noundef nonnull %100, ptr noundef %2) #2
  tail call void @qh_setappend(ptr noundef nonnull %0, ptr noundef nonnull %32, ptr noundef nonnull %58) #2
  %101 = load i32, ptr %4, align 8, !tbaa !5
  store i32 %101, ptr %65, align 8, !tbaa !16
  br label %.outer.outer.backedge

.outer.outer.backedge:                            ; preds = %.preheader, %99, %82, %88, %72
  %.189.ph.ph.be = add nsw i32 %.189.ph.ph, 1
  br label %.outer.outer, !llvm.loop !25

.loopexit114:                                     ; preds = %57, %.lr.ph138
  %.3 = phi i32 [ %.088135, %.lr.ph138 ], [ %.189.ph.ph, %57 ]
  %102 = icmp eq ptr %.1136, %1
  br i1 %102, label %._crit_edge139, label %103

103:                                              ; preds = %.loopexit114
  %104 = getelementptr inbounds i8, ptr %.1136, i64 32
  %105 = load ptr, ptr %104, align 8, !tbaa !15
  %.not104 = icmp eq ptr %105, null
  br i1 %.not104, label %._crit_edge139, label %.lr.ph138, !llvm.loop !31

._crit_edge139:                                   ; preds = %.loopexit114, %103, %51
  %.088.lcssa = phi i32 [ 0, %51 ], [ %.3, %103 ], [ %.3, %.loopexit114 ]
  %106 = load i32, ptr %25, align 8, !tbaa !20
  %107 = icmp sgt i32 %106, 1
  br i1 %107, label %108, label %111

108:                                              ; preds = %._crit_edge139
  %109 = getelementptr inbounds i8, ptr %0, i64 2424
  %110 = load ptr, ptr %109, align 8, !tbaa !21
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %110, i32 noundef 2032, ptr noundef nonnull @.str.149, i32 noundef %.292, i32 noundef %.088.lcssa) #2
  br label %111

111:                                              ; preds = %108, %._crit_edge139
  ret void
}

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

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

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

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


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