; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (libqhull_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.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }
%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.41 = external hidden unnamed_addr constant [57 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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_partitionall(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  store double 0xFFEFFFFFFFFFFFFF, ptr %23, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.qhT, ptr %26, i32 0, i32 29
  %28 = load i32, ptr %27, align 8, !tbaa !13
  %29 = icmp sge i32 %28, 1
  br i1 %29, label %30, label %35

30:                                               ; preds = %4
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.qhT, ptr %32, i32 0, i32 158
  %34 = load ptr, ptr %33, align 8, !tbaa !18
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %31, ptr noundef %34, i32 noundef 1042, ptr noundef @.str.41)
  br label %35

35:                                               ; preds = %30, %4
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = call ptr @qh_settemp(ptr noundef %36, i32 noundef %37)
  store ptr %38, ptr %9, align 8, !tbaa !5
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.qhT, ptr %39, i32 0, i32 180
  store i32 0, ptr %40, align 8, !tbaa !19
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.setT, ptr %41, i32 0, i32 1
  %43 = getelementptr inbounds [1 x %union.setelemT], ptr %42, i64 0, i64 0
  store ptr %43, ptr %13, align 8, !tbaa !5
  %44 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %44, ptr %20, align 4, !tbaa !9
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %45, ptr %12, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %54, %35
  %47 = load i32, ptr %20, align 4, !tbaa !9
  %48 = add nsw i32 %47, -1
  store i32 %48, ptr %20, align 4, !tbaa !9
  %49 = icmp ne i32 %47, 0
  br i1 %49, label %50, label %61

50:                                               ; preds = %46
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = getelementptr inbounds ptr, ptr %52, i32 1
  store ptr %53, ptr %13, align 8, !tbaa !5
  store ptr %51, ptr %52, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %50
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.qhT, ptr %55, i32 0, i32 110
  %57 = load i32, ptr %56, align 8, !tbaa !20
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = sext i32 %57 to i64
  %60 = getelementptr inbounds double, ptr %58, i64 %59
  store ptr %60, ptr %12, align 8, !tbaa !5
  br label %46, !llvm.loop !21

61:                                               ; preds = %46
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = load i32, ptr %8, align 4, !tbaa !9
  call void @qh_settruncate(ptr noundef %62, ptr noundef %63, i32 noundef %64)
  store ptr null, ptr %10, align 8, !tbaa !5
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %91

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

71:                                               ; preds = %89, %67
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = getelementptr inbounds ptr, ptr %72, i32 1
  store ptr %73, ptr %11, align 8, !tbaa !5
  %74 = load ptr, ptr %72, align 8, !tbaa !5
  store ptr %74, ptr %10, align 8, !tbaa !5
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %90

76:                                               ; preds = %71
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.vertexT, ptr %78, i32 0, i32 2
  %80 = load ptr, ptr %79, align 8, !tbaa !23
  %81 = call i32 @qh_pointid(ptr noundef %77, ptr noundef %80)
  store i32 %81, ptr %21, align 4, !tbaa !9
  %82 = icmp sge i32 %81, 0
  br i1 %82, label %83, label %89

83:                                               ; preds = %76
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.setT, ptr %84, i32 0, i32 1
  %86 = load i32, ptr %21, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [1 x %union.setelemT], ptr %85, i64 0, i64 %87
  store ptr null, ptr %88, align 8, !tbaa !25
  br label %89

89:                                               ; preds = %83, %76
  br label %71, !llvm.loop !26

90:                                               ; preds = %71
  br label %91

91:                                               ; preds = %90, %61
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.qhT, ptr %93, i32 0, i32 23
  %95 = load ptr, ptr %94, align 8, !tbaa !27
  %96 = call i32 @qh_pointid(ptr noundef %92, ptr noundef %95)
  store i32 %96, ptr %21, align 4, !tbaa !9
  %97 = load i32, ptr %21, align 4, !tbaa !9
  %98 = icmp sge i32 %97, 0
  br i1 %98, label %99, label %120

99:                                               ; preds = %91
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.qhT, ptr %100, i32 0, i32 88
  %102 = load i32, ptr %101, align 8, !tbaa !28
  %103 = sub nsw i32 %102, 1
  %104 = load i32, ptr %21, align 4, !tbaa !9
  %105 = icmp ne i32 %103, %104
  br i1 %105, label %106, label %120

106:                                              ; preds = %99
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.qhT, ptr %107, i32 0, i32 89
  %109 = load i32, ptr %108, align 4, !tbaa !29
  %110 = sub nsw i32 0, %109
  %111 = sub nsw i32 %110, 1
  %112 = load i32, ptr %21, align 4, !tbaa !9
  %113 = icmp ne i32 %111, %112
  br i1 %113, label %114, label %120

114:                                              ; preds = %106
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.setT, ptr %115, i32 0, i32 1
  %117 = load i32, ptr %21, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [1 x %union.setelemT], ptr %116, i64 0, i64 %118
  store ptr null, ptr %119, align 8, !tbaa !25
  br label %120

120:                                              ; preds = %114, %106, %99, %91
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.qhT, ptr %121, i32 0, i32 26
  %123 = load ptr, ptr %122, align 8, !tbaa !30
  %124 = icmp ne ptr %123, null
  br i1 %124, label %125, label %149

125:                                              ; preds = %120
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.qhT, ptr %126, i32 0, i32 48
  %128 = load i32, ptr %127, align 4, !tbaa !31
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %149

130:                                              ; preds = %125
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.qhT, ptr %131, i32 0, i32 39
  %133 = load i32, ptr %132, align 4, !tbaa !32
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %149, label %135

135:                                              ; preds = %130
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.qhT, ptr %137, i32 0, i32 26
  %139 = load ptr, ptr %138, align 8, !tbaa !30
  %140 = call i32 @qh_pointid(ptr noundef %136, ptr noundef %139)
  store i32 %140, ptr %21, align 4, !tbaa !9
  %141 = icmp sge i32 %140, 0
  br i1 %141, label %142, label %148

142:                                              ; preds = %135
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.setT, ptr %143, i32 0, i32 1
  %145 = load i32, ptr %21, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [1 x %union.setelemT], ptr %144, i64 0, i64 %146
  store ptr null, ptr %147, align 8, !tbaa !25
  br label %148

148:                                              ; preds = %142, %135
  br label %149

149:                                              ; preds = %148, %130, %125, %120
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.qhT, ptr %150, i32 0, i32 10
  %152 = load i32, ptr %151, align 4, !tbaa !33
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %339, label %154

154:                                              ; preds = %149
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.qhT, ptr %155, i32 0, i32 258
  %157 = getelementptr inbounds %struct.qhstatT, ptr %156, i32 0, i32 0
  %158 = getelementptr inbounds [249 x %union.intrealT], ptr %157, i64 0, i64 216
  %159 = load i32, ptr %158, align 8, !tbaa !25
  %160 = icmp sgt i32 %159, 50
  %161 = zext i1 %160 to i64
  %162 = select i1 %160, i32 2, i32 1
  %163 = sitofp i32 %162 to double
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.qhT, ptr %164, i32 0, i32 39
  %166 = load i32, ptr %165, align 4, !tbaa !32
  %167 = icmp ne i32 %166, 0
  %168 = zext i1 %167 to i64
  %169 = select i1 %167, i32 2, i32 1
  %170 = sitofp i32 %169 to double
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.qhT, ptr %171, i32 0, i32 6
  %173 = load double, ptr %172, align 8, !tbaa !34
  %174 = fmul double %170, %173
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.qhT, ptr %175, i32 0, i32 199
  %177 = load double, ptr %176, align 8, !tbaa !35
  %178 = fcmp olt double %174, %177
  br i1 %178, label %179, label %183

179:                                              ; preds = %154
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.qhT, ptr %180, i32 0, i32 199
  %182 = load double, ptr %181, align 8, !tbaa !35
  br label %195

183:                                              ; preds = %154
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.qhT, ptr %184, i32 0, i32 39
  %186 = load i32, ptr %185, align 4, !tbaa !32
  %187 = icmp ne i32 %186, 0
  %188 = zext i1 %187 to i64
  %189 = select i1 %187, i32 2, i32 1
  %190 = sitofp i32 %189 to double
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.qhT, ptr %191, i32 0, i32 6
  %193 = load double, ptr %192, align 8, !tbaa !34
  %194 = fmul double %190, %193
  br label %195

195:                                              ; preds = %183, %179
  %196 = phi double [ %182, %179 ], [ %194, %183 ]
  %197 = fmul double %163, %196
  store double %197, ptr %25, align 8, !tbaa !11
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.qhT, ptr %198, i32 0, i32 112
  %200 = load i32, ptr %199, align 8, !tbaa !36
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.qhT, ptr %201, i32 0, i32 110
  %203 = load i32, ptr %202, align 8, !tbaa !20
  %204 = sub nsw i32 %200, %203
  %205 = sub nsw i32 %204, 1
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.qhT, ptr %206, i32 0, i32 258
  %208 = getelementptr inbounds %struct.qhstatT, ptr %207, i32 0, i32 0
  %209 = getelementptr inbounds [249 x %union.intrealT], ptr %208, i64 0, i64 218
  store i32 %205, ptr %209, align 8, !tbaa !25
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.qhT, ptr %210, i32 0, i32 178
  %212 = load i32, ptr %211, align 8, !tbaa !37
  store i32 %212, ptr %19, align 4, !tbaa !9
  %213 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %213, ptr %18, align 4, !tbaa !9
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.qhT, ptr %214, i32 0, i32 163
  %216 = load ptr, ptr %215, align 8, !tbaa !38
  store ptr %216, ptr %22, align 8, !tbaa !5
  br label %217

217:                                              ; preds = %334, %195
  %218 = load ptr, ptr %22, align 8, !tbaa !5
  %219 = icmp ne ptr %218, null
  br i1 %219, label %220, label %225

220:                                              ; preds = %217
  %221 = load ptr, ptr %22, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.facetT, ptr %221, i32 0, i32 7
  %223 = load ptr, ptr %222, align 8, !tbaa !39
  %224 = icmp ne ptr %223, null
  br label %225

225:                                              ; preds = %220, %217
  %226 = phi i1 [ false, %217 ], [ %224, %220 ]
  br i1 %226, label %227, label %338

227:                                              ; preds = %225
  %228 = load i32, ptr %18, align 4, !tbaa !9
  %229 = load i32, ptr %19, align 4, !tbaa !9
  %230 = add nsw i32 %229, -1
  store i32 %230, ptr %19, align 4, !tbaa !9
  %231 = sdiv i32 %228, %229
  %232 = add nsw i32 %231, 100
  store i32 %232, ptr %15, align 4, !tbaa !9
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = load i32, ptr %15, align 4, !tbaa !9
  %235 = call ptr @qh_setnew(ptr noundef %233, i32 noundef %234)
  %236 = load ptr, ptr %22, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.facetT, ptr %236, i32 0, i32 11
  store ptr %235, ptr %237, align 8, !tbaa !41
  store ptr null, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %18, align 4, !tbaa !9
  store ptr null, ptr %12, align 8, !tbaa !5
  %238 = load ptr, ptr %9, align 8, !tbaa !5
  %239 = icmp ne ptr %238, null
  br i1 %239, label %240, label %315

240:                                              ; preds = %227
  store i32 0, ptr %16, align 4, !tbaa !9
  %241 = load ptr, ptr %9, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.setT, ptr %241, i32 0, i32 1
  %243 = getelementptr inbounds [1 x %union.setelemT], ptr %242, i64 0, i64 0
  %244 = load ptr, ptr %243, align 8, !tbaa !25
  store ptr %244, ptr %12, align 8, !tbaa !5
  %245 = load ptr, ptr %5, align 8, !tbaa !5
  %246 = load ptr, ptr %9, align 8, !tbaa !5
  %247 = call i32 @qh_setsize(ptr noundef %245, ptr noundef %246)
  store i32 %247, ptr %17, align 4, !tbaa !9
  br label %248

248:                                              ; preds = %306, %240
  %249 = load i32, ptr %16, align 4, !tbaa !9
  %250 = load i32, ptr %17, align 4, !tbaa !9
  %251 = icmp slt i32 %249, %250
  br i1 %251, label %252, label %314

252:                                              ; preds = %248
  %253 = load ptr, ptr %12, align 8, !tbaa !5
  %254 = icmp ne ptr %253, null
  br i1 %254, label %255, label %305

255:                                              ; preds = %252
  %256 = load ptr, ptr %5, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.qhT, ptr %256, i32 0, i32 258
  %258 = getelementptr inbounds %struct.qhstatT, ptr %257, i32 0, i32 0
  %259 = getelementptr inbounds [249 x %union.intrealT], ptr %258, i64 0, i64 176
  %260 = load i32, ptr %259, align 8, !tbaa !25
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %259, align 8, !tbaa !25
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  %263 = load ptr, ptr %12, align 8, !tbaa !5
  %264 = load ptr, ptr %22, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %262, ptr noundef %263, ptr noundef %264, ptr noundef %24)
  %265 = load double, ptr %24, align 8, !tbaa !11
  %266 = load double, ptr %25, align 8, !tbaa !11
  %267 = fcmp olt double %265, %266
  br i1 %267, label %268, label %276

