; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (io_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.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }

@.str.11 = external hidden unnamed_addr constant [70 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 ptr @qh_settemp(ptr noundef, i32 noundef) #1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @qh_eachvoronoi(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.qhT, ptr %29, i32 0, i32 162
  %31 = load i32, ptr %30, align 8, !tbaa !11
  %32 = call ptr @qh_settemp(ptr noundef %28, i32 noundef %31)
  store ptr %32, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.qhT, ptr %33, i32 0, i32 178
  %35 = load i32, ptr %34, align 8, !tbaa !17
  store i32 %35, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  store i32 0, ptr %27, align 4, !tbaa !9
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.qhT, ptr %36, i32 0, i32 218
  %38 = load i32, ptr %37, align 4, !tbaa !18
  %39 = add i32 %38, 1
  store i32 %39, ptr %37, align 4, !tbaa !18
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.vertexT, ptr %40, i32 0, i32 6
  %42 = load i8, ptr %41, align 8
  %43 = and i8 %42, -2
  %44 = or i8 %43, 1
  store i8 %44, ptr %41, align 8
  %45 = load i32, ptr %12, align 4, !tbaa !9
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %72

47:                                               ; preds = %7
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.qhT, ptr %48, i32 0, i32 175
  %50 = load ptr, ptr %49, align 8, !tbaa !19
  store ptr %50, ptr %23, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %67, %47
  %52 = load ptr, ptr %23, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %59

54:                                               ; preds = %51
  %55 = load ptr, ptr %23, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.vertexT, ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !20
  %58 = icmp ne ptr %57, null
  br label %59

59:                                               ; preds = %54, %51
  %60 = phi i1 [ false, %51 ], [ %58, %54 ]
  br i1 %60, label %61, label %71

61:                                               ; preds = %59
  %62 = load ptr, ptr %23, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.vertexT, ptr %62, i32 0, i32 6
  %64 = load i8, ptr %63, align 8
  %65 = and i8 %64, -2
  %66 = or i8 %65, 0
  store i8 %66, ptr %63, align 8
  br label %67

67:                                               ; preds = %61
  %68 = load ptr, ptr %23, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.vertexT, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !20
  store ptr %70, ptr %23, align 8, !tbaa !5
  br label %51, !llvm.loop !22

71:                                               ; preds = %59
  br label %72

72:                                               ; preds = %71, %7
  store ptr null, ptr %17, align 8, !tbaa !5
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.vertexT, ptr %73, i32 0, i32 3
  %75 = load ptr, ptr %74, align 8, !tbaa !24
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %102

77:                                               ; preds = %72
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.vertexT, ptr %78, i32 0, i32 3
  %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 %18, align 8, !tbaa !5
  br label %83

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

88:                                               ; preds = %83
  %89 = load ptr, ptr %17, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.facetT, ptr %89, i32 0, i32 13
  %91 = load i32, ptr %90, align 8, !tbaa !25
  %92 = load i32, ptr %26, align 4, !tbaa !9
  %93 = icmp ult i32 %91, %92
  br i1 %93, label %94, label %100

94:                                               ; preds = %88
  %95 = load ptr, ptr %17, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.facetT, ptr %95, i32 0, i32 15
  %97 = load i32, ptr %96, align 8
  %98 = and i32 %97, -16385
  %99 = or i32 %98, 16384
  store i32 %99, ptr %96, align 8
  br label %100

100:                                              ; preds = %94, %88
  br label %83, !llvm.loop !27

101:                                              ; preds = %83
  br label %102

102:                                              ; preds = %101, %72
  store ptr null, ptr %17, align 8, !tbaa !5
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.vertexT, ptr %103, i32 0, i32 3
  %105 = load ptr, ptr %104, align 8, !tbaa !24
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %298

107:                                              ; preds = %102
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.vertexT, ptr %108, i32 0, i32 3
  %110 = load ptr, ptr %109, align 8, !tbaa !24
  %111 = getelementptr inbounds %struct.setT, ptr %110, i32 0, i32 1
  %112 = getelementptr inbounds [1 x %union.setelemT], ptr %111, i64 0, i64 0
  store ptr %112, ptr %18, align 8, !tbaa !5
  br label %113

113:                                              ; preds = %296, %107
  %114 = load ptr, ptr %18, align 8, !tbaa !5
  %115 = getelementptr inbounds ptr, ptr %114, i32 1
  store ptr %115, ptr %18, align 8, !tbaa !5
  %116 = load ptr, ptr %114, align 8, !tbaa !5
  store ptr %116, ptr %17, align 8, !tbaa !5
  %117 = icmp ne ptr %116, null
  br i1 %117, label %118, label %297

118:                                              ; preds = %113
  %119 = load ptr, ptr %17, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.facetT, ptr %119, i32 0, i32 15
  %121 = load i32, ptr %120, align 8
  %122 = lshr i32 %121, 14
  %123 = and i32 %122, 1
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %296

125:                                              ; preds = %118
  store ptr null, ptr %23, align 8, !tbaa !5
  %126 = load ptr, ptr %17, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.facetT, ptr %126, i32 0, i32 8
  %128 = load ptr, ptr %127, align 8, !tbaa !28
  %129 = icmp ne ptr %128, null
  br i1 %129, label %130, label %295

130:                                              ; preds = %125
  %131 = load ptr, ptr %17, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.facetT, ptr %131, i32 0, i32 8
  %133 = load ptr, ptr %132, align 8, !tbaa !28
  %134 = getelementptr inbounds %struct.setT, ptr %133, i32 0, i32 1
  %135 = getelementptr inbounds [1 x %union.setelemT], ptr %134, i64 0, i64 0
  store ptr %135, ptr %24, align 8, !tbaa !5
  br label %136

136:                                              ; preds = %293, %237, %232, %130
  %137 = load ptr, ptr %24, align 8, !tbaa !5
  %138 = getelementptr inbounds ptr, ptr %137, i32 1
  store ptr %138, ptr %24, align 8, !tbaa !5
  %139 = load ptr, ptr %137, align 8, !tbaa !5
  store ptr %139, ptr %23, align 8, !tbaa !5
  %140 = icmp ne ptr %139, null
  br i1 %140, label %141, label %294

141:                                              ; preds = %136
  %142 = load ptr, ptr %23, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.vertexT, ptr %142, i32 0, i32 5
  %144 = load i32, ptr %143, align 4, !tbaa !29
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.qhT, ptr %145, i32 0, i32 218
  %147 = load i32, ptr %146, align 4, !tbaa !18
  %148 = icmp ne i32 %144, %147
  br i1 %148, label %149, label %293

149:                                              ; preds = %141
  %150 = load ptr, ptr %23, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.vertexT, ptr %150, i32 0, i32 6
  %152 = load i8, ptr %151, align 8
  %153 = and i8 %152, 1
  %154 = zext i8 %153 to i32
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %293, label %156

156:                                              ; preds = %149
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.qhT, ptr %157, i32 0, i32 218
  %159 = load i32, ptr %158, align 4, !tbaa !18
  %160 = load ptr, ptr %23, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.vertexT, ptr %160, i32 0, i32 5
  store i32 %159, ptr %161, align 4, !tbaa !29
  store i32 0, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %25, align 4, !tbaa !9
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = load ptr, ptr %22, align 8, !tbaa !5
  call void @qh_settruncate(ptr noundef %162, ptr noundef %163, i32 noundef 0)
  store ptr null, ptr %19, align 8, !tbaa !5
  %164 = load ptr, ptr %23, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.vertexT, ptr %164, i32 0, i32 3
  %166 = load ptr, ptr %165, align 8, !tbaa !24
  %167 = icmp ne ptr %166, null
  br i1 %167, label %168, label %219

168:                                              ; preds = %156
  %169 = load ptr, ptr %23, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.vertexT, ptr %169, i32 0, i32 3
  %171 = load ptr, ptr %170, align 8, !tbaa !24
  %172 = getelementptr inbounds %struct.setT, ptr %171, i32 0, i32 1
  %173 = getelementptr inbounds [1 x %union.setelemT], ptr %172, i64 0, i64 0
  store ptr %173, ptr %20, align 8, !tbaa !5
  br label %174

174:                                              ; preds = %217, %168
  %175 = load ptr, ptr %20, align 8, !tbaa !5
  %176 = getelementptr inbounds ptr, ptr %175, i32 1
  store ptr %176, ptr %20, align 8, !tbaa !5
  %177 = load ptr, ptr %175, align 8, !tbaa !5
  store ptr %177, ptr %19, align 8, !tbaa !5
  %178 = icmp ne ptr %177, null
  br i1 %178, label %179, label %218

179:                                              ; preds = %174
  %180 = load ptr, ptr %19, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.facetT, ptr %180, i32 0, i32 15
  %182 = load i32, ptr %181, align 8
  %183 = lshr i32 %182, 14
  %184 = and i32 %183, 1
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %217

186:                                              ; preds = %179
  %187 = load ptr, ptr %19, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.facetT, ptr %187, i32 0, i32 13
  %189 = load i32, ptr %188, align 8, !tbaa !25
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %191, label %209

191:                                              ; preds = %186
  %192 = load ptr, ptr %19, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.facetT, ptr %192, i32 0, i32 15
  %194 = load i32, ptr %193, align 8
  %195 = lshr i32 %194, 9
  %196 = and i32 %195, 1
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %205

198:                                              ; preds = %191
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = load ptr, ptr %19, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.facetT, ptr %200, i32 0, i32 5
  %202 = load ptr, ptr %201, align 8, !tbaa !30
  %203 = call i32 @qh_setunique(ptr noundef %199, ptr noundef %22, ptr noundef %202)
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %205, label %208

205:                                              ; preds = %198, %191
  %206 = load i32, ptr %16, align 4, !tbaa !9
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %16, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %205, %198
  br label %216

209:                                              ; preds = %186
  %210 = load i32, ptr %25, align 4, !tbaa !9
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %215

212:                                              ; preds = %209
  %213 = load i32, ptr %16, align 4, !tbaa !9
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %215

215:                                              ; preds = %212, %209
  br label %216

216:                                              ; preds = %215, %208
  br label %217

217:                                              ; preds = %216, %179
  br label %174, !llvm.loop !31

218:                                              ; preds = %174
  br label %219

219:                                              ; preds = %218, %156
  %220 = load i32, ptr %16, align 4, !tbaa !9
  %221 = load ptr, ptr %8, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.qhT, ptr %221, i32 0, i32 110
  %223 = load i32, ptr %222, align 8, !tbaa !32
  %224 = sub nsw i32 %223, 1
  %225 = icmp sge i32 %220, %224
  br i1 %225, label %226, label %292

226:                                              ; preds = %219
  %227 = load i32, ptr %25, align 4, !tbaa !9
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %234

229:                                              ; preds = %226
  %230 = load i32, ptr %13, align 4, !tbaa !9
  %231 = icmp eq i32 %230, 2
  br i1 %231, label %232, label %233

232:                                              ; preds = %229
  br label %136, !llvm.loop !33

233:                                              ; preds = %229
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %239

234:                                              ; preds = %226
  %235 = load i32, ptr %13, align 4, !tbaa !9
  %236 = icmp eq i32 %235, 1
  br i1 %236, label %237, label %238

237:                                              ; preds = %234
  br label %136, !llvm.loop !33

238:                                              ; preds = %234
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %239

239:                                              ; preds = %238, %233
  %240 = load i32, ptr %27, align 4, !tbaa !9
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %27, align 4, !tbaa !9
  %242 = load ptr, ptr %8, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.qhT, ptr %242, i32 0, i32 29
  %244 = load i32, ptr %243, align 8, !tbaa !34
  %245 = icmp sge i32 %244, 4
  br i1 %245, label %246, label %262

246:                                              ; preds = %239
  %247 = load ptr, ptr %8, align 8, !tbaa !5
  %248 = load ptr, ptr %8, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.qhT, ptr %248, i32 0, i32 158
  %250 = load ptr, ptr %249, align 8, !tbaa !35
  %251 = load i32, ptr %16, align 4, !tbaa !9
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  %253 = load ptr, ptr %11, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.vertexT, ptr %253, i32 0, i32 2
  %255 = load ptr, ptr %254, align 8, !tbaa !36
  %256 = call i32 @qh_pointid(ptr noundef %252, ptr noundef %255)
  %257 = load ptr, ptr %8, align 8, !tbaa !5
  %258 = load ptr, ptr %23, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.vertexT, ptr %258, i32 0, i32 2
  %260 = load ptr, ptr %259, align 8, !tbaa !36
  %261 = call i32 @qh_pointid(ptr noundef %257, ptr noundef %260)
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %247, ptr noundef %250, i32 noundef 4017, ptr noundef @.str.11, i32 noundef %251, i32 noundef %256, i32 noundef %261)
  br label %262

