; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/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, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.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 ptr @qh_settemp(i32 noundef) #1

declare i32 @qh_pointid(ptr 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 162), 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 178), 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 218), align 4, !tbaa !16
  %30 = add i32 %29, 1
  store i32 %30, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), 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 175), 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 %266

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 = %264, %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 %265

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 %264

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 %263

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 = %261, %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 %262

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 218), align 4, !tbaa !16
  %135 = icmp ne i32 %133, %134
  br i1 %135, label %136, label %261

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 %261, label %143

143:                                              ; preds = %136
  %144 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), 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 110), align 8, !tbaa !30
  %205 = sub nsw i32 %204, 1
  %206 = icmp sge i32 %203, %205
  br i1 %206, label %207, label %260

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 29), 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 158), 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 %259

239:                                              ; preds = %236
  %240 = load i32, ptr %12, align 4, !tbaa !9
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %249

242:                                              ; preds = %239
  %243 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !30
  %244 = icmp eq i32 %243, 4
  br i1 %244, label %245, label %249

245:                                              ; preds = %242
  %246 = load ptr, ptr %9, align 8, !tbaa !5
  %247 = load ptr, ptr %21, align 8, !tbaa !5
  %248 = call ptr @qh_detvridge3(ptr noundef %246, ptr noundef %247)
  store ptr %248, ptr %19, align 8, !tbaa !5
  br label %252

249:                                              ; preds = %242, %239
  %250 = load ptr, ptr %21, align 8, !tbaa !5
  %251 = call ptr @qh_detvridge(ptr noundef %250)
  store ptr %251, ptr %19, align 8, !tbaa !5
  br label %252

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

259:                                              ; preds = %252, %236
  br label %260

260:                                              ; preds = %259, %202
  br label %261

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

262:                                              ; preds = %125
  br label %263

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

264:                                              ; preds = %263, %107
  br label %102, !llvm.loop !35

265:                                              ; preds = %102
  br label %266

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

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

277:                                              ; preds = %282, %271
  %278 = load ptr, ptr %16, align 8, !tbaa !5
  %279 = getelementptr inbounds ptr, ptr %278, i32 1
  store ptr %279, ptr %16, align 8, !tbaa !5
  %280 = load ptr, ptr %278, align 8, !tbaa !5
  store ptr %280, ptr %15, align 8, !tbaa !5
  %281 = icmp ne ptr %280, null
  br i1 %281, label %282, label %288

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

288:                                              ; preds = %277
  br label %289

289:                                              ; preds = %288, %266
  call void @qh_settempfree(ptr noundef %20)
  %290 = 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 %290
}

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 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, !6, i64 2984, !10, i64 2992}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !10, i64 2568}
!16 = !{!12, !10, i64 2788}
!17 = !{!12, !6, i64 2544}
!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, !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 632}
!31 = distinct !{!31, !21}
!32 = !{!12, !10, i64 136}
!33 = !{!12, !6, i64 2424}
!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, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

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

declare i32 @qh_pointid(ptr 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 2448), 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 2568), align 8, !tbaa !14
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !15
  %13 = add i32 %12, 1
  store i32 %13, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), 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
  %.060135 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2544), align 8
  %.not80136 = icmp eq ptr %.060135, null
  %or.cond169 = select i1 %.not, i1 true, i1 %.not80136
  br i1 %or.cond169, label %.critedge, label %.lr.ph.preheader

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

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %18 = phi ptr [ %22, %.lr.ph ], [ %17, %.lr.ph.preheader ]
  %.060137210 = phi ptr [ %18, %.lr.ph ], [ %.060135, %.lr.ph.preheader ]
  %19 = getelementptr inbounds i8, ptr %.060137210, 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
  %.not81 = icmp eq ptr %22, null
  br i1 %.not81, 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
  %.not82 = icmp eq ptr %24, null
  br i1 %.not82, label %.thread121, label %.preheader128

.preheader128:                                    ; preds = %.critedge
  %.062139 = getelementptr inbounds i8, ptr %24, i64 8
  %25 = load ptr, ptr %.062139, align 8, !tbaa !13
  %.not83140 = icmp eq ptr %25, null
  br i1 %.not83140, label %.preheader127, label %.lr.ph142

.lr.ph142:                                        ; preds = %.preheader128, %34
  %26 = phi ptr [ %35, %34 ], [ %25, %.preheader128 ]
  %.062141 = phi ptr [ %.062, %34 ], [ %.062139, %.preheader128 ]
  %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.ph142
  %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.ph142
  %.062 = getelementptr inbounds i8, ptr %.062141, i64 8
  %35 = load ptr, ptr %.062, align 8, !tbaa !13
  %.not83 = icmp eq ptr %35, null
  br i1 %.not83, label %._crit_edge, label %.lr.ph142, !llvm.loop !20

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