268:                                              ; preds = %255
  %269 = load ptr, ptr %12, align 8, !tbaa !5
  %270 = load ptr, ptr %9, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.setT, ptr %270, i32 0, i32 1
  %272 = load i32, ptr %18, align 4, !tbaa !9
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %18, align 4, !tbaa !9
  %274 = sext i32 %272 to i64
  %275 = getelementptr inbounds [1 x %union.setelemT], ptr %271, i64 0, i64 %274
  store ptr %269, ptr %275, align 8, !tbaa !25
  br label %304

276:                                              ; preds = %255
  %277 = load ptr, ptr %5, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.qhT, ptr %277, i32 0, i32 180
  %279 = load i32, ptr %278, align 8, !tbaa !19
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %278, align 8, !tbaa !19
  %281 = load ptr, ptr %14, align 8, !tbaa !5
  %282 = icmp ne ptr %281, null
  br i1 %282, label %286, label %283

283:                                              ; preds = %276
  %284 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %284, ptr %14, align 8, !tbaa !5
  %285 = load double, ptr %24, align 8, !tbaa !11
  store double %285, ptr %23, align 8, !tbaa !11
  br label %303

286:                                              ; preds = %276
  %287 = load double, ptr %24, align 8, !tbaa !11
  %288 = load double, ptr %23, align 8, !tbaa !11
  %289 = fcmp ogt double %287, %288
  br i1 %289, label %290, label %297