262:                                              ; preds = %246, %239
  %263 = load ptr, ptr %10, align 8, !tbaa !5
  %264 = icmp ne ptr %263, null
  br i1 %264, label %265, label %291

265:                                              ; preds = %262
  %266 = load i32, ptr %14, align 4, !tbaa !9
  %267 = icmp ne i32 %266, 0
  br i1 %267, label %268, label %278

268:                                              ; preds = %265
  %269 = load ptr, ptr %8, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.qhT, ptr %269, i32 0, i32 110
  %271 = load i32, ptr %270, align 8, !tbaa !32
  %272 = icmp eq i32 %271, 4
  br i1 %272, label %273, label %278

273:                                              ; preds = %268
  %274 = load ptr, ptr %8, align 8, !tbaa !5
  %275 = load ptr, ptr %11, align 8, !tbaa !5
  %276 = load ptr, ptr %23, align 8, !tbaa !5
  %277 = call ptr @qh_detvridge3(ptr noundef %274, ptr noundef %275, ptr noundef %276)
  store ptr %277, ptr %21, align 8, !tbaa !5
  br label %282

278:                                              ; preds = %268, %265
  %279 = load ptr, ptr %8, align 8, !tbaa !5
  %280 = load ptr, ptr %23, align 8, !tbaa !5
  %281 = call ptr @qh_detvridge(ptr noundef %279, ptr noundef %280)
  store ptr %281, ptr %21, align 8, !tbaa !5
  br label %282

