; LLVM IR from Discngine/fpocket :: src/qhull/src/libqhull (io)

; 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, double, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, double, i32, double, i32, 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, i32, double, double, double, 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, i32, ptr, double, double, double, double, [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, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, ptr, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.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 }

@qh_qh = external global %struct.qhT, align 8
@.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, i32 noundef, ptr noundef, ...) #1

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

declare i32 @qh_pointid(ptr noundef) #1

declare ptr @qh_settemp(i32 noundef) #1

declare void @qh_settempfree(ptr noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @qh_eachvoronoi(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #2 {
  %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 i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %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 i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, 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
  %26 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 155), align 8, !tbaa !11
  %27 = call ptr @qh_settemp(i32 noundef %26)
  store ptr %27, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  %28 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 169), align 8, !tbaa !15
  store i32 %28, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  store i32 0, ptr %25, align 4, !tbaa !9
  %29 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !16
  %30 = add i32 %29, 1
  store i32 %30, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !16
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.vertexT, ptr %31, i32 0, i32 6
  %33 = load i8, ptr %32, align 8
  %34 = and i8 %33, -2
  %35 = or i8 %34, 1
  store i8 %35, ptr %32, align 8
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %61

38:                                               ; preds = %6
  %39 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !17
  store ptr %39, ptr %21, align 8, !tbaa !5
  br label %40

40:                                               ; preds = %56, %38
  %41 = load ptr, ptr %21, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %48

43:                                               ; preds = %40
  %44 = load ptr, ptr %21, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.vertexT, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !18
  %47 = icmp ne ptr %46, null
  br label %48

48:                                               ; preds = %43, %40
  %49 = phi i1 [ false, %40 ], [ %47, %43 ]
  br i1 %49, label %50, label %60

50:                                               ; preds = %48
  %51 = load ptr, ptr %21, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.vertexT, ptr %51, i32 0, i32 6
  %53 = load i8, ptr %52, align 8
  %54 = and i8 %53, -2
  %55 = or i8 %54, 0
  store i8 %55, ptr %52, align 8
  br label %56

56:                                               ; preds = %50
  %57 = load ptr, ptr %21, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.vertexT, ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !18
  store ptr %59, ptr %21, align 8, !tbaa !5
  br label %40, !llvm.loop !20

60:                                               ; preds = %48
  br label %61

61:                                               ; preds = %60, %6
  store ptr null, ptr %15, align 8, !tbaa !5
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.vertexT, ptr %62, i32 0, i32 3
  %64 = load ptr, ptr %63, align 8, !tbaa !22
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %91

66:                                               ; preds = %61
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.vertexT, ptr %67, i32 0, i32 3
  %69 = load ptr, ptr %68, align 8, !tbaa !22
  %70 = getelementptr inbounds %struct.setT, ptr %69, i32 0, i32 1
  %71 = getelementptr inbounds [1 x %union.setelemT], ptr %70, i64 0, i64 0
  store ptr %71, ptr %16, align 8, !tbaa !5
  br label %72

72:                                               ; preds = %89, %66
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = getelementptr inbounds ptr, ptr %73, i32 1
  store ptr %74, ptr %16, align 8, !tbaa !5
  %75 = load ptr, ptr %73, align 8, !tbaa !5
  store ptr %75, ptr %15, align 8, !tbaa !5
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %90

77:                                               ; preds = %72
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.facetT, ptr %78, i32 0, i32 13
  %80 = load i32, ptr %79, align 8, !tbaa !23
  %81 = load i32, ptr %24, align 4, !tbaa !9
  %82 = icmp ult i32 %80, %81
  br i1 %82, label %83, label %89

83:                                               ; preds = %77
  %84 = load ptr, ptr %15, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.facetT, ptr %84, i32 0, i32 15
  %86 = load i32, ptr %85, align 8
  %87 = and i32 %86, -16385
  %88 = or i32 %87, 16384
  store i32 %88, ptr %85, align 8
  br label %89

89:                                               ; preds = %83, %77
  br label %72, !llvm.loop !25

90:                                               ; preds = %72
  br label %91

91:                                               ; preds = %90, %61
  store ptr null, ptr %15, align 8, !tbaa !5
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.vertexT, ptr %92, i32 0, i32 3
  %94 = load ptr, ptr %93, align 8, !tbaa !22
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %269

96:                                               ; preds = %91
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.vertexT, ptr %97, i32 0, i32 3
  %99 = load ptr, ptr %98, align 8, !tbaa !22
  %100 = getelementptr inbounds %struct.setT, ptr %99, i32 0, i32 1
  %101 = getelementptr inbounds [1 x %union.setelemT], ptr %100, i64 0, i64 0
  store ptr %101, ptr %16, align 8, !tbaa !5
  br label %102

102:                                              ; preds = %267, %96
  %103 = load ptr, ptr %16, align 8, !tbaa !5
  %104 = getelementptr inbounds ptr, ptr %103, i32 1
  store ptr %104, ptr %16, align 8, !tbaa !5
  %105 = load ptr, ptr %103, align 8, !tbaa !5
  store ptr %105, ptr %15, align 8, !tbaa !5
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %268