290:                                              ; preds = %286
  %291 = load ptr, ptr %5, align 8, !tbaa !5
  %292 = load ptr, ptr %22, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.facetT, ptr %292, i32 0, i32 11
  %294 = load ptr, ptr %14, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %291, ptr noundef %293, ptr noundef %294)
  %295 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %295, ptr %14, align 8, !tbaa !5
  %296 = load double, ptr %24, align 8, !tbaa !11
  store double %296, ptr %23, align 8, !tbaa !11
  br label %302

297:                                              ; preds = %286
  %298 = load ptr, ptr %5, align 8, !tbaa !5
  %299 = load ptr, ptr %22, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.facetT, ptr %299, i32 0, i32 11
  %301 = load ptr, ptr %12, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %298, ptr noundef %300, ptr noundef %301)
  br label %302

302:                                              ; preds = %297, %290
  br label %303

303:                                              ; preds = %302, %283
  br label %304

304:                                              ; preds = %303, %268
  br label %305

305:                                              ; preds = %304, %252
  br label %306

306:                                              ; preds = %305
  %307 = load ptr, ptr %9, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.setT, ptr %307, i32 0, i32 1
  %309 = load i32, ptr %16, align 4, !tbaa !9
  %310 = add nsw i32 %309, 1
  store i32 %310, ptr %16, align 4, !tbaa !9
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [1 x %union.setelemT], ptr %308, i64 0, i64 %311
  %313 = load ptr, ptr %312, align 8, !tbaa !25
  store ptr %313, ptr %12, align 8, !tbaa !5
  br label %248, !llvm.loop !42

314:                                              ; preds = %248
  br label %315

315:                                              ; preds = %314, %227
  %316 = load ptr, ptr %14, align 8, !tbaa !5
  %317 = icmp ne ptr %316, null
  br i1 %317, label %318, label %326

318:                                              ; preds = %315
  %319 = load ptr, ptr %5, align 8, !tbaa !5
  %320 = load ptr, ptr %22, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.facetT, ptr %320, i32 0, i32 11
  %322 = load ptr, ptr %14, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %319, ptr noundef %321, ptr noundef %322)
  %323 = load double, ptr %23, align 8, !tbaa !11
  %324 = load ptr, ptr %22, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.facetT, ptr %324, i32 0, i32 0
  store double %323, ptr %325, align 8, !tbaa !43
  br label %330

326:                                              ; preds = %315
  %327 = load ptr, ptr %5, align 8, !tbaa !5
  %328 = load ptr, ptr %22, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.facetT, ptr %328, i32 0, i32 11
  call void @qh_setfree(ptr noundef %327, ptr noundef %329)
  br label %330

330:                                              ; preds = %326, %318
  %331 = load ptr, ptr %5, align 8, !tbaa !5
  %332 = load ptr, ptr %9, align 8, !tbaa !5
  %333 = load i32, ptr %18, align 4, !tbaa !9
  call void @qh_settruncate(ptr noundef %331, ptr noundef %332, i32 noundef %333)
  br label %334

334:                                              ; preds = %330
  %335 = load ptr, ptr %22, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.facetT, ptr %335, i32 0, i32 7
  %337 = load ptr, ptr %336, align 8, !tbaa !39
  store ptr %337, ptr %22, align 8, !tbaa !5
  br label %217, !llvm.loop !44

338:                                              ; preds = %225
  br label %339

339:                                              ; preds = %338, %149
  %340 = load ptr, ptr %5, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.qhT, ptr %340, i32 0, i32 10
  %342 = load i32, ptr %341, align 4, !tbaa !33
  %343 = icmp ne i32 %342, 0
  br i1 %343, label %364, label %344

344:                                              ; preds = %339
  %345 = load ptr, ptr %5, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.qhT, ptr %345, i32 0, i32 39
  %347 = load i32, ptr %346, align 4, !tbaa !32
  %348 = icmp ne i32 %347, 0
  br i1 %348, label %364, label %349

349:                                              ; preds = %344
  %350 = load ptr, ptr %5, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.qhT, ptr %350, i32 0, i32 31
  %352 = load i32, ptr %351, align 8, !tbaa !45
  %353 = icmp ne i32 %352, 0
  br i1 %353, label %364, label %354

354:                                              ; preds = %349
  %355 = load ptr, ptr %5, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.qhT, ptr %355, i32 0, i32 32
  %357 = load i32, ptr %356, align 4, !tbaa !46
  %358 = icmp ne i32 %357, 0
  br i1 %358, label %364, label %359

359:                                              ; preds = %354
  %360 = load ptr, ptr %5, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.qhT, ptr %360, i32 0, i32 109
  %362 = load i32, ptr %361, align 4, !tbaa !47
  %363 = icmp ne i32 %362, 0
  br i1 %363, label %364, label %403