.preheader127:                                    ; preds = %.preheader128, %._crit_edge
  %.pr181 = phi ptr [ %.pr.pre, %._crit_edge ], [ %24, %.preheader128 ]
  %.163158 = getelementptr inbounds i8, ptr %.pr181, i64 8
  %36 = load ptr, ptr %.163158, align 8, !tbaa !13
  %.not86159 = icmp eq ptr %36, null
  br i1 %.not86159, label %.preheader, label %.lr.ph162

.lr.ph162:                                        ; preds = %.preheader127
  %37 = icmp eq i32 %4, 1
  %38 = icmp eq i32 %4, 2
  %39 = getelementptr inbounds i8, ptr %2, i64 16
  %.not100 = icmp eq ptr %1, null
  %40 = icmp ne i32 %5, 0
  br label %41

41:                                               ; preds = %.lr.ph162, %.loopexit
  %42 = phi ptr [ %36, %.lr.ph162 ], [ %119, %.loopexit ]
  %.163161 = phi ptr [ %.163158, %.lr.ph162 ], [ %.163, %.loopexit ]
  %.0160 = phi i32 [ 0, %.lr.ph162 ], [ %.3, %.loopexit ]
  %43 = getelementptr inbounds i8, ptr %42, i64 112
  %44 = load i32, ptr %43, align 8
  %45 = and i32 %44, 16384
  %.not90 = icmp eq i32 %45, 0
  br i1 %.not90, label %.loopexit, label %46

46:                                               ; preds = %41
  %47 = getelementptr inbounds i8, ptr %42, i64 64
  %48 = load ptr, ptr %47, align 8, !tbaa !22
  %.not91 = icmp eq ptr %48, null
  br i1 %.not91, label %.loopexit, label %49

49:                                               ; preds = %46
  %50 = getelementptr inbounds i8, ptr %48, i64 8
  %51 = load ptr, ptr %50, align 8, !tbaa !13
  %.not92151155 = icmp eq ptr %51, null
  br i1 %.not92151155, label %.loopexit, label %.lr.ph152.preheader

.lr.ph152.preheader:                              ; preds = %49
  %52 = getelementptr inbounds i8, ptr %48, i64 16
  br label %.lr.ph152

.lr.ph152:                                        ; preds = %.lr.ph152.preheader, %.outer
  %53 = phi ptr [ %118, %.outer ], [ %51, %.lr.ph152.preheader ]
  %54 = phi ptr [ %117, %.outer ], [ %52, %.lr.ph152.preheader ]
  %.1.ph156 = phi i32 [ %.2, %.outer ], [ %.0160, %.lr.ph152.preheader ]
  br label %55

55:                                               ; preds = %.lr.ph152, %.backedge
  %56 = phi ptr [ %53, %.lr.ph152 ], [ %95, %.backedge ]
  %57 = phi ptr [ %54, %.lr.ph152 ], [ %94, %.backedge ]
  %58 = getelementptr inbounds i8, ptr %56, i64 36
  %59 = load i32, ptr %58, align 4, !tbaa !23
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !15
  %.not93 = icmp eq i32 %59, %60
  br i1 %.not93, label %.outer, label %61

61:                                               ; preds = %55
  %62 = getelementptr inbounds i8, ptr %56, i64 40
  %63 = load i8, ptr %62, align 8
  %64 = and i8 %63, 1
  %.not94 = icmp eq i8 %64, 0
  br i1 %.not94, label %65, label %.outer

65:                                               ; preds = %61
  store i32 %60, ptr %58, align 4, !tbaa !23
  %66 = load ptr, ptr %8, align 8, !tbaa !13
  call void @qh_settruncate(ptr noundef %66, i32 noundef 0) #3
  %67 = getelementptr inbounds i8, ptr %56, i64 24
  %68 = load ptr, ptr %67, align 8, !tbaa !16
  %.not95 = icmp eq ptr %68, null
  br i1 %.not95, label %.thread107, label %.preheader125

.preheader125:                                    ; preds = %65
  %.061143 = getelementptr inbounds i8, ptr %68, i64 8
  %69 = load ptr, ptr %.061143, align 8, !tbaa !13
  %.not97144 = icmp eq ptr %69, null
  br i1 %.not97144, label %._crit_edge149.thread, label %.lr.ph148