282:                                              ; preds = %278, %273
  %283 = load ptr, ptr %10, align 8, !tbaa !5
  %284 = load ptr, ptr %8, align 8, !tbaa !5
  %285 = load ptr, ptr %9, align 8, !tbaa !5
  %286 = load ptr, ptr %11, align 8, !tbaa !5
  %287 = load ptr, ptr %23, align 8, !tbaa !5
  %288 = load ptr, ptr %21, align 8, !tbaa !5
  %289 = load i32, ptr %15, align 4, !tbaa !9
  call void %283(ptr noundef %284, ptr noundef %285, ptr noundef %286, ptr noundef %287, ptr noundef %288, i32 noundef %289)
  %290 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_settempfree(ptr noundef %290, ptr noundef %21)
  br label %291

291:                                              ; preds = %282, %262
  br label %292

292:                                              ; preds = %291, %219
  br label %293

293:                                              ; preds = %292, %149, %141
  br label %136, !llvm.loop !33

294:                                              ; preds = %136
  br label %295

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

296:                                              ; preds = %295, %118
  br label %113, !llvm.loop !37

297:                                              ; preds = %113
  br label %298

298:                                              ; preds = %297, %102
  store ptr null, ptr %17, align 8, !tbaa !5
  %299 = load ptr, ptr %11, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.vertexT, ptr %299, i32 0, i32 3
  %301 = load ptr, ptr %300, align 8, !tbaa !24
  %302 = icmp ne ptr %301, null
  br i1 %302, label %303, label %321