364:                                              ; preds = %359, %354, %349, %344, %339
  %365 = load ptr, ptr %5, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.qhT, ptr %365, i32 0, i32 204
  store i32 1, ptr %366, align 8, !tbaa !48
  store ptr null, ptr %12, align 8, !tbaa !5
  %367 = load ptr, ptr %9, align 8, !tbaa !5
  %368 = icmp ne ptr %367, null
  br i1 %368, label %369, label %400

369:                                              ; preds = %364
  store i32 0, ptr %16, align 4, !tbaa !9
  %370 = load ptr, ptr %9, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.setT, ptr %370, i32 0, i32 1
  %372 = getelementptr inbounds [1 x %union.setelemT], ptr %371, i64 0, i64 0
  %373 = load ptr, ptr %372, align 8, !tbaa !25
  store ptr %373, ptr %12, align 8, !tbaa !5
  %374 = load ptr, ptr %5, align 8, !tbaa !5
  %375 = load ptr, ptr %9, align 8, !tbaa !5
  %376 = call i32 @qh_setsize(ptr noundef %374, ptr noundef %375)
  store i32 %376, ptr %17, align 4, !tbaa !9
  br label %377

377:                                              ; preds = %391, %369
  %378 = load i32, ptr %16, align 4, !tbaa !9
  %379 = load i32, ptr %17, align 4, !tbaa !9
  %380 = icmp slt i32 %378, %379
  br i1 %380, label %381, label %399

381:                                              ; preds = %377
  %382 = load ptr, ptr %12, align 8, !tbaa !5
  %383 = icmp ne ptr %382, null
  br i1 %383, label %384, label %390

384:                                              ; preds = %381
  %385 = load ptr, ptr %5, align 8, !tbaa !5
  %386 = load ptr, ptr %12, align 8, !tbaa !5
  %387 = load ptr, ptr %5, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.qhT, ptr %387, i32 0, i32 163
  %389 = load ptr, ptr %388, align 8, !tbaa !38
  call void @qh_partitionpoint(ptr noundef %385, ptr noundef %386, ptr noundef %389)
  br label %390

390:                                              ; preds = %384, %381
  br label %391

391:                                              ; preds = %390
  %392 = load ptr, ptr %9, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.setT, ptr %392, i32 0, i32 1
  %394 = load i32, ptr %16, align 4, !tbaa !9
  %395 = add nsw i32 %394, 1
  store i32 %395, ptr %16, align 4, !tbaa !9
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds [1 x %union.setelemT], ptr %393, i64 0, i64 %396
  %398 = load ptr, ptr %397, align 8, !tbaa !25
  store ptr %398, ptr %12, align 8, !tbaa !5
  br label %377, !llvm.loop !49

399:                                              ; preds = %377
  br label %400

400:                                              ; preds = %399, %364
  %401 = load ptr, ptr %5, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.qhT, ptr %401, i32 0, i32 204
  store i32 0, ptr %402, align 8, !tbaa !48
  br label %403

403:                                              ; preds = %400, %359
  %404 = load ptr, ptr %5, align 8, !tbaa !5
  %405 = getelementptr inbounds %struct.qhT, ptr %404, i32 0, i32 258
  %406 = getelementptr inbounds %struct.qhstatT, ptr %405, i32 0, i32 0
  %407 = getelementptr inbounds [249 x %union.intrealT], ptr %406, i64 0, i64 175
  %408 = load i32, ptr %407, align 8, !tbaa !25
  %409 = load ptr, ptr %5, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.qhT, ptr %409, i32 0, i32 258
  %411 = getelementptr inbounds %struct.qhstatT, ptr %410, i32 0, i32 0
  %412 = getelementptr inbounds [249 x %union.intrealT], ptr %411, i64 0, i64 176
  %413 = load i32, ptr %412, align 8, !tbaa !25
  %414 = add nsw i32 %413, %408
  store i32 %414, ptr %412, align 8, !tbaa !25
  %415 = load ptr, ptr %5, align 8, !tbaa !5
  %416 = getelementptr inbounds %struct.qhT, ptr %415, i32 0, i32 258
  %417 = getelementptr inbounds %struct.qhstatT, ptr %416, i32 0, i32 0
  %418 = getelementptr inbounds [249 x %union.intrealT], ptr %417, i64 0, i64 175
  store i32 0, ptr %418, align 8, !tbaa !25
  %419 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_settempfree(ptr noundef %419, ptr noundef %9)
  %420 = load ptr, ptr %5, align 8, !tbaa !5
  %421 = getelementptr inbounds %struct.qhT, ptr %420, i32 0, i32 29
  %422 = load i32, ptr %421, align 8, !tbaa !13
  %423 = icmp sge i32 %422, 4
  br i1 %423, label %424, label %429

424:                                              ; preds = %403
  %425 = load ptr, ptr %5, align 8, !tbaa !5
  %426 = load ptr, ptr %5, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.qhT, ptr %426, i32 0, i32 163
  %428 = load ptr, ptr %427, align 8, !tbaa !38
  call void @qh_printfacetlist(ptr noundef %425, ptr noundef %428, ptr noundef null, i32 noundef 1)
  br label %429