.lr.ph148:                                        ; preds = %.preheader125, %87
  %70 = phi ptr [ %88, %87 ], [ %69, %.preheader125 ]
  %.061147 = phi ptr [ %.061, %87 ], [ %.061143, %.preheader125 ]
  %.056146 = phi i32 [ %.157, %87 ], [ 1, %.preheader125 ]
  %.065145 = phi i32 [ %.166, %87 ], [ 0, %.preheader125 ]
  %71 = getelementptr inbounds i8, ptr %70, i64 112
  %72 = load i32, ptr %71, align 8
  %73 = and i32 %72, 16384
  %.not101 = icmp eq i32 %73, 0
  br i1 %.not101, label %87, label %74

74:                                               ; preds = %.lr.ph148
  %75 = getelementptr inbounds i8, ptr %70, i64 104
  %76 = load i32, ptr %75, align 8, !tbaa !18
  %.not102 = icmp eq i32 %76, 0
  br i1 %.not102, label %85, label %77

77:                                               ; preds = %74
  %78 = and i32 %72, 512
  %.not104 = icmp eq i32 %78, 0
  br i1 %.not104, label %83, label %79

79:                                               ; preds = %77
  %80 = getelementptr inbounds i8, ptr %70, i64 40
  %81 = load ptr, ptr %80, align 8, !tbaa !24
  %82 = call i32 @qh_setunique(ptr noundef nonnull %8, ptr noundef %81) #3
  %.not105 = icmp eq i32 %82, 0
  br i1 %.not105, label %87, label %83

83:                                               ; preds = %79, %77
  %84 = add nsw i32 %.065145, 1
  br label %87

85:                                               ; preds = %74
  %.not103 = icmp ne i32 %.056146, 0
  %86 = zext i1 %.not103 to i32
  %spec.select = add nsw i32 %.065145, %86
  br label %87

87:                                               ; preds = %85, %83, %79, %.lr.ph148
  %.166 = phi i32 [ %84, %83 ], [ %.065145, %79 ], [ %.065145, %.lr.ph148 ], [ %spec.select, %85 ]
  %.157 = phi i32 [ %.056146, %83 ], [ %.056146, %79 ], [ %.056146, %.lr.ph148 ], [ 0, %85 ]
  %.061 = getelementptr inbounds i8, ptr %.061147, i64 8
  %88 = load ptr, ptr %.061, align 8, !tbaa !13
  %.not97 = icmp eq ptr %88, null
  br i1 %.not97, label %._crit_edge149, label %.lr.ph148, !llvm.loop !25

._crit_edge149:                                   ; preds = %87
  %89 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !26
  %90 = add nsw i32 %89, -1
  %.not98 = icmp slt i32 %.166, %90
  br i1 %.not98, label %.outer, label %93

._crit_edge149.thread:                            ; preds = %.preheader125
  %91 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !26
  %.not98184 = icmp sgt i32 %91, 1
  br i1 %.not98184, label %.outer, label %.thread113

.thread107:                                       ; preds = %65
  %92 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !26
  %.not98110 = icmp sgt i32 %92, 1
  br i1 %.not98110, label %.outer, label %.thread113

93:                                               ; preds = %._crit_edge149
  %.not99 = icmp eq i32 %.157, 0
  br i1 %.not99, label %96, label %.thread113

.thread113:                                       ; preds = %._crit_edge149.thread, %.thread107, %93
  %.267111118 = phi i32 [ %.166, %93 ], [ 0, %.thread107 ], [ 0, %._crit_edge149.thread ]
  br i1 %38, label %.backedge, label %97

.backedge:                                        ; preds = %.thread113, %96
  %94 = getelementptr inbounds i8, ptr %57, i64 8
  %95 = load ptr, ptr %57, align 8, !tbaa !13
  %.not92 = icmp eq ptr %95, null
  br i1 %.not92, label %.loopexit, label %55, !llvm.loop !27

96:                                               ; preds = %93
  br i1 %37, label %.backedge, label %97

97:                                               ; preds = %96, %.thread113
  %.267111117 = phi i32 [ %.267111118, %.thread113 ], [ %.166, %96 ]
  %.055 = phi i32 [ 0, %.thread113 ], [ 1, %96 ]
  %98 = add nsw i32 %.1.ph156, 1
  %99 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !28
  %100 = icmp sgt i32 %99, 3
  br i1 %100, label %101, label %108