303:                                              ; preds = %298
  %304 = load ptr, ptr %11, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.vertexT, ptr %304, i32 0, i32 3
  %306 = load ptr, ptr %305, align 8, !tbaa !24
  %307 = getelementptr inbounds %struct.setT, ptr %306, i32 0, i32 1
  %308 = getelementptr inbounds [1 x %union.setelemT], ptr %307, i64 0, i64 0
  store ptr %308, ptr %18, align 8, !tbaa !5
  br label %309

309:                                              ; preds = %314, %303
  %310 = load ptr, ptr %18, align 8, !tbaa !5
  %311 = getelementptr inbounds ptr, ptr %310, i32 1
  store ptr %311, ptr %18, align 8, !tbaa !5
  %312 = load ptr, ptr %310, align 8, !tbaa !5
  store ptr %312, ptr %17, align 8, !tbaa !5
  %313 = icmp ne ptr %312, null
  br i1 %313, label %314, label %320

314:                                              ; preds = %309
  %315 = load ptr, ptr %17, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.facetT, ptr %315, i32 0, i32 15
  %317 = load i32, ptr %316, align 8
  %318 = and i32 %317, -16385
  %319 = or i32 %318, 0
  store i32 %319, ptr %316, align 8
  br label %309, !llvm.loop !38

320:                                              ; preds = %309
  br label %321

321:                                              ; preds = %320, %298
  %322 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_settempfree(ptr noundef %322, ptr noundef %22)
  %323 = load i32, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  ret i32 %323
}