429:                                              ; preds = %424, %403
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 136}
!14 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !12, 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, !12, i64 64, !12, 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, !12, i64 160, !12, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !12, i64 192, !12, i64 200, !10, i64 208, !10, i64 212, !12, 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, !12, i64 448, !12, i64 456, !12, 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, !12, 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, !12, 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, !12, i64 1760, !12, i64 1768, !12, i64 1776, !12, i64 1784, !12, i64 1792, !12, i64 1800, !12, i64 1808, !12, i64 1816, !12, i64 1824, !12, i64 1832, !12, i64 1840, !12, i64 1848, !12, i64 1856, !12, i64 1864, !6, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !12, 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, !15, 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, !12, i64 2664, !10, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !12, i64 2728, !12, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !12, i64 2768, !12, 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, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, 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, !12, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !16, i64 3272, !17, i64 3424}
!15 = !{!"long", !7, i64 0}
!16 = !{!"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}
!17 = !{!"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, !12, i64 5336}
!18 = !{!14, !6, i64 2424}
!19 = !{!14, !10, i64 2576}
!20 = !{!14, !10, i64 632}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !6, i64 16}
!24 = !{!"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}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !22}
!27 = !{!14, !6, i64 104}
!28 = !{!14, !10, i64 520}
!29 = !{!14, !10, i64 524}
!30 = !{!14, !6, i64 120}
!31 = !{!14, !10, i64 236}
!32 = !{!14, !10, i64 188}
!33 = !{!14, !10, i64 44}
!34 = !{!14, !12, i64 24}
!35 = !{!14, !12, i64 2680}
!36 = !{!14, !10, i64 640}
!37 = !{!14, !10, i64 2568}
!38 = !{!14, !6, i64 2456}
!39 = !{!40, !6, i64 56}
!40 = !{!"facetT", !12, i64 0, !12, i64 8, !12, 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}
!41 = !{!40, !6, i64 88}
!42 = distinct !{!42, !22}
!43 = !{!40, !12, i64 0}
!44 = distinct !{!44, !22}
!45 = !{!14, !10, i64 144}
!46 = !{!14, !10, i64 148}
!47 = !{!14, !10, i64 628}
!48 = !{!14, !10, i64 2712}
!49 = distinct !{!49, !22}


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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_partitionall(ptr noundef %0, ptr noundef readonly %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %7 = getelementptr inbounds i8, ptr %0, i64 136
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %10, label %13

10:                                               ; preds = %4
  %11 = getelementptr inbounds i8, ptr %0, i64 2424
  %12 = load ptr, ptr %11, align 8, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %12, i32 noundef 1042, ptr noundef nonnull @.str.41) #3
  br label %13

13:                                               ; preds = %10, %4
  %14 = tail call ptr @qh_settemp(ptr noundef nonnull %0, i32 noundef %3) #3
  store ptr %14, ptr %5, align 8, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %0, i64 2576
  store i32 0, ptr %15, align 8, !tbaa !17
  %.not171 = icmp eq i32 %3, 0
  br i1 %.not171, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %13
  %16 = getelementptr inbounds i8, ptr %0, i64 632
  %17 = load i32, ptr %16, align 8, !tbaa !18
  %18 = sext i32 %17 to i64
  %xtraiter = and i32 %3, 7
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph, %.prol.preheader
  %.0112174.prol = phi i32 [ %19, %.prol.preheader ], [ %3, %.lr.ph ]
  %.pn160173.prol = phi ptr [ %.0124.prol, %.prol.preheader ], [ %14, %.lr.ph ]
  %.0125172.prol = phi ptr [ %20, %.prol.preheader ], [ %2, %.lr.ph ]
  %prol.iter = phi i32 [ %prol.iter.next, %.prol.preheader ], [ 0, %.lr.ph ]
  %.0124.prol = getelementptr inbounds i8, ptr %.pn160173.prol, i64 8
  %19 = add nsw i32 %.0112174.prol, -1
  store ptr %.0125172.prol, ptr %.0124.prol, align 8, !tbaa !16
  %20 = getelementptr inbounds double, ptr %.0125172.prol, i64 %18
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.prol.loopexit, label %.prol.preheader, !llvm.loop !19

.prol.loopexit:                                   ; preds = %.prol.preheader, %.lr.ph
  %.0112174.unr = phi i32 [ %3, %.lr.ph ], [ %19, %.prol.preheader ]
  %.pn160173.unr = phi ptr [ %14, %.lr.ph ], [ %.0124.prol, %.prol.preheader ]
  %.0125172.unr = phi ptr [ %2, %.lr.ph ], [ %20, %.prol.preheader ]
  %21 = icmp ult i32 %3, 8
  br i1 %21, label %._crit_edge, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.prol.loopexit, %.lr.ph.new
  %.0112174 = phi i32 [ %29, %.lr.ph.new ], [ %.0112174.unr, %.prol.loopexit ]
  %.pn160173 = phi ptr [ %.0124.7, %.lr.ph.new ], [ %.pn160173.unr, %.prol.loopexit ]
  %.0125172 = phi ptr [ %30, %.lr.ph.new ], [ %.0125172.unr, %.prol.loopexit ]
  %.0124 = getelementptr inbounds i8, ptr %.pn160173, i64 8
  store ptr %.0125172, ptr %.0124, align 8, !tbaa !16
  %22 = getelementptr inbounds double, ptr %.0125172, i64 %18
  %.0124.1 = getelementptr inbounds i8, ptr %.pn160173, i64 16
  store ptr %22, ptr %.0124.1, align 8, !tbaa !16
  %23 = getelementptr inbounds double, ptr %22, i64 %18
  %.0124.2 = getelementptr inbounds i8, ptr %.pn160173, i64 24
  store ptr %23, ptr %.0124.2, align 8, !tbaa !16
  %24 = getelementptr inbounds double, ptr %23, i64 %18
  %.0124.3 = getelementptr inbounds i8, ptr %.pn160173, i64 32
  store ptr %24, ptr %.0124.3, align 8, !tbaa !16
  %25 = getelementptr inbounds double, ptr %24, i64 %18
  %.0124.4 = getelementptr inbounds i8, ptr %.pn160173, i64 40
  store ptr %25, ptr %.0124.4, align 8, !tbaa !16
  %26 = getelementptr inbounds double, ptr %25, i64 %18
  %.0124.5 = getelementptr inbounds i8, ptr %.pn160173, i64 48
  store ptr %26, ptr %.0124.5, align 8, !tbaa !16
  %27 = getelementptr inbounds double, ptr %26, i64 %18
  %.0124.6 = getelementptr inbounds i8, ptr %.pn160173, i64 56
  store ptr %27, ptr %.0124.6, align 8, !tbaa !16
  %28 = getelementptr inbounds double, ptr %27, i64 %18
  %.0124.7 = getelementptr inbounds i8, ptr %.pn160173, i64 64
  %29 = add nsw i32 %.0112174, -8
  store ptr %28, ptr %.0124.7, align 8, !tbaa !16
  %30 = getelementptr inbounds double, ptr %28, i64 %18
  %.not.7 = icmp eq i32 %29, 0
  br i1 %.not.7, label %._crit_edge, label %.lr.ph.new, !llvm.loop !21

._crit_edge:                                      ; preds = %.prol.loopexit, %.lr.ph.new, %13
  tail call void @qh_settruncate(ptr noundef nonnull %0, ptr noundef %14, i32 noundef %3) #3
  %.not138 = icmp eq ptr %1, null
  br i1 %.not138, label %.loopexit170, label %.preheader

.preheader:                                       ; preds = %._crit_edge
  %.0120175 = getelementptr inbounds i8, ptr %1, i64 8
  %31 = load ptr, ptr %.0120175, align 8, !tbaa !16
  %.not139176 = icmp eq ptr %31, null
  br i1 %.not139176, label %.loopexit170, label %.lr.ph178.preheader

.lr.ph178.preheader:                              ; preds = %.preheader
  %32 = getelementptr inbounds i8, ptr %14, i64 8
  br label %.lr.ph178

.lr.ph178:                                        ; preds = %.lr.ph178.preheader, %41
  %33 = phi ptr [ %42, %41 ], [ %31, %.lr.ph178.preheader ]
  %.0120177 = phi ptr [ %.0120, %41 ], [ %.0120175, %.lr.ph178.preheader ]
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %35 = load ptr, ptr %34, align 8, !tbaa !23
  %36 = tail call i32 @qh_pointid(ptr noundef %0, ptr noundef %35) #3
  %37 = icmp sgt i32 %36, -1
  br i1 %37, label %38, label %41

38:                                               ; preds = %.lr.ph178
  %39 = zext nneg i32 %36 to i64
  %40 = getelementptr inbounds [1 x %union.setelemT], ptr %32, i64 0, i64 %39
  store ptr null, ptr %40, align 8, !tbaa !25
  br label %41

41:                                               ; preds = %38, %.lr.ph178
  %.0120 = getelementptr inbounds i8, ptr %.0120177, i64 8
  %42 = load ptr, ptr %.0120, align 8, !tbaa !16
  %.not139 = icmp eq ptr %42, null
  br i1 %.not139, label %.loopexit170, label %.lr.ph178, !llvm.loop !26

.loopexit170:                                     ; preds = %41, %.preheader, %._crit_edge
  %43 = getelementptr inbounds i8, ptr %0, i64 104
  %44 = load ptr, ptr %43, align 8, !tbaa !27
  %45 = tail call i32 @qh_pointid(ptr noundef %0, ptr noundef %44) #3
  %46 = icmp sgt i32 %45, -1
  br i1 %46, label %47, label %59

47:                                               ; preds = %.loopexit170
  %48 = getelementptr inbounds i8, ptr %0, i64 520
  %49 = load i32, ptr %48, align 8, !tbaa !28
  %50 = add nsw i32 %49, -1
  %.not140 = icmp eq i32 %50, %45
  br i1 %.not140, label %59, label %51

51:                                               ; preds = %47
  %52 = getelementptr inbounds i8, ptr %0, i64 524
  %53 = load i32, ptr %52, align 4, !tbaa !29
  %54 = xor i32 %53, %45
  %.not141 = icmp eq i32 %54, -1
  br i1 %.not141, label %59, label %55

55:                                               ; preds = %51
  %56 = getelementptr inbounds i8, ptr %14, i64 8
  %57 = zext nneg i32 %45 to i64
  %58 = getelementptr inbounds [1 x %union.setelemT], ptr %56, i64 0, i64 %57
  store ptr null, ptr %58, align 8, !tbaa !25
  br label %59

59:                                               ; preds = %55, %51, %47, %.loopexit170
  %60 = getelementptr inbounds i8, ptr %0, i64 120
  %61 = load ptr, ptr %60, align 8, !tbaa !30
  %.not142 = icmp eq ptr %61, null
  br i1 %.not142, label %75, label %62

62:                                               ; preds = %59
  %63 = getelementptr inbounds i8, ptr %0, i64 236
  %64 = load i32, ptr %63, align 4, !tbaa !31
  %.not143 = icmp eq i32 %64, 0
  br i1 %.not143, label %75, label %65

65:                                               ; preds = %62
  %66 = getelementptr inbounds i8, ptr %0, i64 188
  %67 = load i32, ptr %66, align 4, !tbaa !32
  %.not144 = icmp eq i32 %67, 0
  br i1 %.not144, label %68, label %75

68:                                               ; preds = %65
  %69 = tail call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef nonnull %61) #3
  %70 = icmp sgt i32 %69, -1
  br i1 %70, label %71, label %75

71:                                               ; preds = %68
  %72 = getelementptr inbounds i8, ptr %14, i64 8
  %73 = zext nneg i32 %69 to i64
  %74 = getelementptr inbounds [1 x %union.setelemT], ptr %72, i64 0, i64 %73
  store ptr null, ptr %74, align 8, !tbaa !25
  br label %75

75:                                               ; preds = %68, %71, %65, %62, %59
  %76 = getelementptr inbounds i8, ptr %0, i64 44
  %77 = load i32, ptr %76, align 4, !tbaa !33
  %.not145 = icmp eq i32 %77, 0
  br i1 %.not145, label %78, label %.critedge.thread

78:                                               ; preds = %75
  %79 = getelementptr inbounds i8, ptr %0, i64 5152
  %80 = load i32, ptr %79, align 8, !tbaa !25
  %81 = icmp sgt i32 %80, 50
  %82 = select i1 %81, i32 2, i32 1
  %83 = uitofp nneg i32 %82 to double
  %84 = getelementptr inbounds i8, ptr %0, i64 188
  %85 = load i32, ptr %84, align 4, !tbaa !32
  %.not146 = icmp eq i32 %85, 0
  %86 = select i1 %.not146, i32 1, i32 2
  %87 = uitofp nneg i32 %86 to double
  %88 = getelementptr inbounds i8, ptr %0, i64 24
  %89 = load double, ptr %88, align 8, !tbaa !34
  %90 = fmul double %89, %87
  %91 = getelementptr inbounds i8, ptr %0, i64 2680
  %92 = load double, ptr %91, align 8, !tbaa !35
  %93 = fcmp olt double %90, %92
  %. = select i1 %93, double %92, double %90
  %94 = fmul double %., %83
  %95 = getelementptr inbounds i8, ptr %0, i64 640
  %96 = load i32, ptr %95, align 8, !tbaa !36
  %97 = getelementptr inbounds i8, ptr %0, i64 632
  %98 = load i32, ptr %97, align 8, !tbaa !18
  %99 = xor i32 %98, -1
  %100 = add i32 %96, %99
  %101 = getelementptr inbounds i8, ptr %0, i64 5168
  store i32 %100, ptr %101, align 8, !tbaa !25
  %102 = getelementptr inbounds i8, ptr %0, i64 2456
  %.0111189 = load ptr, ptr %102, align 8, !tbaa !16
  %.not147190 = icmp eq ptr %.0111189, null
  br i1 %.not147190, label %.critedge.thread213, label %.lr.ph196

.lr.ph196:                                        ; preds = %78
  %103 = getelementptr inbounds i8, ptr %0, i64 2568
  %104 = load i32, ptr %103, align 8, !tbaa !37
  %105 = getelementptr inbounds i8, ptr %0, i64 4832
  br label %106

106:                                              ; preds = %.lr.ph196, %146
  %107 = phi ptr [ %14, %.lr.ph196 ], [ %147, %146 ]
  %.0111194 = phi ptr [ %.0111189, %.lr.ph196 ], [ %.0111, %146 ]
  %.0193 = phi double [ 0xFFEFFFFFFFFFFFFF, %.lr.ph196 ], [ %.3167, %146 ]
  %.0113192 = phi i32 [ %104, %.lr.ph196 ], [ %111, %146 ]
  %.0114191 = phi i32 [ %3, %.lr.ph196 ], [ %.3117165, %146 ]
  %108 = getelementptr inbounds i8, ptr %.0111194, i64 56
  %109 = load ptr, ptr %108, align 8, !tbaa !38
  %.not148 = icmp eq ptr %109, null
  br i1 %.not148, label %.critedge, label %110

110:                                              ; preds = %106
  %111 = add nsw i32 %.0113192, -1
  %112 = sdiv i32 %.0114191, %.0113192
  %113 = add nsw i32 %112, 100
  %114 = call ptr @qh_setnew(ptr noundef %0, i32 noundef %113) #3
  %115 = getelementptr inbounds i8, ptr %.0111194, i64 88
  store ptr %114, ptr %115, align 8, !tbaa !40
  %.not149 = icmp eq ptr %107, null
  br i1 %.not149, label %.thread, label %116

116:                                              ; preds = %110
  %117 = getelementptr inbounds i8, ptr %107, i64 8
  %118 = load ptr, ptr %117, align 8, !tbaa !25
  %119 = call i32 @qh_setsize(ptr noundef %0, ptr noundef nonnull %107) #3
  %120 = icmp sgt i32 %119, 0
  br i1 %120, label %.lr.ph185.preheader, label %.thread

.lr.ph185.preheader:                              ; preds = %116
  %wide.trip.count = zext nneg i32 %119 to i64
  br label %.lr.ph185

.lr.ph185:                                        ; preds = %.lr.ph185.preheader, %140
  %121 = phi ptr [ %107, %.lr.ph185.preheader ], [ %141, %140 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph185.preheader ], [ %indvars.iv.next, %140 ]
  %.1183 = phi double [ %.0193, %.lr.ph185.preheader ], [ %.2, %140 ]
  %.1115182 = phi i32 [ 0, %.lr.ph185.preheader ], [ %.2116, %140 ]
  %.0121180 = phi ptr [ null, %.lr.ph185.preheader ], [ %.1122, %140 ]
  %.1126179 = phi ptr [ %118, %.lr.ph185.preheader ], [ %144, %140 ]
  %.not151 = icmp eq ptr %.1126179, null
  br i1 %.not151, label %140, label %122

122:                                              ; preds = %.lr.ph185
  %123 = load i32, ptr %105, align 8, !tbaa !25
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %105, align 8, !tbaa !25
  call void @qh_distplane(ptr noundef %0, ptr noundef nonnull %.1126179, ptr noundef nonnull %.0111194, ptr noundef nonnull %6) #3
  %125 = load double, ptr %6, align 8, !tbaa !41
  %126 = fcmp olt double %125, %94
  br i1 %126, label %127, label %132

127:                                              ; preds = %122
  %128 = getelementptr inbounds i8, ptr %121, i64 8
  %129 = add nsw i32 %.1115182, 1
  %130 = sext i32 %.1115182 to i64
  %131 = getelementptr inbounds [1 x %union.setelemT], ptr %128, i64 0, i64 %130
  store ptr %.1126179, ptr %131, align 8, !tbaa !25
  br label %140

132:                                              ; preds = %122
  %133 = load i32, ptr %15, align 8, !tbaa !17
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %15, align 8, !tbaa !17
  %.not152 = icmp eq ptr %.0121180, null
  br i1 %.not152, label %140, label %135

135:                                              ; preds = %132
  %136 = fcmp ogt double %125, %.1183
  br i1 %136, label %137, label %139

137:                                              ; preds = %135
  call void @qh_setappend(ptr noundef nonnull %0, ptr noundef nonnull %115, ptr noundef nonnull %.0121180) #3
  %138 = load double, ptr %6, align 8, !tbaa !41
  br label %140

139:                                              ; preds = %135
  call void @qh_setappend(ptr noundef nonnull %0, ptr noundef nonnull %115, ptr noundef nonnull %.1126179) #3
  br label %140

140:                                              ; preds = %132, %.lr.ph185, %139, %137, %127
  %.1122 = phi ptr [ %.0121180, %127 ], [ %.1126179, %137 ], [ %.0121180, %139 ], [ %.0121180, %.lr.ph185 ], [ %.1126179, %132 ]
  %.2116 = phi i32 [ %129, %127 ], [ %.1115182, %137 ], [ %.1115182, %139 ], [ %.1115182, %.lr.ph185 ], [ %.1115182, %132 ]
  %.2 = phi double [ %.1183, %127 ], [ %138, %137 ], [ %.1183, %139 ], [ %.1183, %.lr.ph185 ], [ %125, %132 ]
  %141 = load ptr, ptr %5, align 8, !tbaa !16
  %142 = getelementptr inbounds i8, ptr %141, i64 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %143 = getelementptr inbounds [1 x %union.setelemT], ptr %142, i64 0, i64 %indvars.iv.next
  %144 = load ptr, ptr %143, align 8, !tbaa !25
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge186, label %.lr.ph185, !llvm.loop !42

._crit_edge186:                                   ; preds = %140
  %.not150 = icmp eq ptr %.1122, null
  br i1 %.not150, label %.thread, label %145

145:                                              ; preds = %._crit_edge186
  call void @qh_setappend(ptr noundef %0, ptr noundef nonnull %115, ptr noundef nonnull %.1122) #3
  store double %.2, ptr %.0111194, align 8, !tbaa !43
  br label %146

.thread:                                          ; preds = %116, %110, %._crit_edge186
  %.3168 = phi double [ %.2, %._crit_edge186 ], [ %.0193, %110 ], [ %.0193, %116 ]
  %.3117166 = phi i32 [ %.2116, %._crit_edge186 ], [ 0, %110 ], [ 0, %116 ]
  call void @qh_setfree(ptr noundef %0, ptr noundef nonnull %115) #3
  br label %146

146:                                              ; preds = %.thread, %145
  %.3167 = phi double [ %.3168, %.thread ], [ %.2, %145 ]
  %.3117165 = phi i32 [ %.3117166, %.thread ], [ %.2116, %145 ]
  %147 = load ptr, ptr %5, align 8, !tbaa !16
  call void @qh_settruncate(ptr noundef %0, ptr noundef %147, i32 noundef %.3117165) #3
  %.0111 = load ptr, ptr %108, align 8, !tbaa !16
  %.not147 = icmp eq ptr %.0111, null
  br i1 %.not147, label %.critedge, label %106, !llvm.loop !44

.critedge:                                        ; preds = %146, %106
  %148 = phi ptr [ %107, %106 ], [ %147, %146 ]
  %.pr.pre = load i32, ptr %76, align 4, !tbaa !33
  %149 = icmp eq i32 %.pr.pre, 0
  br i1 %149, label %.critedge.thread213, label %.critedge.thread

.critedge.thread213:                              ; preds = %78, %.critedge
  %150 = phi ptr [ %148, %.critedge ], [ %14, %78 ]
  %151 = load i32, ptr %84, align 4, !tbaa !32
  %.not154 = icmp eq i32 %151, 0
  br i1 %.not154, label %152, label %.critedge.thread

152:                                              ; preds = %.critedge.thread213
  %153 = getelementptr inbounds i8, ptr %0, i64 144
  %154 = load i32, ptr %153, align 8, !tbaa !45
  %.not155 = icmp eq i32 %154, 0
  br i1 %.not155, label %155, label %.critedge.thread

155:                                              ; preds = %152
  %156 = getelementptr inbounds i8, ptr %0, i64 148
  %157 = load i32, ptr %156, align 4, !tbaa !46
  %.not156 = icmp eq i32 %157, 0
  br i1 %.not156, label %158, label %.critedge.thread

158:                                              ; preds = %155
  %159 = getelementptr inbounds i8, ptr %0, i64 628
  %160 = load i32, ptr %159, align 4, !tbaa !47
  %.not157 = icmp eq i32 %160, 0
  br i1 %.not157, label %177, label %.critedge.thread

.critedge.thread:                                 ; preds = %75, %158, %155, %152, %.critedge.thread213, %.critedge
  %161 = phi ptr [ %14, %75 ], [ %150, %158 ], [ %150, %155 ], [ %150, %152 ], [ %150, %.critedge.thread213 ], [ %148, %.critedge ]
  %162 = getelementptr inbounds i8, ptr %0, i64 2712
  store i32 1, ptr %162, align 8, !tbaa !48
  %.not158 = icmp eq ptr %161, null
  br i1 %.not158, label %.loopexit, label %163

163:                                              ; preds = %.critedge.thread
  %164 = getelementptr inbounds i8, ptr %161, i64 8
  %165 = load ptr, ptr %164, align 8, !tbaa !25
  %166 = call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef nonnull %161) #3
  %167 = icmp sgt i32 %166, 0
  br i1 %167, label %.lr.ph201, label %.loopexit

