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

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

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }

@.str.13 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

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

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

declare void @qh_clearcenters(ptr noundef, i32 noundef) #1

declare void @qh_vertexneighbors(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_markvoronoi(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr 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 ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = 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 ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, 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 4, ptr %17) #3
  store i32 0, ptr %17, align 4, !tbaa !9
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.qhT, ptr %18, i32 0, i32 211
  %20 = load i32, ptr %19, align 8, !tbaa !11
  %21 = add nsw i32 %20, 1
  store i32 %21, ptr %19, align 8, !tbaa !11
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_clearcenters(ptr noundef %22, i32 noundef 1)
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_vertexneighbors(ptr noundef %23)
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = call ptr @qh_pointvertex(ptr noundef %24)
  store ptr %25, ptr %16, align 8, !tbaa !5
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.qhT, ptr %26, i32 0, i32 8
  %28 = load i32, ptr %27, align 4, !tbaa !17
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %39

30:                                               ; preds = %6
  %31 = load ptr, ptr %16, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.setT, ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.qhT, ptr %33, i32 0, i32 112
  %35 = load i32, ptr %34, align 8, !tbaa !18
  %36 = sub nsw i32 %35, 1
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [1 x %union.setelemT], ptr %32, i64 0, i64 %37
  store ptr null, ptr %38, align 8, !tbaa !19
  br label %39

39:                                               ; preds = %30, %6
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.qhT, ptr %40, i32 0, i32 217
  %42 = load i32, ptr %41, align 8, !tbaa !20
  %43 = add i32 %42, 1
  store i32 %43, ptr %41, align 8, !tbaa !20
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.qhT, ptr %44, i32 0, i32 217
  %46 = load i32, ptr %45, align 8, !tbaa !20
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.qhT, ptr %47, i32 0, i32 178
  %49 = load i32, ptr %48, align 8, !tbaa !21
  %50 = icmp ult i32 %46, %49
  br i1 %50, label %51, label %57

51:                                               ; preds = %39
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.qhT, ptr %52, i32 0, i32 178
  %54 = load i32, ptr %53, align 8, !tbaa !21
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.qhT, ptr %55, i32 0, i32 217
  store i32 %54, ptr %56, align 8, !tbaa !20
  br label %57

57:                                               ; preds = %51, %39
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %95

60:                                               ; preds = %57
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %61, ptr %14, align 8, !tbaa !5
  br label %62

62:                                               ; preds = %90, %60
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %70

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

70:                                               ; preds = %65, %62
  %71 = phi i1 [ false, %62 ], [ %69, %65 ]
  br i1 %71, label %72, label %94

72:                                               ; preds = %70
  %73 = load i32, ptr %10, align 4, !tbaa !9
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %80, label %75

75:                                               ; preds = %72
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = call i32 @qh_skipfacet(ptr noundef %76, ptr noundef %77)
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %89, label %80

80:                                               ; preds = %75, %72
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.facetT, ptr %81, i32 0, i32 15
  %83 = load i32, ptr %82, align 8
  %84 = lshr i32 %83, 17
  %85 = and i32 %84, 1
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %88, label %87

87:                                               ; preds = %80
  store i32 1, ptr %17, align 4, !tbaa !9
  br label %94

88:                                               ; preds = %80
  br label %89

89:                                               ; preds = %88, %75
  br label %90

90:                                               ; preds = %89
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.facetT, ptr %91, i32 0, i32 7
  %93 = load ptr, ptr %92, align 8, !tbaa !22
  store ptr %93, ptr %14, align 8, !tbaa !5
  br label %62, !llvm.loop !24

94:                                               ; preds = %87, %70
  br label %95

95:                                               ; preds = %94, %57
  store ptr null, ptr %14, align 8, !tbaa !5
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = icmp ne ptr %96, null
  br i1 %97, label %98, label %126

98:                                               ; preds = %95
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %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 %15, align 8, !tbaa !5
  br label %102

102:                                              ; preds = %124, %98
  %103 = load ptr, ptr %15, align 8, !tbaa !5
  %104 = getelementptr inbounds ptr, ptr %103, i32 1
  store ptr %104, ptr %15, align 8, !tbaa !5
  %105 = load ptr, ptr %103, align 8, !tbaa !5
  store ptr %105, ptr %14, align 8, !tbaa !5
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %125

107:                                              ; preds = %102
  %108 = load i32, ptr %10, align 4, !tbaa !9
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %115, label %110

110:                                              ; preds = %107
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = call i32 @qh_skipfacet(ptr noundef %111, ptr noundef %112)
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %124, label %115

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

122:                                              ; preds = %115
  store i32 1, ptr %17, align 4, !tbaa !9
  br label %125

123:                                              ; preds = %115
  br label %124

124:                                              ; preds = %123, %110
  br label %102, !llvm.loop !26

125:                                              ; preds = %122, %102
  br label %126

126:                                              ; preds = %125, %95
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.qhT, ptr %127, i32 0, i32 163
  %129 = load ptr, ptr %128, align 8, !tbaa !27
  store ptr %129, ptr %14, align 8, !tbaa !5
  br label %130

130:                                              ; preds = %173, %126
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = icmp ne ptr %131, null
  br i1 %132, label %133, label %138

133:                                              ; preds = %130
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.facetT, ptr %134, i32 0, i32 7
  %136 = load ptr, ptr %135, align 8, !tbaa !22
  %137 = icmp ne ptr %136, null
  br label %138

138:                                              ; preds = %133, %130
  %139 = phi i1 [ false, %130 ], [ %137, %133 ]
  br i1 %139, label %140, label %177

140:                                              ; preds = %138
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.facetT, ptr %141, i32 0, i32 3
  %143 = load ptr, ptr %142, align 8, !tbaa !28
  %144 = icmp ne ptr %143, null
  br i1 %144, label %145, label %156

145:                                              ; preds = %140
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.facetT, ptr %146, i32 0, i32 15
  %148 = load i32, ptr %147, align 8
  %149 = lshr i32 %148, 17
  %150 = and i32 %149, 1
  %151 = load i32, ptr %17, align 4, !tbaa !9
  %152 = icmp eq i32 %150, %151
  br i1 %152, label %153, label %156

153:                                              ; preds = %145
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.facetT, ptr %154, i32 0, i32 13
  store i32 0, ptr %155, align 8, !tbaa !29
  br label %162

156:                                              ; preds = %145, %140
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.qhT, ptr %157, i32 0, i32 217
  %159 = load i32, ptr %158, align 8, !tbaa !20
  %160 = load ptr, ptr %14, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.facetT, ptr %160, i32 0, i32 13
  store i32 %159, ptr %161, align 8, !tbaa !29
  br label %162

162:                                              ; preds = %156, %153
  %163 = load ptr, ptr %14, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.facetT, ptr %163, i32 0, i32 15
  %165 = load i32, ptr %164, align 8
  %166 = and i32 %165, -16385
  %167 = or i32 %166, 0
  store i32 %167, ptr %164, align 8
  %168 = load ptr, ptr %14, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.facetT, ptr %168, i32 0, i32 15
  %170 = load i32, ptr %169, align 8
  %171 = and i32 %170, -32769
  %172 = or i32 %171, 32768
  store i32 %172, ptr %169, align 8
  br label %173

173:                                              ; preds = %162
  %174 = load ptr, ptr %14, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.facetT, ptr %174, i32 0, i32 7
  %176 = load ptr, ptr %175, align 8, !tbaa !22
  store ptr %176, ptr %14, align 8, !tbaa !5
  br label %130, !llvm.loop !30

177:                                              ; preds = %138
  %178 = load i32, ptr %13, align 4, !tbaa !9
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %13, align 4, !tbaa !9
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = icmp ne ptr %180, null
  br i1 %181, label %182, label %213

182:                                              ; preds = %177
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %183, ptr %14, align 8, !tbaa !5
  br label %184

184:                                              ; preds = %208, %182
  %185 = load ptr, ptr %14, align 8, !tbaa !5
  %186 = icmp ne ptr %185, null
  br i1 %186, label %187, label %192

187:                                              ; preds = %184
  %188 = load ptr, ptr %14, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.facetT, ptr %188, i32 0, i32 7
  %190 = load ptr, ptr %189, align 8, !tbaa !22
  %191 = icmp ne ptr %190, null
  br label %192

192:                                              ; preds = %187, %184
  %193 = phi i1 [ false, %184 ], [ %191, %187 ]
  br i1 %193, label %194, label %212

194:                                              ; preds = %192
  %195 = load i32, ptr %10, align 4, !tbaa !9
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %202, label %197

197:                                              ; preds = %194
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = load ptr, ptr %14, align 8, !tbaa !5
  %200 = call i32 @qh_skipfacet(ptr noundef %198, ptr noundef %199)
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %207, label %202

202:                                              ; preds = %197, %194
  %203 = load i32, ptr %13, align 4, !tbaa !9
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %13, align 4, !tbaa !9
  %205 = load ptr, ptr %14, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.facetT, ptr %205, i32 0, i32 13
  store i32 %203, ptr %206, align 8, !tbaa !29
  br label %207

207:                                              ; preds = %202, %197
  br label %208

208:                                              ; preds = %207
  %209 = load ptr, ptr %14, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.facetT, ptr %209, i32 0, i32 7
  %211 = load ptr, ptr %210, align 8, !tbaa !22
  store ptr %211, ptr %14, align 8, !tbaa !5
  br label %184, !llvm.loop !31

212:                                              ; preds = %192
  br label %213

213:                                              ; preds = %212, %177
  store ptr null, ptr %14, align 8, !tbaa !5
  %214 = load ptr, ptr %9, align 8, !tbaa !5
  %215 = icmp ne ptr %214, null
  br i1 %215, label %216, label %240

216:                                              ; preds = %213
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.setT, ptr %217, i32 0, i32 1
  %219 = getelementptr inbounds [1 x %union.setelemT], ptr %218, i64 0, i64 0
  store ptr %219, ptr %15, align 8, !tbaa !5
  br label %220

220:                                              ; preds = %238, %216
  %221 = load ptr, ptr %15, align 8, !tbaa !5
  %222 = getelementptr inbounds ptr, ptr %221, i32 1
  store ptr %222, ptr %15, align 8, !tbaa !5
  %223 = load ptr, ptr %221, align 8, !tbaa !5
  store ptr %223, ptr %14, align 8, !tbaa !5
  %224 = icmp ne ptr %223, null
  br i1 %224, label %225, label %239

225:                                              ; preds = %220
  %226 = load i32, ptr %10, align 4, !tbaa !9
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %233, label %228

228:                                              ; preds = %225
  %229 = load ptr, ptr %7, align 8, !tbaa !5
  %230 = load ptr, ptr %14, align 8, !tbaa !5
  %231 = call i32 @qh_skipfacet(ptr noundef %229, ptr noundef %230)
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %238, label %233

233:                                              ; preds = %228, %225
  %234 = load i32, ptr %13, align 4, !tbaa !9
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %13, align 4, !tbaa !9
  %236 = load ptr, ptr %14, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.facetT, ptr %236, i32 0, i32 13
  store i32 %234, ptr %237, align 8, !tbaa !29
  br label %238

238:                                              ; preds = %233, %228
  br label %220, !llvm.loop !32

239:                                              ; preds = %220
  br label %240

240:                                              ; preds = %239, %213
  %241 = load i32, ptr %17, align 4, !tbaa !9
  %242 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 %241, ptr %242, align 4, !tbaa !9
  %243 = load i32, ptr %13, align 4, !tbaa !9
  %244 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 %243, ptr %244, align 4, !tbaa !9
  %245 = load ptr, ptr %7, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.qhT, ptr %245, i32 0, i32 29
  %247 = load i32, ptr %246, align 8, !tbaa !33
  %248 = icmp sge i32 %247, 2
  br i1 %248, label %249, label %256

249:                                              ; preds = %240
  %250 = load ptr, ptr %7, align 8, !tbaa !5
  %251 = load ptr, ptr %7, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.qhT, ptr %251, i32 0, i32 158
  %253 = load ptr, ptr %252, align 8, !tbaa !34
  %254 = load i32, ptr %17, align 4, !tbaa !9
  %255 = load i32, ptr %13, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %250, ptr noundef %253, i32 noundef 2007, ptr noundef @.str.13, i32 noundef %254, i32 noundef %255)
  br label %256