101:                                              ; preds = %97
  %102 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !29
  %103 = load ptr, ptr %39, align 8, !tbaa !30
  %104 = call i32 @qh_pointid(ptr noundef %103) #3
  %105 = getelementptr inbounds i8, ptr %56, i64 16
  %106 = load ptr, ptr %105, align 8, !tbaa !30
  %107 = call i32 @qh_pointid(ptr noundef %106) #3
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %102, i32 noundef 4017, ptr noundef nonnull @.str.11, i32 noundef %.267111117, i32 noundef %104, i32 noundef %107) #3
  br label %108

108:                                              ; preds = %101, %97
  br i1 %.not100, label %.outer, label %109

109:                                              ; preds = %108
  %110 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8
  %111 = icmp eq i32 %110, 4
  %or.cond = select i1 %40, i1 %111, i1 false
  br i1 %or.cond, label %112, label %114

112:                                              ; preds = %109
  %113 = call ptr @qh_detvridge3(ptr noundef %2, ptr noundef nonnull %56)
  br label %116

114:                                              ; preds = %109
  %115 = call ptr @qh_detvridge(ptr noundef nonnull %56)
  br label %116

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

.outer:                                           ; preds = %.thread107, %._crit_edge149, %61, %55, %._crit_edge149.thread, %116, %108
  %.2 = phi i32 [ %98, %116 ], [ %98, %108 ], [ %.1.ph156, %._crit_edge149.thread ], [ %.1.ph156, %55 ], [ %.1.ph156, %61 ], [ %.1.ph156, %._crit_edge149 ], [ %.1.ph156, %.thread107 ]
  %117 = getelementptr inbounds i8, ptr %57, i64 8
  %118 = load ptr, ptr %57, align 8, !tbaa !13
  %.not92151 = icmp eq ptr %118, null
  br i1 %.not92151, label %.loopexit, label %.lr.ph152, !llvm.loop !27

.loopexit:                                        ; preds = %.outer, %.backedge, %49, %46, %41
  %.3 = phi i32 [ %.0160, %46 ], [ %.0160, %41 ], [ %.0160, %49 ], [ %.1.ph156, %.backedge ], [ %.2, %.outer ]
  %.163 = getelementptr inbounds i8, ptr %.163161, i64 8
  %119 = load ptr, ptr %.163, align 8, !tbaa !13
  %.not86 = icmp eq ptr %119, null
  br i1 %.not86, label %._crit_edge163, label %41, !llvm.loop !31

._crit_edge163:                                   ; preds = %.loopexit
  %.pr120.pre = load ptr, ptr %23, align 8, !tbaa !16
  %.not87 = icmp eq ptr %.pr120.pre, null
  br i1 %.not87, label %.thread121, label %.preheader

.preheader:                                       ; preds = %.preheader127, %._crit_edge163
  %.0.lcssa194 = phi i32 [ %.3, %._crit_edge163 ], [ 0, %.preheader127 ]
  %.pr120193 = phi ptr [ %.pr120.pre, %._crit_edge163 ], [ %.pr181, %.preheader127 ]
  %.264165 = getelementptr inbounds i8, ptr %.pr120193, i64 8
  %120 = load ptr, ptr %.264165, align 8, !tbaa !13
  %.not89166 = icmp eq ptr %120, null
  br i1 %.not89166, label %.thread121, label %.lr.ph168

.lr.ph168:                                        ; preds = %.preheader, %.lr.ph168
  %121 = phi ptr [ %125, %.lr.ph168 ], [ %120, %.preheader ]
  %.264167 = phi ptr [ %.264, %.lr.ph168 ], [ %.264165, %.preheader ]
  %122 = getelementptr inbounds i8, ptr %121, i64 112
  %123 = load i32, ptr %122, align 8
  %124 = and i32 %123, -16385
  store i32 %124, ptr %122, align 8
  %.264 = getelementptr inbounds i8, ptr %.264167, i64 8
  %125 = load ptr, ptr %.264, align 8, !tbaa !13
  %.not89 = icmp eq ptr %125, null
  br i1 %.not89, label %.thread121, label %.lr.ph168, !llvm.loop !32

.thread121:                                       ; preds = %.lr.ph168, %.preheader, %.critedge, %._crit_edge, %._crit_edge163
  %.4124 = phi i32 [ %.3, %._crit_edge163 ], [ 0, %._crit_edge ], [ 0, %.critedge ], [ %.0.lcssa194, %.preheader ], [ %.0.lcssa194, %.lr.ph168 ]
  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 %.4124
}

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 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, !11, i64 2984, !7, i64 2992}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!6, !7, i64 2568}
!15 = !{!6, !7, i64 2788}
!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, !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 632}
!27 = distinct !{!27, !21}
!28 = !{!6, !7, i64 136}
!29 = !{!6, !11, i64 2424}
!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