.lr.ph201:                                        ; preds = %163
  %168 = getelementptr inbounds i8, ptr %0, i64 2456
  %wide.trip.count206 = zext nneg i32 %166 to i64
  br label %169

169:                                              ; preds = %.lr.ph201, %172
  %indvars.iv203 = phi i64 [ 0, %.lr.ph201 ], [ %indvars.iv.next204, %172 ]
  %.2127198 = phi ptr [ %165, %.lr.ph201 ], [ %176, %172 ]
  %.not159 = icmp eq ptr %.2127198, null
  br i1 %.not159, label %172, label %170

170:                                              ; preds = %169
  %171 = load ptr, ptr %168, align 8, !tbaa !49
  call void @qh_partitionpoint(ptr noundef %0, ptr noundef nonnull %.2127198, ptr noundef %171)
  br label %172

172:                                              ; preds = %169, %170
  %173 = load ptr, ptr %5, align 8, !tbaa !16
  %174 = getelementptr inbounds i8, ptr %173, i64 8
  %indvars.iv.next204 = add nuw nsw i64 %indvars.iv203, 1
  %175 = getelementptr inbounds [1 x %union.setelemT], ptr %174, i64 0, i64 %indvars.iv.next204
  %176 = load ptr, ptr %175, align 8, !tbaa !25
  %exitcond207.not = icmp eq i64 %indvars.iv.next204, %wide.trip.count206
  br i1 %exitcond207.not, label %.loopexit, label %169, !llvm.loop !50