107:                                              ; preds = %102
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.facetT, ptr %108, i32 0, i32 15
  %110 = load i32, ptr %109, align 8
  %111 = lshr i32 %110, 14
  %112 = and i32 %111, 1
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %267

114:                                              ; preds = %107
  store ptr null, ptr %21, align 8, !tbaa !5
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.facetT, ptr %115, i32 0, i32 8
  %117 = load ptr, ptr %116, align 8, !tbaa !26
  %118 = icmp ne ptr %117, null
  br i1 %118, label %119, label %266

119:                                              ; preds = %114
  %120 = load ptr, ptr %15, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.facetT, ptr %120, i32 0, i32 8
  %122 = load ptr, ptr %121, align 8, !tbaa !26
  %123 = getelementptr inbounds %struct.setT, ptr %122, i32 0, i32 1
  %124 = getelementptr inbounds [1 x %union.setelemT], ptr %123, i64 0, i64 0
  store ptr %124, ptr %22, align 8, !tbaa !5
  br label %125

125:                                              ; preds = %264, %218, %213, %119
  %126 = load ptr, ptr %22, align 8, !tbaa !5
  %127 = getelementptr inbounds ptr, ptr %126, i32 1
  store ptr %127, ptr %22, align 8, !tbaa !5
  %128 = load ptr, ptr %126, align 8, !tbaa !5
  store ptr %128, ptr %21, align 8, !tbaa !5
  %129 = icmp ne ptr %128, null
  br i1 %129, label %130, label %265

130:                                              ; preds = %125
  %131 = load ptr, ptr %21, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.vertexT, ptr %131, i32 0, i32 5
  %133 = load i32, ptr %132, align 4, !tbaa !27
  %134 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !16
  %135 = icmp ne i32 %133, %134
  br i1 %135, label %136, label %264

136:                                              ; preds = %130
  %137 = load ptr, ptr %21, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.vertexT, ptr %137, i32 0, i32 6
  %139 = load i8, ptr %138, align 8
  %140 = and i8 %139, 1
  %141 = zext i8 %140 to i32
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %264, label %143

143:                                              ; preds = %136
  %144 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !16
  %145 = load ptr, ptr %21, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.vertexT, ptr %145, i32 0, i32 5
  store i32 %144, ptr %146, align 4, !tbaa !27
  store i32 0, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !9
  %147 = load ptr, ptr %20, align 8, !tbaa !5
  call void @qh_settruncate(ptr noundef %147, i32 noundef 0)
  store ptr null, ptr %17, align 8, !tbaa !5
  %148 = load ptr, ptr %21, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.vertexT, ptr %148, i32 0, i32 3
  %150 = load ptr, ptr %149, align 8, !tbaa !22
  %151 = icmp ne ptr %150, null
  br i1 %151, label %152, label %202

152:                                              ; preds = %143
  %153 = load ptr, ptr %21, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.vertexT, ptr %153, i32 0, i32 3
  %155 = load ptr, ptr %154, align 8, !tbaa !22
  %156 = getelementptr inbounds %struct.setT, ptr %155, i32 0, i32 1
  %157 = getelementptr inbounds [1 x %union.setelemT], ptr %156, i64 0, i64 0
  store ptr %157, ptr %18, align 8, !tbaa !5
  br label %158

158:                                              ; preds = %200, %152
  %159 = load ptr, ptr %18, align 8, !tbaa !5
  %160 = getelementptr inbounds ptr, ptr %159, i32 1
  store ptr %160, ptr %18, align 8, !tbaa !5
  %161 = load ptr, ptr %159, align 8, !tbaa !5
  store ptr %161, ptr %17, align 8, !tbaa !5
  %162 = icmp ne ptr %161, null
  br i1 %162, label %163, label %201

163:                                              ; preds = %158
  %164 = load ptr, ptr %17, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.facetT, ptr %164, i32 0, i32 15
  %166 = load i32, ptr %165, align 8
  %167 = lshr i32 %166, 14
  %168 = and i32 %167, 1
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %200

170:                                              ; preds = %163
  %171 = load ptr, ptr %17, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.facetT, ptr %171, i32 0, i32 13
  %173 = load i32, ptr %172, align 8, !tbaa !23
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %192

175:                                              ; preds = %170
  %176 = load ptr, ptr %17, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.facetT, ptr %176, i32 0, i32 15
  %178 = load i32, ptr %177, align 8
  %179 = lshr i32 %178, 9
  %180 = and i32 %179, 1
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %188

182:                                              ; preds = %175
  %183 = load ptr, ptr %17, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.facetT, ptr %183, i32 0, i32 5
  %185 = load ptr, ptr %184, align 8, !tbaa !28
  %186 = call i32 @qh_setunique(ptr noundef %20, ptr noundef %185)
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %188, label %191

188:                                              ; preds = %182, %175
  %189 = load i32, ptr %14, align 4, !tbaa !9
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %14, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %188, %182
  br label %199

192:                                              ; preds = %170
  %193 = load i32, ptr %23, align 4, !tbaa !9
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %195, label %198

195:                                              ; preds = %192
  %196 = load i32, ptr %14, align 4, !tbaa !9
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %195, %192
  br label %199

199:                                              ; preds = %198, %191
  br label %200