declare void @qh_settruncate(ptr noundef, ptr noundef, i32 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 2448}
!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, !10, i64 2568}
!18 = !{!12, !10, i64 2788}
!19 = !{!12, !6, i64 2544}
!20 = !{!21, !6, i64 0}
!21 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!21, !6, i64 24}
!25 = !{!26, !10, i64 104}
!26 = !{!"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}
!27 = distinct !{!27, !23}
!28 = !{!26, !6, i64 64}
!29 = !{!21, !10, i64 36}
!30 = !{!26, !6, i64 40}
!31 = distinct !{!31, !23}
!32 = !{!12, !10, i64 632}
!33 = distinct !{!33, !23}
!34 = !{!12, !10, i64 136}
!35 = !{!12, !6, i64 2424}
!36 = !{!21, !6, i64 16}
!37 = distinct !{!37, !23}
!38 = distinct !{!38, !23}


; 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.11 = external hidden unnamed_addr constant [70 x i8], align 1

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

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

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

declare ptr @qh_settemp(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @qh_pointid(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @qh_settempfree(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare i32 @qh_setunique(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @qh_eachvoronoi(ptr noundef %0, ptr noundef %1, ptr noundef readonly %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  %10 = getelementptr inbounds i8, ptr %0, i64 2448
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = tail call ptr @qh_settemp(ptr noundef %0, i32 noundef %11) #3
  store ptr %12, ptr %9, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %0, i64 2568
  %14 = load i32, ptr %13, align 8, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %0, i64 2788
  %16 = load i32, ptr %15, align 4, !tbaa !17
  %17 = add i32 %16, 1
  store i32 %17, ptr %15, align 4, !tbaa !17
  %18 = getelementptr inbounds i8, ptr %3, i64 40
  %19 = load i8, ptr %18, align 8
  %20 = or i8 %19, 1
  store i8 %20, ptr %18, align 8
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %.critedge, label %21

21:                                               ; preds = %7
  %22 = getelementptr inbounds i8, ptr %0, i64 2544
  %.080155 = load ptr, ptr %22, align 8, !tbaa !15
  %.not100156 = icmp eq ptr %.080155, null
  br i1 %.not100156, label %.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %21
  %23 = load ptr, ptr %.080155, align 8, !tbaa !15
  %.not101228 = icmp eq ptr %23, null
  br i1 %.not101228, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %24 = phi ptr [ %28, %.lr.ph ], [ %23, %.lr.ph.preheader ]
  %.080157229 = phi ptr [ %24, %.lr.ph ], [ %.080155, %.lr.ph.preheader ]
  %25 = getelementptr inbounds i8, ptr %.080157229, i64 40
  %26 = load i8, ptr %25, align 8
  %27 = and i8 %26, -2
  store i8 %27, ptr %25, align 8
  %28 = load ptr, ptr %24, align 8, !tbaa !15
  %.not101 = icmp eq ptr %28, null
  br i1 %.not101, label %.critedge, label %.lr.ph

.critedge:                                        ; preds = %.lr.ph, %.lr.ph.preheader, %21, %7
  %29 = getelementptr inbounds i8, ptr %3, i64 24
  %30 = load ptr, ptr %29, align 8, !tbaa !18
  %.not102 = icmp eq ptr %30, null
  br i1 %.not102, label %.thread142, label %.preheader149

.preheader149:                                    ; preds = %.critedge
  %.082159 = getelementptr inbounds i8, ptr %30, i64 8
  %31 = load ptr, ptr %.082159, align 8, !tbaa !15
  %.not103160 = icmp eq ptr %31, null
  br i1 %.not103160, label %.preheader148, label %.lr.ph162

.lr.ph162:                                        ; preds = %.preheader149, %40
  %32 = phi ptr [ %41, %40 ], [ %31, %.preheader149 ]
  %.082161 = phi ptr [ %.082, %40 ], [ %.082159, %.preheader149 ]
  %33 = getelementptr inbounds i8, ptr %32, i64 104
  %34 = load i32, ptr %33, align 8, !tbaa !20
  %35 = icmp ult i32 %34, %14
  br i1 %35, label %36, label %40

36:                                               ; preds = %.lr.ph162
  %37 = getelementptr inbounds i8, ptr %32, i64 112
  %38 = load i32, ptr %37, align 8
  %39 = or i32 %38, 16384
  store i32 %39, ptr %37, align 8
  br label %40

40:                                               ; preds = %36, %.lr.ph162
  %.082 = getelementptr inbounds i8, ptr %.082161, i64 8
  %41 = load ptr, ptr %.082, align 8, !tbaa !15
  %.not103 = icmp eq ptr %41, null
  br i1 %.not103, label %._crit_edge, label %.lr.ph162, !llvm.loop !22

._crit_edge:                                      ; preds = %40
  %.pr.pre = load ptr, ptr %29, align 8, !tbaa !18
  %.not104 = icmp eq ptr %.pr.pre, null
  br i1 %.not104, label %.thread142, label %.preheader148

.preheader148:                                    ; preds = %.preheader149, %._crit_edge
  %.pr200 = phi ptr [ %.pr.pre, %._crit_edge ], [ %30, %.preheader149 ]
  %.183178 = getelementptr inbounds i8, ptr %.pr200, i64 8
  %42 = load ptr, ptr %.183178, align 8, !tbaa !15
  %.not106179 = icmp eq ptr %42, null
  br i1 %.not106179, label %.preheader, label %.lr.ph182

.lr.ph182:                                        ; preds = %.preheader148
  %43 = getelementptr inbounds i8, ptr %0, i64 632
  %44 = icmp eq i32 %5, 1
  %45 = icmp eq i32 %5, 2
  %46 = getelementptr inbounds i8, ptr %0, i64 136
  %47 = getelementptr inbounds i8, ptr %0, i64 2424
  %48 = getelementptr inbounds i8, ptr %3, i64 16
  %.not120 = icmp eq ptr %2, null
  %.not121 = icmp eq i32 %6, 0
  br label %49

49:                                               ; preds = %.lr.ph182, %.loopexit
  %50 = phi ptr [ %42, %.lr.ph182 ], [ %128, %.loopexit ]
  %.183181 = phi ptr [ %.183178, %.lr.ph182 ], [ %.183, %.loopexit ]
  %.0180 = phi i32 [ 0, %.lr.ph182 ], [ %.3, %.loopexit ]
  %51 = getelementptr inbounds i8, ptr %50, i64 112
  %52 = load i32, ptr %51, align 8
  %53 = and i32 %52, 16384
  %.not110 = icmp eq i32 %53, 0
  br i1 %.not110, label %.loopexit, label %54

54:                                               ; preds = %49
  %55 = getelementptr inbounds i8, ptr %50, i64 64
  %56 = load ptr, ptr %55, align 8, !tbaa !24
  %.not111 = icmp eq ptr %56, null
  br i1 %.not111, label %.loopexit, label %57

57:                                               ; preds = %54
  %58 = getelementptr inbounds i8, ptr %56, i64 8
  %59 = load ptr, ptr %58, align 8, !tbaa !15
  %.not112171175 = icmp eq ptr %59, null
  br i1 %.not112171175, label %.loopexit, label %.lr.ph172.preheader

.lr.ph172.preheader:                              ; preds = %57
  %60 = getelementptr inbounds i8, ptr %56, i64 16
  br label %.lr.ph172

.lr.ph172:                                        ; preds = %.lr.ph172.preheader, %.outer
  %61 = phi ptr [ %127, %.outer ], [ %59, %.lr.ph172.preheader ]
  %62 = phi ptr [ %126, %.outer ], [ %60, %.lr.ph172.preheader ]
  %.1.ph176 = phi i32 [ %.2, %.outer ], [ %.0180, %.lr.ph172.preheader ]
  br label %63

63:                                               ; preds = %.lr.ph172, %.backedge
  %64 = phi ptr [ %61, %.lr.ph172 ], [ %103, %.backedge ]
  %65 = phi ptr [ %62, %.lr.ph172 ], [ %102, %.backedge ]
  %66 = getelementptr inbounds i8, ptr %64, i64 36
  %67 = load i32, ptr %66, align 4, !tbaa !25
  %68 = load i32, ptr %15, align 4, !tbaa !17
  %.not113 = icmp eq i32 %67, %68
  br i1 %.not113, label %.outer, label %69

69:                                               ; preds = %63
  %70 = getelementptr inbounds i8, ptr %64, i64 40
  %71 = load i8, ptr %70, align 8
  %72 = and i8 %71, 1
  %.not114 = icmp eq i8 %72, 0
  br i1 %.not114, label %73, label %.outer

73:                                               ; preds = %69
  store i32 %68, ptr %66, align 4, !tbaa !25
  %74 = load ptr, ptr %9, align 8, !tbaa !15
  call void @qh_settruncate(ptr noundef nonnull %0, ptr noundef %74, i32 noundef 0) #3
  %75 = getelementptr inbounds i8, ptr %64, i64 24
  %76 = load ptr, ptr %75, align 8, !tbaa !18
  %.not115 = icmp eq ptr %76, null
  br i1 %.not115, label %.thread128, label %.preheader146

.preheader146:                                    ; preds = %73
  %.081163 = getelementptr inbounds i8, ptr %76, i64 8
  %77 = load ptr, ptr %.081163, align 8, !tbaa !15
  %.not117164 = icmp eq ptr %77, null
  br i1 %.not117164, label %._crit_edge169.thread, label %.lr.ph168

.lr.ph168:                                        ; preds = %.preheader146, %95
  %78 = phi ptr [ %96, %95 ], [ %77, %.preheader146 ]
  %.081167 = phi ptr [ %.081, %95 ], [ %.081163, %.preheader146 ]
  %.076166 = phi i32 [ %.177, %95 ], [ 1, %.preheader146 ]
  %.085165 = phi i32 [ %.186, %95 ], [ 0, %.preheader146 ]
  %79 = getelementptr inbounds i8, ptr %78, i64 112
  %80 = load i32, ptr %79, align 8
  %81 = and i32 %80, 16384
  %.not122 = icmp eq i32 %81, 0
  br i1 %.not122, label %95, label %82

82:                                               ; preds = %.lr.ph168
  %83 = getelementptr inbounds i8, ptr %78, i64 104
  %84 = load i32, ptr %83, align 8, !tbaa !20
  %.not123 = icmp eq i32 %84, 0
  br i1 %.not123, label %93, label %85

85:                                               ; preds = %82
  %86 = and i32 %80, 512
  %.not125 = icmp eq i32 %86, 0
  br i1 %.not125, label %91, label %87

87:                                               ; preds = %85
  %88 = getelementptr inbounds i8, ptr %78, i64 40
  %89 = load ptr, ptr %88, align 8, !tbaa !26
  %90 = call i32 @qh_setunique(ptr noundef %0, ptr noundef nonnull %9, ptr noundef %89) #3
  %.not126 = icmp eq i32 %90, 0
  br i1 %.not126, label %95, label %91

91:                                               ; preds = %87, %85
  %92 = add nsw i32 %.085165, 1
  br label %95

93:                                               ; preds = %82
  %.not124 = icmp ne i32 %.076166, 0
  %94 = zext i1 %.not124 to i32
  %spec.select = add nsw i32 %.085165, %94
  br label %95

95:                                               ; preds = %93, %91, %87, %.lr.ph168
  %.186 = phi i32 [ %92, %91 ], [ %.085165, %87 ], [ %.085165, %.lr.ph168 ], [ %spec.select, %93 ]
  %.177 = phi i32 [ %.076166, %91 ], [ %.076166, %87 ], [ %.076166, %.lr.ph168 ], [ 0, %93 ]
  %.081 = getelementptr inbounds i8, ptr %.081167, i64 8
  %96 = load ptr, ptr %.081, align 8, !tbaa !15
  %.not117 = icmp eq ptr %96, null
  br i1 %.not117, label %._crit_edge169, label %.lr.ph168, !llvm.loop !27

._crit_edge169:                                   ; preds = %95
  %97 = load i32, ptr %43, align 8, !tbaa !28
  %98 = add nsw i32 %97, -1
  %.not118 = icmp slt i32 %.186, %98
  br i1 %.not118, label %.outer, label %101

._crit_edge169.thread:                            ; preds = %.preheader146
  %99 = load i32, ptr %43, align 8, !tbaa !28
  %.not118203 = icmp sgt i32 %99, 1
  br i1 %.not118203, label %.outer, label %.thread134

.thread128:                                       ; preds = %73
  %100 = load i32, ptr %43, align 8, !tbaa !28
  %.not118131 = icmp sgt i32 %100, 1
  br i1 %.not118131, label %.outer, label %.thread134

101:                                              ; preds = %._crit_edge169
  %.not119 = icmp eq i32 %.177, 0
  br i1 %.not119, label %104, label %.thread134

.thread134:                                       ; preds = %._crit_edge169.thread, %.thread128, %101
  %.287132139 = phi i32 [ %.186, %101 ], [ 0, %.thread128 ], [ 0, %._crit_edge169.thread ]
  br i1 %45, label %.backedge, label %105

.backedge:                                        ; preds = %.thread134, %104
  %102 = getelementptr inbounds i8, ptr %65, i64 8
  %103 = load ptr, ptr %65, align 8, !tbaa !15
  %.not112 = icmp eq ptr %103, null
  br i1 %.not112, label %.loopexit, label %63, !llvm.loop !29

104:                                              ; preds = %101
  br i1 %44, label %.backedge, label %105

105:                                              ; preds = %104, %.thread134
  %.287132138 = phi i32 [ %.287132139, %.thread134 ], [ %.186, %104 ]
  %.075 = phi i32 [ 0, %.thread134 ], [ 1, %104 ]
  %106 = add nsw i32 %.1.ph176, 1
  %107 = load i32, ptr %46, align 8, !tbaa !30
  %108 = icmp sgt i32 %107, 3
  br i1 %108, label %109, label %116

109:                                              ; preds = %105
  %110 = load ptr, ptr %47, align 8, !tbaa !31
  %111 = load ptr, ptr %48, align 8, !tbaa !32
  %112 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %111) #3
  %113 = getelementptr inbounds i8, ptr %64, i64 16
  %114 = load ptr, ptr %113, align 8, !tbaa !32
  %115 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %114) #3
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %110, i32 noundef 4017, ptr noundef nonnull @.str.11, i32 noundef %.287132138, i32 noundef %112, i32 noundef %115) #3
  br label %116

116:                                              ; preds = %109, %105
  br i1 %.not120, label %.outer, label %117

117:                                              ; preds = %116
  br i1 %.not121, label %123, label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %43, align 8, !tbaa !28
  %120 = icmp eq i32 %119, 4
  br i1 %120, label %121, label %123

121:                                              ; preds = %118
  %122 = call ptr @qh_detvridge3(ptr noundef nonnull %0, ptr noundef %3, ptr noundef nonnull %64)
  br label %125

123:                                              ; preds = %118, %117
  %124 = call ptr @qh_detvridge(ptr noundef nonnull %0, ptr noundef nonnull %64)
  br label %125

125:                                              ; preds = %123, %121
  %storemerge = phi ptr [ %124, %123 ], [ %122, %121 ]
  store ptr %storemerge, ptr %8, align 8, !tbaa !15
  call void %2(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %3, ptr noundef nonnull %64, ptr noundef %storemerge, i32 noundef %.075) #3
  call void @qh_settempfree(ptr noundef nonnull %0, ptr noundef nonnull %8) #3
  br label %.outer

.outer:                                           ; preds = %.thread128, %._crit_edge169, %69, %63, %._crit_edge169.thread, %125, %116
  %.2 = phi i32 [ %106, %125 ], [ %106, %116 ], [ %.1.ph176, %._crit_edge169.thread ], [ %.1.ph176, %63 ], [ %.1.ph176, %69 ], [ %.1.ph176, %._crit_edge169 ], [ %.1.ph176, %.thread128 ]
  %126 = getelementptr inbounds i8, ptr %65, i64 8
  %127 = load ptr, ptr %65, align 8, !tbaa !15
  %.not112171 = icmp eq ptr %127, null
  br i1 %.not112171, label %.loopexit, label %.lr.ph172, !llvm.loop !29

.loopexit:                                        ; preds = %.outer, %.backedge, %57, %54, %49
  %.3 = phi i32 [ %.0180, %54 ], [ %.0180, %49 ], [ %.0180, %57 ], [ %.1.ph176, %.backedge ], [ %.2, %.outer ]
  %.183 = getelementptr inbounds i8, ptr %.183181, i64 8
  %128 = load ptr, ptr %.183, align 8, !tbaa !15
  %.not106 = icmp eq ptr %128, null
  br i1 %.not106, label %._crit_edge183, label %49, !llvm.loop !33

._crit_edge183:                                   ; preds = %.loopexit
  %.pr141.pre = load ptr, ptr %29, align 8, !tbaa !18
  %.not107 = icmp eq ptr %.pr141.pre, null
  br i1 %.not107, label %.thread142, label %.preheader

.preheader:                                       ; preds = %.preheader148, %._crit_edge183
  %.0.lcssa213 = phi i32 [ %.3, %._crit_edge183 ], [ 0, %.preheader148 ]
  %.pr141212 = phi ptr [ %.pr141.pre, %._crit_edge183 ], [ %.pr200, %.preheader148 ]
  %.284185 = getelementptr inbounds i8, ptr %.pr141212, i64 8
  %129 = load ptr, ptr %.284185, align 8, !tbaa !15
  %.not109186 = icmp eq ptr %129, null
  br i1 %.not109186, label %.thread142, label %.lr.ph188

.lr.ph188:                                        ; preds = %.preheader, %.lr.ph188
  %130 = phi ptr [ %134, %.lr.ph188 ], [ %129, %.preheader ]
  %.284187 = phi ptr [ %.284, %.lr.ph188 ], [ %.284185, %.preheader ]
  %131 = getelementptr inbounds i8, ptr %130, i64 112
  %132 = load i32, ptr %131, align 8
  %133 = and i32 %132, -16385
  store i32 %133, ptr %131, align 8
  %.284 = getelementptr inbounds i8, ptr %.284187, i64 8
  %134 = load ptr, ptr %.284, align 8, !tbaa !15
  %.not109 = icmp eq ptr %134, null
  br i1 %.not109, label %.thread142, label %.lr.ph188, !llvm.loop !34

.thread142:                                       ; preds = %.lr.ph188, %.preheader, %.critedge, %._crit_edge, %._crit_edge183
  %.4145 = phi i32 [ %.3, %._crit_edge183 ], [ 0, %._crit_edge ], [ 0, %.critedge ], [ %.0.lcssa213, %.preheader ], [ %.0.lcssa213, %.lr.ph188 ]
  call void @qh_settempfree(ptr noundef %0, ptr noundef nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  ret i32 %.4145
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 2448}
!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 = !{!11, !11, i64 0}
!16 = !{!6, !7, i64 2568}
!17 = !{!6, !7, i64 2788}
!18 = !{!19, !11, i64 24}
!19 = !{!"vertexT", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40}
!20 = !{!21, !7, i64 104}
!21 = !{!"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}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!21, !11, i64 64}
!25 = !{!19, !7, i64 36}
!26 = !{!21, !11, i64 40}
!27 = distinct !{!27, !23}
!28 = !{!6, !7, i64 632}
!29 = distinct !{!29, !23}
!30 = !{!6, !7, i64 136}
!31 = !{!6, !11, i64 2424}
!32 = !{!19, !11, i64 16}
!33 = distinct !{!33, !23}
!34 = distinct !{!34, !23}


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