.loopexit:                                        ; preds = %172, %163, %.critedge.thread
  store i32 0, ptr %162, align 8, !tbaa !48
  br label %177

177:                                              ; preds = %.loopexit, %158
  %178 = getelementptr inbounds i8, ptr %0, i64 4824
  %179 = load i32, ptr %178, align 8, !tbaa !25
  %180 = getelementptr inbounds i8, ptr %0, i64 4832
  %181 = load i32, ptr %180, align 8, !tbaa !25
  %182 = add nsw i32 %181, %179
  store i32 %182, ptr %180, align 8, !tbaa !25
  store i32 0, ptr %178, align 8, !tbaa !25
  call void @qh_settempfree(ptr noundef nonnull %0, ptr noundef nonnull %5) #3
  %183 = load i32, ptr %7, align 8, !tbaa !5
  %184 = icmp sgt i32 %183, 3
  br i1 %184, label %185, label %188

185:                                              ; preds = %177
  %186 = getelementptr inbounds i8, ptr %0, i64 2456
  %187 = load ptr, ptr %186, align 8, !tbaa !49
  call void @qh_printfacetlist(ptr noundef nonnull %0, ptr noundef %187, ptr noundef null, i32 noundef 1) #3
  br label %188

188:                                              ; preds = %185, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret void
}

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

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

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

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