200:                                              ; preds = %199, %163
  br label %158, !llvm.loop !29

201:                                              ; preds = %158
  br label %202

202:                                              ; preds = %201, %143
  %203 = load i32, ptr %14, align 4, !tbaa !9
  %204 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !30
  %205 = sub nsw i32 %204, 1
  %206 = icmp sge i32 %203, %205
  br i1 %206, label %207, label %263

207:                                              ; preds = %202
  %208 = load i32, ptr %23, align 4, !tbaa !9
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %215

210:                                              ; preds = %207
  %211 = load i32, ptr %11, align 4, !tbaa !9
  %212 = icmp eq i32 %211, 2
  br i1 %212, label %213, label %214

213:                                              ; preds = %210
  br label %125, !llvm.loop !31

214:                                              ; preds = %210
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %220

215:                                              ; preds = %207
  %216 = load i32, ptr %11, align 4, !tbaa !9
  %217 = icmp eq i32 %216, 1
  br i1 %217, label %218, label %219

218:                                              ; preds = %215
  br label %125, !llvm.loop !31

219:                                              ; preds = %215
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %219, %214
  %221 = load i32, ptr %25, align 4, !tbaa !9
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %25, align 4, !tbaa !9
  %223 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !32
  %224 = icmp sge i32 %223, 4
  br i1 %224, label %225, label %236

225:                                              ; preds = %220
  %226 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !33
  %227 = load i32, ptr %14, align 4, !tbaa !9
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.vertexT, ptr %228, i32 0, i32 2
  %230 = load ptr, ptr %229, align 8, !tbaa !34
  %231 = call i32 @qh_pointid(ptr noundef %230)
  %232 = load ptr, ptr %21, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.vertexT, ptr %232, i32 0, i32 2
  %234 = load ptr, ptr %233, align 8, !tbaa !34
  %235 = call i32 @qh_pointid(ptr noundef %234)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %226, i32 noundef 4017, ptr noundef @.str.11, i32 noundef %227, i32 noundef %231, i32 noundef %235)
  br label %236

236:                                              ; preds = %225, %220
  %237 = load ptr, ptr %8, align 8, !tbaa !5
  %238 = icmp ne ptr %237, null
  br i1 %238, label %239, label %262

239:                                              ; preds = %236
  %240 = load ptr, ptr %7, align 8, !tbaa !5
  %241 = icmp ne ptr %240, null
  br i1 %241, label %242, label %262

242:                                              ; preds = %239
  %243 = load i32, ptr %12, align 4, !tbaa !9
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %245, label %252

245:                                              ; preds = %242
  %246 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !30
  %247 = icmp eq i32 %246, 4
  br i1 %247, label %248, label %252

248:                                              ; preds = %245
  %249 = load ptr, ptr %9, align 8, !tbaa !5
  %250 = load ptr, ptr %21, align 8, !tbaa !5
  %251 = call ptr @qh_detvridge3(ptr noundef %249, ptr noundef %250)
  store ptr %251, ptr %19, align 8, !tbaa !5
  br label %255

252:                                              ; preds = %245, %242
  %253 = load ptr, ptr %21, align 8, !tbaa !5
  %254 = call ptr @qh_detvridge(ptr noundef %253)
  store ptr %254, ptr %19, align 8, !tbaa !5
  br label %255

255:                                              ; preds = %252, %248
  %256 = load ptr, ptr %8, align 8, !tbaa !5
  %257 = load ptr, ptr %7, align 8, !tbaa !5
  %258 = load ptr, ptr %9, align 8, !tbaa !5
  %259 = load ptr, ptr %21, align 8, !tbaa !5
  %260 = load ptr, ptr %19, align 8, !tbaa !5
  %261 = load i32, ptr %13, align 4, !tbaa !9
  call void %256(ptr noundef %257, ptr noundef %258, ptr noundef %259, ptr noundef %260, i32 noundef %261)
  call void @qh_settempfree(ptr noundef %19)
  br label %262

262:                                              ; preds = %255, %239, %236
  br label %263

263:                                              ; preds = %262, %202
  br label %264

264:                                              ; preds = %263, %136, %130
  br label %125, !llvm.loop !31

265:                                              ; preds = %125
  br label %266

266:                                              ; preds = %265, %114
  br label %267

267:                                              ; preds = %266, %107
  br label %102, !llvm.loop !35

268:                                              ; preds = %102
  br label %269

269:                                              ; preds = %268, %91
  store ptr null, ptr %15, align 8, !tbaa !5
  %270 = load ptr, ptr %9, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.vertexT, ptr %270, i32 0, i32 3
  %272 = load ptr, ptr %271, align 8, !tbaa !22
  %273 = icmp ne ptr %272, null
  br i1 %273, label %274, label %292

274:                                              ; preds = %269
  %275 = load ptr, ptr %9, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.vertexT, ptr %275, i32 0, i32 3
  %277 = load ptr, ptr %276, align 8, !tbaa !22
  %278 = getelementptr inbounds %struct.setT, ptr %277, i32 0, i32 1
  %279 = getelementptr inbounds [1 x %union.setelemT], ptr %278, i64 0, i64 0
  store ptr %279, ptr %16, align 8, !tbaa !5
  br label %280