256:                                              ; preds = %249, %240
  %257 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  ret ptr %257
}

declare ptr @qh_pointvertex(ptr noundef) #1

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

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

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


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

%union.setelemT = type { ptr }

@.str.13 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

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

declare void @qh_vertexneighbors(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_markvoronoi(ptr noundef %0, ptr noundef %1, ptr noundef readonly %2, i32 noundef %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #1 {
  %7 = getelementptr inbounds i8, ptr %0, i64 2752
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = add nsw i32 %8, 1
  store i32 %9, ptr %7, align 8, !tbaa !5
  tail call void @qh_clearcenters(ptr noundef %0, i32 noundef 1) #3
  tail call void @qh_vertexneighbors(ptr noundef %0) #3
  %10 = tail call ptr @qh_pointvertex(ptr noundef %0) #3
  %11 = getelementptr inbounds i8, ptr %0, i64 36
  %12 = load i32, ptr %11, align 4, !tbaa !15
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %20, label %13

13:                                               ; preds = %6
  %14 = getelementptr inbounds i8, ptr %10, i64 8
  %15 = getelementptr inbounds i8, ptr %0, i64 640
  %16 = load i32, ptr %15, align 8, !tbaa !16
  %17 = add nsw i32 %16, -1
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [1 x %union.setelemT], ptr %14, i64 0, i64 %18
  store ptr null, ptr %19, align 8, !tbaa !17
  br label %20

20:                                               ; preds = %13, %6
  %21 = getelementptr inbounds i8, ptr %0, i64 2784
  %22 = load i32, ptr %21, align 8, !tbaa !18
  %23 = add i32 %22, 1
  %24 = getelementptr inbounds i8, ptr %0, i64 2568
  %25 = load i32, ptr %24, align 8, !tbaa !19
  %spec.store.select = tail call i32 @llvm.umax.i32(i32 %23, i32 %25)
  store i32 %spec.store.select, ptr %21, align 8
  %.not86 = icmp eq ptr %1, null
  br i1 %.not86, label %.critedge, label %.preheader111

.preheader111:                                    ; preds = %20
  %.not89 = icmp eq i32 %3, 0
  br i1 %.not89, label %.preheader111.split.us, label %.preheader111.split

.preheader111.split.us:                           ; preds = %.preheader111, %34
  %.076112.us = phi ptr [ %35, %34 ], [ %1, %.preheader111 ]
  %26 = getelementptr inbounds i8, ptr %.076112.us, i64 56
  %27 = load ptr, ptr %26, align 8, !tbaa !20
  %.not88.us = icmp eq ptr %27, null
  br i1 %.not88.us, label %.critedge, label %28

28:                                               ; preds = %.preheader111.split.us
  %29 = tail call i32 @qh_skipfacet(ptr noundef %0, ptr noundef nonnull %.076112.us)
  %.not90.us = icmp eq i32 %29, 0
  br i1 %.not90.us, label %30, label %34

30:                                               ; preds = %28
  %31 = getelementptr inbounds i8, ptr %.076112.us, i64 112
  %32 = load i32, ptr %31, align 8
  %33 = and i32 %32, 131072
  %.not91.us = icmp eq i32 %33, 0
  br i1 %.not91.us, label %.critedge, label %34

34:                                               ; preds = %30, %28
  %35 = load ptr, ptr %26, align 8, !tbaa !20
  %.not87.us = icmp eq ptr %35, null
  br i1 %.not87.us, label %.critedge, label %.preheader111.split.us, !llvm.loop !22

.preheader111.split:                              ; preds = %.preheader111, %38
  %.076112 = phi ptr [ %37, %38 ], [ %1, %.preheader111 ]
  %36 = getelementptr inbounds i8, ptr %.076112, i64 56
  %37 = load ptr, ptr %36, align 8, !tbaa !20
  %.not88 = icmp eq ptr %37, null
  br i1 %.not88, label %.critedge, label %38

38:                                               ; preds = %.preheader111.split
  %39 = getelementptr inbounds i8, ptr %.076112, i64 112
  %40 = load i32, ptr %39, align 8
  %41 = and i32 %40, 131072
  %.not91 = icmp eq i32 %41, 0
  br i1 %.not91, label %.critedge, label %.preheader111.split

.critedge:                                        ; preds = %.preheader111.split, %38, %34, %30, %.preheader111.split.us, %20
  %.0 = phi i32 [ 0, %20 ], [ 1, %30 ], [ 0, %34 ], [ 0, %.preheader111.split.us ], [ 0, %.preheader111.split ], [ 1, %38 ]
  %.not92 = icmp eq ptr %2, null
  br i1 %.not92, label %.loopexit110, label %.preheader109

.preheader109:                                    ; preds = %.critedge
  %.074113 = getelementptr inbounds i8, ptr %2, i64 8
  %42 = load ptr, ptr %.074113, align 8, !tbaa !24
  %.not93114 = icmp eq ptr %42, null
  br i1 %.not93114, label %.loopexit110, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader109
  %.not94 = icmp eq i32 %3, 0
  br i1 %.not94, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %49
  %43 = phi ptr [ %50, %49 ], [ %42, %.lr.ph ]
  %.074115.us = phi ptr [ %.074.us, %49 ], [ %.074113, %.lr.ph ]
  %44 = tail call i32 @qh_skipfacet(ptr noundef %0, ptr noundef nonnull %43)
  %.not95.us = icmp eq i32 %44, 0
  br i1 %.not95.us, label %45, label %49

45:                                               ; preds = %.lr.ph.split.us
  %46 = getelementptr inbounds i8, ptr %43, i64 112
  %47 = load i32, ptr %46, align 8
  %48 = and i32 %47, 131072
  %.not96.us = icmp eq i32 %48, 0
  br i1 %.not96.us, label %.loopexit110, label %49

49:                                               ; preds = %45, %.lr.ph.split.us
  %.074.us = getelementptr inbounds i8, ptr %.074115.us, i64 8
  %50 = load ptr, ptr %.074.us, align 8, !tbaa !24
  %.not93.us = icmp eq ptr %50, null
  br i1 %.not93.us, label %.loopexit110, label %.lr.ph.split.us, !llvm.loop !25

.lr.ph.split:                                     ; preds = %.lr.ph, %55
  %51 = phi ptr [ %56, %55 ], [ %42, %.lr.ph ]
  %.074115 = phi ptr [ %.074, %55 ], [ %.074113, %.lr.ph ]
  %52 = getelementptr inbounds i8, ptr %51, i64 112
  %53 = load i32, ptr %52, align 8
  %54 = and i32 %53, 131072
  %.not96 = icmp eq i32 %54, 0
  br i1 %.not96, label %.loopexit110, label %55

55:                                               ; preds = %.lr.ph.split
  %.074 = getelementptr inbounds i8, ptr %.074115, i64 8
  %56 = load ptr, ptr %.074, align 8, !tbaa !24
  %.not93 = icmp eq ptr %56, null
  br i1 %.not93, label %.loopexit110, label %.lr.ph.split, !llvm.loop !25

.loopexit110:                                     ; preds = %55, %.lr.ph.split, %49, %45, %.preheader109, %.critedge
  %.1 = phi i32 [ %.0, %.critedge ], [ %.0, %.preheader109 ], [ %.0, %49 ], [ 1, %45 ], [ %.0, %55 ], [ 1, %.lr.ph.split ]
  %57 = getelementptr inbounds i8, ptr %0, i64 2456
  %.177120 = load ptr, ptr %57, align 8, !tbaa !24
  %.not97121 = icmp eq ptr %.177120, null
  br i1 %.not97121, label %.critedge2, label %.lr.ph123.preheader

.lr.ph123.preheader:                              ; preds = %.loopexit110
  %58 = getelementptr inbounds i8, ptr %.177120, i64 56
  %59 = load ptr, ptr %58, align 8, !tbaa !24
  %.not98156 = icmp eq ptr %59, null
  br i1 %.not98156, label %.critedge2, label %.lr.ph158

.lr.ph158:                                        ; preds = %.lr.ph123.preheader, %.lr.ph123
  %60 = phi ptr [ %73, %.lr.ph123 ], [ %59, %.lr.ph123.preheader ]
  %.177122157 = phi ptr [ %60, %.lr.ph123 ], [ %.177120, %.lr.ph123.preheader ]
  %61 = getelementptr inbounds i8, ptr %.177122157, i64 24
  %62 = load ptr, ptr %61, align 8, !tbaa !26
  %.not107 = icmp eq ptr %62, null
  %.phi.trans.insert.phi.trans.insert = getelementptr inbounds i8, ptr %.177122157, i64 112
  %.pre.pre = load i32, ptr %.phi.trans.insert.phi.trans.insert, align 8
  br i1 %.not107, label %._crit_edge, label %63

63:                                               ; preds = %.lr.ph158
  %64 = lshr i32 %.pre.pre, 17
  %65 = and i32 %64, 1
  %66 = icmp eq i32 %65, %.1
  br i1 %66, label %.lr.ph123, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph158, %63
  %67 = load i32, ptr %21, align 8, !tbaa !18
  br label %.lr.ph123

.lr.ph123:                                        ; preds = %63, %._crit_edge
  %.sink = phi i32 [ %67, %._crit_edge ], [ 0, %63 ]
  %68 = getelementptr inbounds i8, ptr %.177122157, i64 104
  store i32 %.sink, ptr %68, align 8, !tbaa !27
  %69 = getelementptr inbounds i8, ptr %.177122157, i64 112
  %70 = and i32 %.pre.pre, -49153
  %71 = or disjoint i32 %70, 32768
  store i32 %71, ptr %69, align 8
  %72 = getelementptr inbounds i8, ptr %60, i64 56
  %73 = load ptr, ptr %72, align 8, !tbaa !24
  %.not98 = icmp eq ptr %73, null
  br i1 %.not98, label %.critedge2, label %.lr.ph158

.critedge2:                                       ; preds = %.lr.ph123, %.lr.ph123.preheader, %.loopexit110
  br i1 %.not86, label %.critedge4, label %.preheader108

.preheader108:                                    ; preds = %.critedge2
  %.not105 = icmp eq i32 %3, 0
  br i1 %.not105, label %.preheader108.split.us, label %.preheader108.split.preheader

.preheader108.split.preheader:                    ; preds = %.preheader108
  %74 = getelementptr inbounds i8, ptr %1, i64 56
  %75 = load ptr, ptr %74, align 8, !tbaa !20
  %.not100159 = icmp eq ptr %75, null
  br i1 %.not100159, label %.critedge4, label %.preheader108.split

.preheader108.split.us:                           ; preds = %.preheader108, %83
  %.072126.us = phi i32 [ %.173.us, %83 ], [ 1, %.preheader108 ]
  %.278125.us = phi ptr [ %84, %83 ], [ %1, %.preheader108 ]
  %76 = getelementptr inbounds i8, ptr %.278125.us, i64 56
  %77 = load ptr, ptr %76, align 8, !tbaa !20
  %.not100.us = icmp eq ptr %77, null
  br i1 %.not100.us, label %.critedge4, label %78

78:                                               ; preds = %.preheader108.split.us
  %79 = tail call i32 @qh_skipfacet(ptr noundef %0, ptr noundef nonnull %.278125.us)
  %.not106.us = icmp eq i32 %79, 0
  br i1 %.not106.us, label %80, label %83

80:                                               ; preds = %78
  %81 = add nsw i32 %.072126.us, 1
  %82 = getelementptr inbounds i8, ptr %.278125.us, i64 104
  store i32 %.072126.us, ptr %82, align 8, !tbaa !27
  br label %83

83:                                               ; preds = %80, %78
  %.173.us = phi i32 [ %81, %80 ], [ %.072126.us, %78 ]
  %84 = load ptr, ptr %76, align 8, !tbaa !20
  %.not99.us = icmp eq ptr %84, null
  br i1 %.not99.us, label %.critedge4, label %.preheader108.split.us, !llvm.loop !28

.preheader108.split:                              ; preds = %.preheader108.split.preheader, %.preheader108.split
  %85 = phi ptr [ %89, %.preheader108.split ], [ %75, %.preheader108.split.preheader ]
  %.278125161 = phi ptr [ %85, %.preheader108.split ], [ %1, %.preheader108.split.preheader ]
  %.072126160 = phi i32 [ %86, %.preheader108.split ], [ 1, %.preheader108.split.preheader ]
  %86 = add nuw nsw i32 %.072126160, 1
  %87 = getelementptr inbounds i8, ptr %.278125161, i64 104
  store i32 %.072126160, ptr %87, align 8, !tbaa !27
  %88 = getelementptr inbounds i8, ptr %85, i64 56
  %89 = load ptr, ptr %88, align 8, !tbaa !20
  %.not100 = icmp eq ptr %89, null
  br i1 %.not100, label %.critedge4, label %.preheader108.split

.critedge4:                                       ; preds = %.preheader108.split, %83, %.preheader108.split.us, %.preheader108.split.preheader, %.critedge2
  %.2 = phi i32 [ 1, %.critedge2 ], [ 1, %.preheader108.split.preheader ], [ %.173.us, %83 ], [ %.072126.us, %.preheader108.split.us ], [ %86, %.preheader108.split ]
  br i1 %.not92, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.critedge4
  %.175128 = getelementptr inbounds i8, ptr %2, i64 8
  %90 = load ptr, ptr %.175128, align 8, !tbaa !24
  %.not102129 = icmp eq ptr %90, null
  br i1 %.not102129, label %.loopexit, label %.lr.ph132

.lr.ph132:                                        ; preds = %.preheader
  %.not103 = icmp eq i32 %3, 0
  br i1 %.not103, label %.lr.ph132.split.us, label %.lr.ph132.split

.lr.ph132.split.us:                               ; preds = %.lr.ph132, %96
  %91 = phi ptr [ %97, %96 ], [ %90, %.lr.ph132 ]
  %.175131.us = phi ptr [ %.175.us, %96 ], [ %.175128, %.lr.ph132 ]
  %.3130.us = phi i32 [ %.4.us, %96 ], [ %.2, %.lr.ph132 ]
  %92 = tail call i32 @qh_skipfacet(ptr noundef %0, ptr noundef nonnull %91)
  %.not104.us = icmp eq i32 %92, 0
  br i1 %.not104.us, label %93, label %96

93:                                               ; preds = %.lr.ph132.split.us
  %94 = add nsw i32 %.3130.us, 1
  %95 = getelementptr inbounds i8, ptr %91, i64 104
  store i32 %.3130.us, ptr %95, align 8, !tbaa !27
  br label %96

96:                                               ; preds = %93, %.lr.ph132.split.us
  %.4.us = phi i32 [ %94, %93 ], [ %.3130.us, %.lr.ph132.split.us ]
  %.175.us = getelementptr inbounds i8, ptr %.175131.us, i64 8
  %97 = load ptr, ptr %.175.us, align 8, !tbaa !24
  %.not102.us = icmp eq ptr %97, null
  br i1 %.not102.us, label %.loopexit, label %.lr.ph132.split.us, !llvm.loop !29

.lr.ph132.split:                                  ; preds = %.lr.ph132, %.lr.ph132.split
  %98 = phi ptr [ %101, %.lr.ph132.split ], [ %90, %.lr.ph132 ]
  %.175131 = phi ptr [ %.175, %.lr.ph132.split ], [ %.175128, %.lr.ph132 ]
  %.3130 = phi i32 [ %99, %.lr.ph132.split ], [ %.2, %.lr.ph132 ]
  %99 = add nsw i32 %.3130, 1
  %100 = getelementptr inbounds i8, ptr %98, i64 104
  store i32 %.3130, ptr %100, align 8, !tbaa !27
  %.175 = getelementptr inbounds i8, ptr %.175131, i64 8
  %101 = load ptr, ptr %.175, align 8, !tbaa !24
  %.not102 = icmp eq ptr %101, null
  br i1 %.not102, label %.loopexit, label %.lr.ph132.split, !llvm.loop !29

.loopexit:                                        ; preds = %.lr.ph132.split, %96, %.preheader, %.critedge4
  %.5 = phi i32 [ %.2, %.critedge4 ], [ %.2, %.preheader ], [ %.4.us, %96 ], [ %99, %.lr.ph132.split ]
  store i32 %.1, ptr %4, align 4, !tbaa !30
  store i32 %.5, ptr %5, align 4, !tbaa !30
  %102 = getelementptr inbounds i8, ptr %0, i64 136
  %103 = load i32, ptr %102, align 8, !tbaa !31
  %104 = icmp sgt i32 %103, 1
  br i1 %104, label %105, label %108

105:                                              ; preds = %.loopexit
  %106 = getelementptr inbounds i8, ptr %0, i64 2424
  %107 = load ptr, ptr %106, align 8, !tbaa !32
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %107, i32 noundef 2007, ptr noundef nonnull @.str.13, i32 noundef %.1, i32 noundef %.5) #3
  br label %108

108:                                              ; preds = %105, %.loopexit
  ret ptr %10
}

declare ptr @qh_pointvertex(ptr noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #2

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


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