declare void @qh_settempfree(ptr noundef, ptr 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 136}
!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, !11, i64 2424}
!16 = !{!11, !11, i64 0}
!17 = !{!6, !7, i64 2576}
!18 = !{!6, !7, i64 632}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !11, i64 16}
!24 = !{!"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}
!25 = !{!8, !8, i64 0}
!26 = distinct !{!26, !22}
!27 = !{!6, !11, i64 104}
!28 = !{!6, !7, i64 520}
!29 = !{!6, !7, i64 524}
!30 = !{!6, !11, i64 120}
!31 = !{!6, !7, i64 236}
!32 = !{!6, !7, i64 188}
!33 = !{!6, !7, i64 44}
!34 = !{!6, !10, i64 24}
!35 = !{!6, !10, i64 2680}
!36 = !{!6, !7, i64 640}
!37 = !{!6, !7, i64 2568}
!38 = !{!39, !11, i64 56}
!39 = !{!"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}
!40 = !{!39, !11, i64 88}
!41 = !{!10, !10, i64 0}
!42 = distinct !{!42, !22}
!43 = !{!39, !10, i64 0}
!44 = distinct !{!44, !22}
!45 = !{!6, !7, i64 144}
!46 = !{!6, !7, i64 148}
!47 = !{!6, !7, i64 628}
!48 = !{!6, !7, i64 2712}
!49 = !{!6, !11, i64 2456}
!50 = distinct !{!50, !22}


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