280:                                              ; preds = %285, %274
  %281 = load ptr, ptr %16, align 8, !tbaa !5
  %282 = getelementptr inbounds ptr, ptr %281, i32 1
  store ptr %282, ptr %16, align 8, !tbaa !5
  %283 = load ptr, ptr %281, align 8, !tbaa !5
  store ptr %283, ptr %15, align 8, !tbaa !5
  %284 = icmp ne ptr %283, null
  br i1 %284, label %285, label %291

285:                                              ; preds = %280
  %286 = load ptr, ptr %15, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.facetT, ptr %286, i32 0, i32 15
  %288 = load i32, ptr %287, align 8
  %289 = and i32 %288, -16385
  %290 = or i32 %289, 0
  store i32 %290, ptr %287, align 8
  br label %280, !llvm.loop !36

291:                                              ; preds = %280
  br label %292

292:                                              ; preds = %291, %269
  call void @qh_settempfree(ptr noundef %20)
  %293 = load i32, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  ret i32 %293
}

declare void @qh_settruncate(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 2432}
!12 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !13, i64 56, !13, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !6, i64 96, !10, i64 104, !10, i64 108, !6, i64 112, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !13, i64 152, !13, i64 160, !10, i64 168, !10, i64 172, !10, i64 176, !13, i64 184, !13, i64 192, !10, i64 200, !13, i64 208, !10, i64 216, !10, i64 220, !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, !7, i64 296, !10, i64 412, !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, !13, i64 544, !10, i64 552, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !13, i64 584, !10, i64 592, !6, i64 600, !6, i64 608, !10, i64 616, !10, i64 620, !10, i64 624, !10, i64 628, !10, i64 632, !6, i64 640, !10, i64 648, !6, i64 656, !10, i64 664, !7, i64 668, !10, i64 924, !7, i64 928, !7, i64 1184, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !10, i64 1716, !6, i64 1720, !6, i64 1728, !6, i64 1736, !6, i64 1744, !13, 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, !10, i64 1856, !6, i64 1864, !13, i64 1872, !13, i64 1880, !13, i64 1888, !13, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 2112, !7, i64 2152, !7, i64 2352, !6, i64 2392, !6, i64 2400, !6, i64 2408, !6, i64 2416, !10, i64 2424, !10, i64 2428, !10, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !10, i64 2480, !10, i64 2484, !6, i64 2488, !10, i64 2496, !6, i64 2504, !6, i64 2512, !6, i64 2520, !6, i64 2528, !10, i64 2536, !10, i64 2540, !10, i64 2544, !10, i64 2548, !10, i64 2552, !10, i64 2556, !10, i64 2560, !14, i64 2568, !10, i64 2576, !10, i64 2580, !10, i64 2584, !10, i64 2588, !6, i64 2592, !10, i64 2600, !10, i64 2604, !13, i64 2608, !10, i64 2616, !13, i64 2624, !13, i64 2632, !13, i64 2640, !10, i64 2648, !10, i64 2652, !10, i64 2656, !10, i64 2660, !13, i64 2664, !13, i64 2672, !10, i64 2680, !10, i64 2684, !10, i64 2688, !10, i64 2692, !13, i64 2696, !13, i64 2704, !10, i64 2712, !10, i64 2716, !10, i64 2720, !10, i64 2724, !6, i64 2728, !6, i64 2736, !6, i64 2744, !6, i64 2752, !6, i64 2760, !6, i64 2768, !6, i64 2776, !6, i64 2784, !10, i64 2792, !6, i64 2800, !6, i64 2808, !10, i64 2816, !10, i64 2820, !10, i64 2824, !6, i64 2832, !13, i64 2840, !13, i64 2848, !13, i64 2856, !10, i64 2864, !10, i64 2868, !6, i64 2872, !6, i64 2880, !10, i64 2888}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !10, i64 2536}
!16 = !{!12, !10, i64 2716}
!17 = !{!12, !6, i64 2512}
!18 = !{!19, !6, i64 0}
!19 = !{!"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}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!19, !6, i64 24}
!23 = !{!24, !10, i64 104}
!24 = !{!"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}
!25 = distinct !{!25, !21}
!26 = !{!24, !6, i64 64}
!27 = !{!19, !10, i64 36}
!28 = !{!24, !6, i64 40}
!29 = distinct !{!29, !21}
!30 = !{!12, !10, i64 624}
!31 = distinct !{!31, !21}
!32 = !{!12, !10, i64 128}
!33 = !{!12, !6, i64 2408}
!34 = !{!19, !6, i64 16}
!35 = distinct !{!35, !21}
!36 = distinct !{!36, !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"

%struct.qhT = type { i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, double, i32, double, i32, 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, i32, double, double, double, 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, i32, ptr, double, double, double, double, [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, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, ptr, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@.str.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, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

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

declare i32 @qh_pointid(ptr noundef) local_unnamed_addr #1

declare ptr @qh_settemp(i32 noundef) local_unnamed_addr #1

declare void @qh_settempfree(ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @qh_eachvoronoi(ptr noundef %0, ptr noundef readonly %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2432), align 8, !tbaa !5
  %10 = tail call ptr @qh_settemp(i32 noundef %9) #3
  store ptr %10, ptr %8, align 8, !tbaa !13
  %11 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2536), align 8, !tbaa !14
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !15
  %13 = add i32 %12, 1
  store i32 %13, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %2, i64 40
  %15 = load i8, ptr %14, align 8
  %16 = or i8 %15, 1
  store i8 %16, ptr %14, align 8
  %.not = icmp eq i32 %3, 0
  %.063138 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2512), align 8
  %.not84139 = icmp eq ptr %.063138, null
  %or.cond172 = select i1 %.not, i1 true, i1 %.not84139
  br i1 %or.cond172, label %.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %6
  %17 = load ptr, ptr %.063138, align 8, !tbaa !13
  %.not85212 = icmp eq ptr %17, null
  br i1 %.not85212, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %18 = phi ptr [ %22, %.lr.ph ], [ %17, %.lr.ph.preheader ]
  %.063140213 = phi ptr [ %18, %.lr.ph ], [ %.063138, %.lr.ph.preheader ]
  %19 = getelementptr inbounds i8, ptr %.063140213, i64 40
  %20 = load i8, ptr %19, align 8
  %21 = and i8 %20, -2
  store i8 %21, ptr %19, align 8
  %22 = load ptr, ptr %18, align 8, !tbaa !13
  %.not85 = icmp eq ptr %22, null
  br i1 %.not85, label %.critedge, label %.lr.ph

.critedge:                                        ; preds = %.lr.ph, %.lr.ph.preheader, %6
  %23 = getelementptr inbounds i8, ptr %2, i64 24
  %24 = load ptr, ptr %23, align 8, !tbaa !16
  %.not86 = icmp eq ptr %24, null
  br i1 %.not86, label %.thread124, label %.preheader131

.preheader131:                                    ; preds = %.critedge
  %.065142 = getelementptr inbounds i8, ptr %24, i64 8
  %25 = load ptr, ptr %.065142, align 8, !tbaa !13
  %.not87143 = icmp eq ptr %25, null
  br i1 %.not87143, label %.preheader130, label %.lr.ph145

.lr.ph145:                                        ; preds = %.preheader131, %34
  %26 = phi ptr [ %35, %34 ], [ %25, %.preheader131 ]
  %.065144 = phi ptr [ %.065, %34 ], [ %.065142, %.preheader131 ]
  %27 = getelementptr inbounds i8, ptr %26, i64 104
  %28 = load i32, ptr %27, align 8, !tbaa !18
  %29 = icmp ult i32 %28, %11
  br i1 %29, label %30, label %34

30:                                               ; preds = %.lr.ph145
  %31 = getelementptr inbounds i8, ptr %26, i64 112
  %32 = load i32, ptr %31, align 8
  %33 = or i32 %32, 16384
  store i32 %33, ptr %31, align 8
  br label %34

34:                                               ; preds = %30, %.lr.ph145
  %.065 = getelementptr inbounds i8, ptr %.065144, i64 8
  %35 = load ptr, ptr %.065, align 8, !tbaa !13
  %.not87 = icmp eq ptr %35, null
  br i1 %.not87, label %._crit_edge, label %.lr.ph145, !llvm.loop !20

._crit_edge:                                      ; preds = %34
  %.pr.pre = load ptr, ptr %23, align 8, !tbaa !16
  %.not88 = icmp eq ptr %.pr.pre, null
  br i1 %.not88, label %.thread124, label %.preheader130

.preheader130:                                    ; preds = %.preheader131, %._crit_edge
  %.pr184 = phi ptr [ %.pr.pre, %._crit_edge ], [ %24, %.preheader131 ]
  %.166161 = getelementptr inbounds i8, ptr %.pr184, i64 8
  %36 = load ptr, ptr %.166161, align 8, !tbaa !13
  %.not90162 = icmp eq ptr %36, null
  br i1 %.not90162, label %.preheader, label %.lr.ph165

.lr.ph165:                                        ; preds = %.preheader130
  %37 = icmp eq i32 %4, 1
  %38 = icmp eq i32 %4, 2
  %39 = getelementptr inbounds i8, ptr %2, i64 16
  %40 = icmp ne ptr %1, null
  %41 = icmp ne ptr %0, null
  %or.cond = and i1 %41, %40
  %42 = icmp ne i32 %5, 0
  br label %43

43:                                               ; preds = %.lr.ph165, %.loopexit
  %44 = phi ptr [ %36, %.lr.ph165 ], [ %121, %.loopexit ]
  %.166164 = phi ptr [ %.166161, %.lr.ph165 ], [ %.166, %.loopexit ]
  %.0163 = phi i32 [ 0, %.lr.ph165 ], [ %.3, %.loopexit ]
  %45 = getelementptr inbounds i8, ptr %44, i64 112
  %46 = load i32, ptr %45, align 8
  %47 = and i32 %46, 16384
  %.not94 = icmp eq i32 %47, 0
  br i1 %.not94, label %.loopexit, label %48

48:                                               ; preds = %43
  %49 = getelementptr inbounds i8, ptr %44, i64 64
  %50 = load ptr, ptr %49, align 8, !tbaa !22
  %.not95 = icmp eq ptr %50, null
  br i1 %.not95, label %.loopexit, label %51

51:                                               ; preds = %48
  %52 = getelementptr inbounds i8, ptr %50, i64 8
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  %.not96154158 = icmp eq ptr %53, null
  br i1 %.not96154158, label %.loopexit, label %.lr.ph155.preheader

.lr.ph155.preheader:                              ; preds = %51
  %54 = getelementptr inbounds i8, ptr %50, i64 16
  br label %.lr.ph155

.lr.ph155:                                        ; preds = %.lr.ph155.preheader, %.outer
  %55 = phi ptr [ %120, %.outer ], [ %53, %.lr.ph155.preheader ]
  %56 = phi ptr [ %119, %.outer ], [ %54, %.lr.ph155.preheader ]
  %.1.ph159 = phi i32 [ %.2, %.outer ], [ %.0163, %.lr.ph155.preheader ]
  br label %57

57:                                               ; preds = %.lr.ph155, %.backedge
  %58 = phi ptr [ %55, %.lr.ph155 ], [ %97, %.backedge ]
  %59 = phi ptr [ %56, %.lr.ph155 ], [ %96, %.backedge ]
  %60 = getelementptr inbounds i8, ptr %58, i64 36
  %61 = load i32, ptr %60, align 4, !tbaa !23
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !15
  %.not97 = icmp eq i32 %61, %62
  br i1 %.not97, label %.outer, label %63

63:                                               ; preds = %57
  %64 = getelementptr inbounds i8, ptr %58, i64 40
  %65 = load i8, ptr %64, align 8
  %66 = and i8 %65, 1
  %.not98 = icmp eq i8 %66, 0
  br i1 %.not98, label %67, label %.outer

67:                                               ; preds = %63
  store i32 %62, ptr %60, align 4, !tbaa !23
  %68 = load ptr, ptr %8, align 8, !tbaa !13
  call void @qh_settruncate(ptr noundef %68, i32 noundef 0) #3
  %69 = getelementptr inbounds i8, ptr %58, i64 24
  %70 = load ptr, ptr %69, align 8, !tbaa !16
  %.not99 = icmp eq ptr %70, null
  br i1 %.not99, label %.thread110, label %.preheader128

.preheader128:                                    ; preds = %67
  %.064146 = getelementptr inbounds i8, ptr %70, i64 8
  %71 = load ptr, ptr %.064146, align 8, !tbaa !13
  %.not101147 = icmp eq ptr %71, null
  br i1 %.not101147, label %._crit_edge152.thread, label %.lr.ph151

.lr.ph151:                                        ; preds = %.preheader128, %89
  %72 = phi ptr [ %90, %89 ], [ %71, %.preheader128 ]
  %.064150 = phi ptr [ %.064, %89 ], [ %.064146, %.preheader128 ]
  %.059149 = phi i32 [ %.160, %89 ], [ 1, %.preheader128 ]
  %.068148 = phi i32 [ %.169, %89 ], [ 0, %.preheader128 ]
  %73 = getelementptr inbounds i8, ptr %72, i64 112
  %74 = load i32, ptr %73, align 8
  %75 = and i32 %74, 16384
  %.not104 = icmp eq i32 %75, 0
  br i1 %.not104, label %89, label %76

76:                                               ; preds = %.lr.ph151
  %77 = getelementptr inbounds i8, ptr %72, i64 104
  %78 = load i32, ptr %77, align 8, !tbaa !18
  %.not105 = icmp eq i32 %78, 0
  br i1 %.not105, label %87, label %79

79:                                               ; preds = %76
  %80 = and i32 %74, 512
  %.not107 = icmp eq i32 %80, 0
  br i1 %.not107, label %85, label %81

81:                                               ; preds = %79
  %82 = getelementptr inbounds i8, ptr %72, i64 40
  %83 = load ptr, ptr %82, align 8, !tbaa !24
  %84 = call i32 @qh_setunique(ptr noundef nonnull %8, ptr noundef %83) #3
  %.not108 = icmp eq i32 %84, 0
  br i1 %.not108, label %89, label %85

85:                                               ; preds = %81, %79
  %86 = add nsw i32 %.068148, 1
  br label %89

87:                                               ; preds = %76
  %.not106 = icmp ne i32 %.059149, 0
  %88 = zext i1 %.not106 to i32
  %spec.select = add nsw i32 %.068148, %88
  br label %89

89:                                               ; preds = %87, %85, %81, %.lr.ph151
  %.169 = phi i32 [ %86, %85 ], [ %.068148, %81 ], [ %.068148, %.lr.ph151 ], [ %spec.select, %87 ]
  %.160 = phi i32 [ %.059149, %85 ], [ %.059149, %81 ], [ %.059149, %.lr.ph151 ], [ 0, %87 ]
  %.064 = getelementptr inbounds i8, ptr %.064150, i64 8
  %90 = load ptr, ptr %.064, align 8, !tbaa !13
  %.not101 = icmp eq ptr %90, null
  br i1 %.not101, label %._crit_edge152, label %.lr.ph151, !llvm.loop !25

._crit_edge152:                                   ; preds = %89
  %91 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !26
  %92 = add nsw i32 %91, -1
  %.not102 = icmp slt i32 %.169, %92
  br i1 %.not102, label %.outer, label %95

._crit_edge152.thread:                            ; preds = %.preheader128
  %93 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !26
  %.not102187 = icmp sgt i32 %93, 1
  br i1 %.not102187, label %.outer, label %.thread116

.thread110:                                       ; preds = %67
  %94 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !26
  %.not102113 = icmp sgt i32 %94, 1
  br i1 %.not102113, label %.outer, label %.thread116

95:                                               ; preds = %._crit_edge152
  %.not103 = icmp eq i32 %.160, 0
  br i1 %.not103, label %98, label %.thread116

.thread116:                                       ; preds = %._crit_edge152.thread, %.thread110, %95
  %.270114121 = phi i32 [ %.169, %95 ], [ 0, %.thread110 ], [ 0, %._crit_edge152.thread ]
  br i1 %38, label %.backedge, label %99

.backedge:                                        ; preds = %.thread116, %98
  %96 = getelementptr inbounds i8, ptr %59, i64 8
  %97 = load ptr, ptr %59, align 8, !tbaa !13
  %.not96 = icmp eq ptr %97, null
  br i1 %.not96, label %.loopexit, label %57, !llvm.loop !27

98:                                               ; preds = %95
  br i1 %37, label %.backedge, label %99

99:                                               ; preds = %98, %.thread116
  %.270114120 = phi i32 [ %.270114121, %.thread116 ], [ %.169, %98 ]
  %.058 = phi i32 [ 0, %.thread116 ], [ 1, %98 ]
  %100 = add nsw i32 %.1.ph159, 1
  %101 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !28
  %102 = icmp sgt i32 %101, 3
  br i1 %102, label %103, label %110

103:                                              ; preds = %99
  %104 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !29
  %105 = load ptr, ptr %39, align 8, !tbaa !30
  %106 = call i32 @qh_pointid(ptr noundef %105) #3
  %107 = getelementptr inbounds i8, ptr %58, i64 16
  %108 = load ptr, ptr %107, align 8, !tbaa !30
  %109 = call i32 @qh_pointid(ptr noundef %108) #3
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %104, i32 noundef 4017, ptr noundef nonnull @.str.11, i32 noundef %.270114120, i32 noundef %106, i32 noundef %109) #3
  br label %110

110:                                              ; preds = %103, %99
  br i1 %or.cond, label %111, label %.outer

111:                                              ; preds = %110
  %112 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8
  %113 = icmp eq i32 %112, 4
  %or.cond3 = select i1 %42, i1 %113, i1 false
  br i1 %or.cond3, label %114, label %116

114:                                              ; preds = %111
  %115 = call ptr @qh_detvridge3(ptr noundef %2, ptr noundef nonnull %58)
  br label %118

116:                                              ; preds = %111
  %117 = call ptr @qh_detvridge(ptr noundef nonnull %58)
  br label %118

118:                                              ; preds = %116, %114
  %storemerge = phi ptr [ %117, %116 ], [ %115, %114 ]
  store ptr %storemerge, ptr %7, align 8, !tbaa !13
  call void %1(ptr noundef nonnull %0, ptr noundef %2, ptr noundef nonnull %58, ptr noundef %storemerge, i32 noundef %.058) #3
  call void @qh_settempfree(ptr noundef nonnull %7) #3
  br label %.outer

.outer:                                           ; preds = %.thread110, %._crit_edge152, %63, %57, %._crit_edge152.thread, %118, %110
  %.2 = phi i32 [ %100, %118 ], [ %100, %110 ], [ %.1.ph159, %._crit_edge152.thread ], [ %.1.ph159, %57 ], [ %.1.ph159, %63 ], [ %.1.ph159, %._crit_edge152 ], [ %.1.ph159, %.thread110 ]
  %119 = getelementptr inbounds i8, ptr %59, i64 8
  %120 = load ptr, ptr %59, align 8, !tbaa !13
  %.not96154 = icmp eq ptr %120, null
  br i1 %.not96154, label %.loopexit, label %.lr.ph155, !llvm.loop !27

.loopexit:                                        ; preds = %.outer, %.backedge, %51, %48, %43
  %.3 = phi i32 [ %.0163, %48 ], [ %.0163, %43 ], [ %.0163, %51 ], [ %.1.ph159, %.backedge ], [ %.2, %.outer ]
  %.166 = getelementptr inbounds i8, ptr %.166164, i64 8
  %121 = load ptr, ptr %.166, align 8, !tbaa !13
  %.not90 = icmp eq ptr %121, null
  br i1 %.not90, label %._crit_edge166, label %43, !llvm.loop !31

._crit_edge166:                                   ; preds = %.loopexit
  %.pr123.pre = load ptr, ptr %23, align 8, !tbaa !16
  %.not91 = icmp eq ptr %.pr123.pre, null
  br i1 %.not91, label %.thread124, label %.preheader

.preheader:                                       ; preds = %.preheader130, %._crit_edge166
  %.0.lcssa197 = phi i32 [ %.3, %._crit_edge166 ], [ 0, %.preheader130 ]
  %.pr123196 = phi ptr [ %.pr123.pre, %._crit_edge166 ], [ %.pr184, %.preheader130 ]
  %.267168 = getelementptr inbounds i8, ptr %.pr123196, i64 8
  %122 = load ptr, ptr %.267168, align 8, !tbaa !13
  %.not93169 = icmp eq ptr %122, null
  br i1 %.not93169, label %.thread124, label %.lr.ph171

.lr.ph171:                                        ; preds = %.preheader, %.lr.ph171
  %123 = phi ptr [ %127, %.lr.ph171 ], [ %122, %.preheader ]
  %.267170 = phi ptr [ %.267, %.lr.ph171 ], [ %.267168, %.preheader ]
  %124 = getelementptr inbounds i8, ptr %123, i64 112
  %125 = load i32, ptr %124, align 8
  %126 = and i32 %125, -16385
  store i32 %126, ptr %124, align 8
  %.267 = getelementptr inbounds i8, ptr %.267170, i64 8
  %127 = load ptr, ptr %.267, align 8, !tbaa !13
  %.not93 = icmp eq ptr %127, null
  br i1 %.not93, label %.thread124, label %.lr.ph171, !llvm.loop !32

.thread124:                                       ; preds = %.lr.ph171, %.preheader, %.critedge, %._crit_edge, %._crit_edge166
  %.4127 = phi i32 [ %.3, %._crit_edge166 ], [ 0, %._crit_edge ], [ 0, %.critedge ], [ %.0.lcssa197, %.preheader ], [ %.0.lcssa197, %.lr.ph171 ]
  call void @qh_settempfree(ptr noundef nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  ret i32 %.4127
}

declare void @qh_settruncate(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 2432}
!6 = !{!"qhT", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !11, i64 96, !7, i64 104, !7, i64 108, !11, i64 112, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !10, i64 152, !10, i64 160, !7, i64 168, !7, i64 172, !7, i64 176, !10, i64 184, !10, i64 192, !7, i64 200, !10, i64 208, !7, i64 216, !7, i64 220, !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, !8, i64 296, !7, i64 412, !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, !10, i64 544, !7, i64 552, !7, i64 556, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !10, i64 584, !7, i64 592, !11, i64 600, !11, i64 608, !7, i64 616, !7, i64 620, !7, i64 624, !7, i64 628, !7, i64 632, !11, i64 640, !7, i64 648, !11, i64 656, !7, i64 664, !8, i64 668, !7, i64 924, !8, i64 928, !8, i64 1184, !7, i64 1696, !7, i64 1700, !7, i64 1704, !7, i64 1708, !7, i64 1712, !7, i64 1716, !11, i64 1720, !11, i64 1728, !11, i64 1736, !11, i64 1744, !10, 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, !7, i64 1856, !11, i64 1864, !10, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !8, i64 1904, !8, i64 1912, !8, i64 2112, !8, i64 2152, !8, i64 2352, !11, i64 2392, !11, i64 2400, !11, i64 2408, !11, i64 2416, !7, i64 2424, !7, i64 2428, !7, i64 2432, !11, i64 2440, !11, i64 2448, !11, i64 2456, !11, i64 2464, !11, i64 2472, !7, i64 2480, !7, i64 2484, !11, i64 2488, !7, i64 2496, !11, i64 2504, !11, i64 2512, !11, i64 2520, !11, i64 2528, !7, i64 2536, !7, i64 2540, !7, i64 2544, !7, i64 2548, !7, i64 2552, !7, i64 2556, !7, i64 2560, !12, i64 2568, !7, i64 2576, !7, i64 2580, !7, i64 2584, !7, i64 2588, !11, i64 2592, !7, i64 2600, !7, i64 2604, !10, i64 2608, !7, i64 2616, !10, i64 2624, !10, i64 2632, !10, i64 2640, !7, i64 2648, !7, i64 2652, !7, i64 2656, !7, i64 2660, !10, i64 2664, !10, i64 2672, !7, i64 2680, !7, i64 2684, !7, i64 2688, !7, i64 2692, !10, i64 2696, !10, i64 2704, !7, i64 2712, !7, i64 2716, !7, i64 2720, !7, i64 2724, !11, i64 2728, !11, i64 2736, !11, i64 2744, !11, i64 2752, !11, i64 2760, !11, i64 2768, !11, i64 2776, !11, i64 2784, !7, i64 2792, !11, i64 2800, !11, i64 2808, !7, i64 2816, !7, i64 2820, !7, i64 2824, !11, i64 2832, !10, i64 2840, !10, i64 2848, !10, i64 2856, !7, i64 2864, !7, i64 2868, !11, i64 2872, !11, i64 2880, !7, i64 2888}
!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 = !{!11, !11, i64 0}
!14 = !{!6, !7, i64 2536}
!15 = !{!6, !7, i64 2716}
!16 = !{!17, !11, i64 24}
!17 = !{!"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}
!18 = !{!19, !7, i64 104}
!19 = !{!"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}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!19, !11, i64 64}
!23 = !{!17, !7, i64 36}
!24 = !{!19, !11, i64 40}
!25 = distinct !{!25, !21}
!26 = !{!6, !7, i64 624}
!27 = distinct !{!27, !21}
!28 = !{!6, !7, i64 128}
!29 = !{!6, !11, i64 2408}
!30 = !{!17, !11, i64 16}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !21}


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