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

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

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

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.152 = external hidden unnamed_addr constant [45 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

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

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

declare ptr @qh_getcentrum(ptr noundef) #1

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

declare ptr @qh_makenew_nonsimplicial(ptr noundef, ptr noundef, ptr noundef) #1

declare ptr @qh_memalloc(i32 noundef) #1

declare ptr @qh_facetcenter(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_triangulate_facet(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  %10 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !11
  %11 = icmp sge i32 %10, 3
  br i1 %11, label %12, label %17

12:                                               ; preds = %2
  %13 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.facetT, ptr %14, i32 0, i32 14
  %16 = load i32, ptr %15, align 4, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %13, i32 noundef 3020, ptr noundef @.str.152, i32 noundef %16)
  br label %17

17:                                               ; preds = %12, %2
  %18 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !11
  %19 = icmp sge i32 %18, 4
  br i1 %19, label %20, label %23

20:                                               ; preds = %17
  %21 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_printfacet(ptr noundef %21, ptr noundef %22)
  br label %23

23:                                               ; preds = %20, %17
  store ptr null, ptr %6, align 8, !tbaa !5
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.facetT, ptr %24, i32 0, i32 10
  %26 = load ptr, ptr %25, align 8, !tbaa !18
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %51

28:                                               ; preds = %23
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.facetT, ptr %29, i32 0, i32 10
  %31 = load ptr, ptr %30, align 8, !tbaa !18
  %32 = getelementptr inbounds %struct.setT, ptr %31, i32 0, i32 1
  %33 = getelementptr inbounds [1 x %union.setelemT], ptr %32, i64 0, i64 0
  store ptr %33, ptr %7, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %39, %28
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds ptr, ptr %35, i32 1
  store ptr %36, ptr %7, align 8, !tbaa !5
  %37 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %37, ptr %6, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %50

39:                                               ; preds = %34
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.facetT, ptr %40, i32 0, i32 15
  %42 = load i32, ptr %41, align 8
  %43 = and i32 %42, -16385
  %44 = or i32 %43, 0
  store i32 %44, ptr %41, align 8
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.facetT, ptr %45, i32 0, i32 15
  %47 = load i32, ptr %46, align 8
  %48 = and i32 %47, -16777217
  %49 = or i32 %48, 0
  store i32 %49, ptr %46, align 8
  br label %34, !llvm.loop !19

50:                                               ; preds = %34
  br label %51

51:                                               ; preds = %50, %23
  %52 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 179), align 8, !tbaa !21
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %54, label %100

54:                                               ; preds = %51
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.facetT, ptr %55, i32 0, i32 5
  %57 = load ptr, ptr %56, align 8, !tbaa !22
  %58 = icmp ne ptr %57, null
  br i1 %58, label %100, label %59

59:                                               ; preds = %54
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.facetT, ptr %60, i32 0, i32 3
  %62 = load ptr, ptr %61, align 8, !tbaa !23
  %63 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !24
  %64 = sub nsw i32 %63, 1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds double, ptr %62, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !25
  %68 = fcmp olt double %67, 0.000000e+00
  br i1 %68, label %69, label %79

69:                                               ; preds = %59
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.facetT, ptr %70, i32 0, i32 3
  %72 = load ptr, ptr %71, align 8, !tbaa !23
  %73 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !24
  %74 = sub nsw i32 %73, 1
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds double, ptr %72, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !25
  %78 = fneg double %77
  br label %88

79:                                               ; preds = %59
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.facetT, ptr %80, i32 0, i32 3
  %82 = load ptr, ptr %81, align 8, !tbaa !23
  %83 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !24
  %84 = sub nsw i32 %83, 1
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds double, ptr %82, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !25
  br label %88

88:                                               ; preds = %79, %69
  %89 = phi double [ %78, %69 ], [ %87, %79 ]
  %90 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 125), align 8, !tbaa !26
  %91 = fmul double %90, 2.000000e+00
  %92 = fcmp oge double %89, %91
  br i1 %92, label %93, label %100

93:                                               ; preds = %88
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.facetT, ptr %94, i32 0, i32 8
  %96 = load ptr, ptr %95, align 8, !tbaa !27
  %97 = call ptr @qh_facetcenter(ptr noundef %96)
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.facetT, ptr %98, i32 0, i32 5
  store ptr %97, ptr %99, align 8, !tbaa !22
  br label %100

100:                                              ; preds = %93, %88, %54, %51
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_willdelete(ptr noundef %101, ptr noundef null)
  %102 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 157), align 8, !tbaa !28
  store ptr %102, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 159), align 8, !tbaa !29
  %103 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !30
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.facetT, ptr %104, i32 0, i32 13
  store i32 %103, ptr %105, align 8, !tbaa !31
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.facetT, ptr %106, i32 0, i32 8
  %108 = load ptr, ptr %107, align 8, !tbaa !27
  %109 = getelementptr inbounds %struct.setT, ptr %108, i32 0, i32 1
  %110 = getelementptr inbounds [1 x %union.setelemT], ptr %109, i64 0, i64 0
  %111 = load ptr, ptr %110, align 8, !tbaa !32
  store ptr %111, ptr %8, align 8, !tbaa !5
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = call ptr @qh_makenew_nonsimplicial(ptr noundef %112, ptr noundef %113, ptr noundef %9)
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.facetT, ptr %115, i32 0, i32 10
  %117 = load ptr, ptr %116, align 8, !tbaa !18
  %118 = getelementptr inbounds %struct.setT, ptr %117, i32 0, i32 1
  %119 = getelementptr inbounds [1 x %union.setelemT], ptr %118, i64 0, i64 0
  store ptr null, ptr %119, align 8, !tbaa !32
  %120 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 159), align 8, !tbaa !29
  store ptr %120, ptr %5, align 8, !tbaa !5
  br label %121

121:                                              ; preds = %252, %100
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = icmp ne ptr %122, null
  br i1 %123, label %124, label %129

124:                                              ; preds = %121
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.facetT, ptr %125, i32 0, i32 7
  %127 = load ptr, ptr %126, align 8, !tbaa !33
  %128 = icmp ne ptr %127, null
  br label %129

129:                                              ; preds = %124, %121
  %130 = phi i1 [ false, %121 ], [ %128, %124 ]
  br i1 %130, label %131, label %256

131:                                              ; preds = %129
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.facetT, ptr %132, i32 0, i32 15
  %134 = load i32, ptr %133, align 8
  %135 = and i32 %134, -513
  %136 = or i32 %135, 512
  store i32 %136, ptr %133, align 8
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.facetT, ptr %138, i32 0, i32 4
  store ptr %137, ptr %139, align 8, !tbaa !32
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.facetT, ptr %140, i32 0, i32 15
  %142 = load i32, ptr %141, align 8
  %143 = and i32 %142, -1073741825
  %144 = or i32 %143, 0
  store i32 %144, ptr %141, align 8
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.facetT, ptr %145, i32 0, i32 15
  %147 = load i32, ptr %146, align 8
  %148 = lshr i32 %147, 17
  %149 = and i32 %148, 1
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.facetT, ptr %150, i32 0, i32 15
  %152 = load i32, ptr %151, align 8
  %153 = and i32 %149, 1
  %154 = shl i32 %153, 17
  %155 = and i32 %152, -131073
  %156 = or i32 %155, %154
  store i32 %156, ptr %151, align 8
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.facetT, ptr %157, i32 0, i32 15
  %159 = load i32, ptr %158, align 8
  %160 = lshr i32 %159, 19
  %161 = and i32 %160, 1
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.facetT, ptr %162, i32 0, i32 15
  %164 = load i32, ptr %163, align 8
  %165 = and i32 %161, 1
  %166 = shl i32 %165, 19
  %167 = and i32 %164, -524289
  %168 = or i32 %167, %166
  store i32 %168, ptr %163, align 8
  %169 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !34
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %225

171:                                              ; preds = %131
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.facetT, ptr %172, i32 0, i32 15
  %174 = load i32, ptr %173, align 8
  %175 = and i32 %174, -268435457
  %176 = or i32 %175, 268435456
  store i32 %176, ptr %173, align 8
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.facetT, ptr %177, i32 0, i32 3
  %179 = load ptr, ptr %178, align 8, !tbaa !23
  %180 = icmp ne ptr %179, null
  br i1 %180, label %181, label %194

181:                                              ; preds = %171
  %182 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 153), align 8, !tbaa !35
  %183 = call ptr @qh_memalloc(i32 noundef %182)
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.facetT, ptr %184, i32 0, i32 3
  store ptr %183, ptr %185, align 8, !tbaa !23
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.facetT, ptr %186, i32 0, i32 3
  %188 = load ptr, ptr %187, align 8, !tbaa !23
  %189 = load ptr, ptr %3, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.facetT, ptr %189, i32 0, i32 3
  %191 = load ptr, ptr %190, align 8, !tbaa !23
  %192 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 153), align 8, !tbaa !35
  %193 = sext i32 %192 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %188, ptr align 8 %191, i64 %193, i1 false)
  br label %194

194:                                              ; preds = %181, %171
  %195 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 179), align 8, !tbaa !21
  %196 = icmp eq i32 %195, 2
  br i1 %196, label %197, label %202

197:                                              ; preds = %194
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = call ptr @qh_getcentrum(ptr noundef %198)
  %200 = load ptr, ptr %5, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.facetT, ptr %200, i32 0, i32 5
  store ptr %199, ptr %201, align 8, !tbaa !22
  br label %224

202:                                              ; preds = %194
  %203 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 179), align 8, !tbaa !21
  %204 = icmp eq i32 %203, 1
  br i1 %204, label %205, label %223

205:                                              ; preds = %202
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.facetT, ptr %206, i32 0, i32 5
  %208 = load ptr, ptr %207, align 8, !tbaa !22
  %209 = icmp ne ptr %208, null
  br i1 %209, label %210, label %223

210:                                              ; preds = %205
  %211 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 154), align 4, !tbaa !36
  %212 = call ptr @qh_memalloc(i32 noundef %211)
  %213 = load ptr, ptr %5, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.facetT, ptr %213, i32 0, i32 5
  store ptr %212, ptr %214, align 8, !tbaa !22
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.facetT, ptr %215, i32 0, i32 5
  %217 = load ptr, ptr %216, align 8, !tbaa !22
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.facetT, ptr %218, i32 0, i32 5
  %220 = load ptr, ptr %219, align 8, !tbaa !22
  %221 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 154), align 4, !tbaa !36
  %222 = sext i32 %221 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %217, ptr align 8 %220, i64 %222, i1 false)
  br label %223

223:                                              ; preds = %210, %205, %202
  br label %224

224:                                              ; preds = %223, %197
  br label %241

225:                                              ; preds = %131
  %226 = load ptr, ptr %5, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.facetT, ptr %226, i32 0, i32 15
  %228 = load i32, ptr %227, align 8
  %229 = and i32 %228, -268435457
  %230 = or i32 %229, 0
  store i32 %230, ptr %227, align 8
  %231 = load ptr, ptr %3, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.facetT, ptr %231, i32 0, i32 3
  %233 = load ptr, ptr %232, align 8, !tbaa !23
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.facetT, ptr %234, i32 0, i32 3
  store ptr %233, ptr %235, align 8, !tbaa !23
  %236 = load ptr, ptr %3, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.facetT, ptr %236, i32 0, i32 5
  %238 = load ptr, ptr %237, align 8, !tbaa !22
  %239 = load ptr, ptr %5, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.facetT, ptr %239, i32 0, i32 5
  store ptr %238, ptr %240, align 8, !tbaa !22
  br label %241

241:                                              ; preds = %225, %224
  %242 = load ptr, ptr %3, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.facetT, ptr %242, i32 0, i32 2
  %244 = load double, ptr %243, align 8, !tbaa !37
  %245 = load ptr, ptr %5, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.facetT, ptr %245, i32 0, i32 2
  store double %244, ptr %246, align 8, !tbaa !37
  %247 = load ptr, ptr %3, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.facetT, ptr %247, i32 0, i32 1
  %249 = load double, ptr %248, align 8, !tbaa !38
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.facetT, ptr %250, i32 0, i32 1
  store double %249, ptr %251, align 8, !tbaa !38
  br label %252

252:                                              ; preds = %241
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.facetT, ptr %253, i32 0, i32 7
  %255 = load ptr, ptr %254, align 8, !tbaa !33
  store ptr %255, ptr %5, align 8, !tbaa !5
  br label %121, !llvm.loop !39

256:                                              ; preds = %129
  call void @qh_matchnewfacets()
  %257 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 205), align 8, !tbaa !32
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 205), align 8, !tbaa !32
  %259 = load i32, ptr %9, align 4, !tbaa !9
  %260 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 207), align 8, !tbaa !32
  %261 = add nsw i32 %260, %259
  store i32 %261, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 207), align 8, !tbaa !32
  %262 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 206), align 8, !tbaa !32
  %263 = load i32, ptr %9, align 4, !tbaa !9
  %264 = icmp slt i32 %262, %263
  br i1 %264, label %265, label %267

265:                                              ; preds = %256
  %266 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %266, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 206), align 8, !tbaa !32
  br label %267

267:                                              ; preds = %265, %256
  store ptr null, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 160), align 8, !tbaa !40
  %268 = load ptr, ptr %4, align 8, !tbaa !5
  %269 = load ptr, ptr %268, align 8, !tbaa !5
  %270 = icmp ne ptr %269, null
  br i1 %270, label %274, label %271

271:                                              ; preds = %267
  %272 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !41
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %272, ptr %273, align 8, !tbaa !5
  br label %274

274:                                              ; preds = %271, %267
  store ptr null, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !41
  call void @qh_updatevertices()
  call void @qh_resetlists(i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void
}

declare void @qh_updatevertices() #1

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare void @qh_matchnewfacets() #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 128}
!12 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !13, i64 56, !13, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !6, i64 96, !10, i64 104, !10, i64 108, !6, i64 112, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !13, i64 152, !13, i64 160, !10, i64 168, !10, i64 172, !10, i64 176, !13, i64 184, !13, i64 192, !10, i64 200, !13, i64 208, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !7, i64 296, !10, i64 412, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !13, i64 448, !13, i64 456, !13, i64 464, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !13, i64 544, !10, i64 552, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !13, i64 584, !10, i64 592, !6, i64 600, !6, i64 608, !10, i64 616, !10, i64 620, !10, i64 624, !10, i64 628, !10, i64 632, !6, i64 640, !10, i64 648, !6, i64 656, !10, i64 664, !7, i64 668, !10, i64 924, !7, i64 928, !7, i64 1184, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !10, i64 1716, !6, i64 1720, !6, i64 1728, !6, i64 1736, !6, i64 1744, !13, i64 1752, !13, i64 1760, !13, i64 1768, !13, i64 1776, !13, i64 1784, !13, i64 1792, !13, i64 1800, !13, i64 1808, !13, i64 1816, !13, i64 1824, !13, i64 1832, !13, i64 1840, !13, i64 1848, !10, i64 1856, !6, i64 1864, !13, i64 1872, !13, i64 1880, !13, i64 1888, !13, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 2112, !7, i64 2152, !7, i64 2352, !6, i64 2392, !6, i64 2400, !6, i64 2408, !6, i64 2416, !10, i64 2424, !10, i64 2428, !10, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !10, i64 2480, !10, i64 2484, !6, i64 2488, !10, i64 2496, !6, i64 2504, !6, i64 2512, !6, i64 2520, !6, i64 2528, !10, i64 2536, !10, i64 2540, !10, i64 2544, !10, i64 2548, !10, i64 2552, !10, i64 2556, !10, i64 2560, !14, i64 2568, !10, i64 2576, !10, i64 2580, !10, i64 2584, !10, i64 2588, !6, i64 2592, !10, i64 2600, !10, i64 2604, !13, i64 2608, !10, i64 2616, !13, i64 2624, !13, i64 2632, !13, i64 2640, !10, i64 2648, !10, i64 2652, !10, i64 2656, !10, i64 2660, !13, i64 2664, !13, i64 2672, !10, i64 2680, !10, i64 2684, !10, i64 2688, !10, i64 2692, !13, i64 2696, !13, i64 2704, !10, i64 2712, !10, i64 2716, !10, i64 2720, !10, i64 2724, !6, i64 2728, !6, i64 2736, !6, i64 2744, !6, i64 2752, !6, i64 2760, !6, i64 2768, !6, i64 2776, !6, i64 2784, !10, i64 2792, !6, i64 2800, !6, i64 2808, !10, i64 2816, !10, i64 2820, !10, i64 2824, !6, i64 2832, !13, i64 2840, !13, i64 2848, !13, i64 2856, !10, i64 2864, !10, i64 2868, !6, i64 2872, !6, i64 2880, !10, i64 2888}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !6, i64 2408}
!16 = !{!17, !10, i64 108}
!17 = !{!"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}
!18 = !{!17, !6, i64 80}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!12, !10, i64 2584}
!22 = !{!17, !6, i64 40}
!23 = !{!17, !6, i64 24}
!24 = !{!12, !10, i64 624}
!25 = !{!13, !13, i64 0}
!26 = !{!12, !13, i64 1752}
!27 = !{!17, !6, i64 64}
!28 = !{!12, !6, i64 2448}
!29 = !{!12, !6, i64 2464}
!30 = !{!12, !10, i64 2712}
!31 = !{!17, !10, i64 104}
!32 = !{!7, !7, i64 0}
!33 = !{!17, !6, i64 56}
!34 = !{!12, !10, i64 560}
!35 = !{!12, !10, i64 2424}
!36 = !{!12, !10, i64 2428}
!37 = !{!17, !13, i64 16}
!38 = !{!17, !13, i64 8}
!39 = distinct !{!39, !20}
!40 = !{!12, !6, i64 2472}
!41 = !{!12, !6, i64 2528}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.qhT = type { i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, double, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, ptr, double, double, double, double, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, ptr, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhstatT = type { [227 x %union.intrealT], [237 x i8], [227 x ptr], [227 x i16], [227 x i8], [227 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.152 = external hidden unnamed_addr constant [45 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

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

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

declare ptr @qh_getcentrum(ptr noundef) local_unnamed_addr #1

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

declare ptr @qh_makenew_nonsimplicial(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @qh_memalloc(i32 noundef) local_unnamed_addr #1

declare ptr @qh_facetcenter(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_triangulate_facet(ptr noundef %0, ptr nocapture noundef %1) local_unnamed_addr #2 {
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  store i32 0, ptr %3, align 4, !tbaa !5
  %4 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !9
  %5 = icmp sgt i32 %4, 2
  br i1 %5, label %6, label %.thread

6:                                                ; preds = %2
  %7 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !14
  %8 = getelementptr inbounds i8, ptr %0, i64 108
  %9 = load i32, ptr %8, align 4, !tbaa !15
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %7, i32 noundef 3020, ptr noundef nonnull @.str.152, i32 noundef %9) #4
  %.pr = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !9
  %10 = icmp sgt i32 %.pr, 3
  br i1 %10, label %11, label %.thread

11:                                               ; preds = %6
  %12 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !14
  tail call void @qh_printfacet(ptr noundef %12, ptr noundef nonnull %0) #4
  br label %.thread

.thread:                                          ; preds = %2, %11, %6
  %13 = getelementptr inbounds i8, ptr %0, i64 80
  %14 = load ptr, ptr %13, align 8, !tbaa !17
  %.not = icmp eq ptr %14, null
  br i1 %.not, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.thread
  %.05266 = getelementptr inbounds i8, ptr %14, i64 8
  %15 = load ptr, ptr %.05266, align 8, !tbaa !18
  %.not5867 = icmp eq ptr %15, null
  br i1 %.not5867, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %16 = phi ptr [ %20, %.lr.ph ], [ %15, %.preheader ]
  %.05268 = phi ptr [ %.052, %.lr.ph ], [ %.05266, %.preheader ]
  %17 = getelementptr inbounds i8, ptr %16, i64 112
  %18 = load i32, ptr %17, align 8
  %19 = and i32 %18, -16793601
  store i32 %19, ptr %17, align 8
  %.052 = getelementptr inbounds i8, ptr %.05268, i64 8
  %20 = load ptr, ptr %.052, align 8, !tbaa !18
  %.not58 = icmp eq ptr %20, null
  br i1 %.not58, label %.loopexit, label %.lr.ph, !llvm.loop !19

.loopexit:                                        ; preds = %.lr.ph, %.preheader, %.thread
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2584), align 8, !tbaa !21
  %22 = icmp eq i32 %21, 1
  br i1 %22, label %23, label %44

23:                                               ; preds = %.loopexit
  %24 = getelementptr inbounds i8, ptr %0, i64 40
  %25 = load ptr, ptr %24, align 8, !tbaa !22
  %.not59 = icmp eq ptr %25, null
  br i1 %.not59, label %26, label %44

26:                                               ; preds = %23
  %27 = getelementptr inbounds i8, ptr %0, i64 24
  %28 = load ptr, ptr %27, align 8, !tbaa !23
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !24
  %30 = sext i32 %29 to i64
  %31 = getelementptr double, ptr %28, i64 %30
  %32 = getelementptr i8, ptr %31, i64 -8
  %33 = load double, ptr %32, align 8, !tbaa !25
  %34 = fcmp olt double %33, 0.000000e+00
  %35 = fneg double %33
  %36 = select i1 %34, double %35, double %33
  %37 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1752), align 8, !tbaa !26
  %38 = fmul double %37, 2.000000e+00
  %39 = fcmp ult double %36, %38
  br i1 %39, label %44, label %40

40:                                               ; preds = %26
  %41 = getelementptr inbounds i8, ptr %0, i64 64
  %42 = load ptr, ptr %41, align 8, !tbaa !27
  %43 = tail call ptr @qh_facetcenter(ptr noundef %42) #4
  store ptr %43, ptr %24, align 8, !tbaa !22
  br label %44

44:                                               ; preds = %40, %26, %23, %.loopexit
  tail call void @qh_willdelete(ptr noundef %0, ptr noundef null) #4
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2448), align 8, !tbaa !28
  store ptr %45, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2464), align 8, !tbaa !29
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !30
  %47 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 %46, ptr %47, align 8, !tbaa !31
  %48 = getelementptr inbounds i8, ptr %0, i64 64
  %49 = load ptr, ptr %48, align 8, !tbaa !27
  %50 = getelementptr inbounds i8, ptr %49, i64 8
  %51 = load ptr, ptr %50, align 8, !tbaa !32
  %52 = call ptr @qh_makenew_nonsimplicial(ptr noundef %0, ptr noundef %51, ptr noundef nonnull %3) #4
  %53 = load ptr, ptr %13, align 8, !tbaa !17
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  store ptr null, ptr %54, align 8, !tbaa !32
  %.069 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2464), align 8, !tbaa !18
  %.not6070 = icmp eq ptr %.069, null
  br i1 %.not6070, label %.critedge, label %.lr.ph72

.lr.ph72:                                         ; preds = %44
  %55 = getelementptr inbounds i8, ptr %0, i64 112
  %56 = getelementptr inbounds i8, ptr %0, i64 24
  %57 = getelementptr inbounds i8, ptr %0, i64 40
  %58 = getelementptr inbounds i8, ptr %0, i64 8
  br label %59

59:                                               ; preds = %.lr.ph72, %107
  %.071 = phi ptr [ %.069, %.lr.ph72 ], [ %.0, %107 ]
  %60 = getelementptr inbounds i8, ptr %.071, i64 56
  %61 = load ptr, ptr %60, align 8, !tbaa !33
  %.not61 = icmp eq ptr %61, null
  br i1 %.not61, label %.critedge, label %62

62:                                               ; preds = %59
  %63 = getelementptr inbounds i8, ptr %.071, i64 112
  %64 = load i32, ptr %63, align 8
  %65 = or i32 %64, 512
  %66 = getelementptr inbounds i8, ptr %.071, i64 32
  store ptr %0, ptr %66, align 8, !tbaa !32
  %67 = and i32 %65, -1073741825
  store i32 %67, ptr %63, align 8
  %68 = load i32, ptr %55, align 8
  %69 = and i32 %68, 131072
  %70 = and i32 %65, -1073872897
  %71 = or disjoint i32 %69, %70
  store i32 %71, ptr %63, align 8
  %72 = load i32, ptr %55, align 8
  %73 = and i32 %72, 524288
  %74 = and i32 %71, -1074266113
  %75 = or disjoint i32 %74, %73
  store i32 %75, ptr %63, align 8
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 560), align 8, !tbaa !34
  %.not63 = icmp eq i32 %76, 0
  br i1 %.not63, label %101, label %77

77:                                               ; preds = %62
  %78 = or i32 %75, 268435456
  store i32 %78, ptr %63, align 8
  %79 = load ptr, ptr %56, align 8, !tbaa !23
  %.not64 = icmp eq ptr %79, null
  br i1 %.not64, label %87, label %80

80:                                               ; preds = %77
  %81 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !35
  %82 = call ptr @qh_memalloc(i32 noundef %81) #4
  %83 = getelementptr inbounds i8, ptr %.071, i64 24
  store ptr %82, ptr %83, align 8, !tbaa !23
  %84 = load ptr, ptr %56, align 8, !tbaa !23
  %85 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !35
  %86 = sext i32 %85 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %82, ptr align 8 %84, i64 %86, i1 false)
  br label %87

87:                                               ; preds = %80, %77
  %88 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2584), align 8, !tbaa !21
  switch i32 %88, label %107 [
    i32 2, label %89
    i32 1, label %92
  ]

89:                                               ; preds = %87
  %90 = call ptr @qh_getcentrum(ptr noundef nonnull %.071) #4
  %91 = getelementptr inbounds i8, ptr %.071, i64 40
  store ptr %90, ptr %91, align 8, !tbaa !22
  br label %107

92:                                               ; preds = %87
  %93 = load ptr, ptr %57, align 8, !tbaa !22
  %.not65 = icmp eq ptr %93, null
  br i1 %.not65, label %107, label %94

94:                                               ; preds = %92
  %95 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2428), align 4, !tbaa !36
  %96 = call ptr @qh_memalloc(i32 noundef %95) #4
  %97 = getelementptr inbounds i8, ptr %.071, i64 40
  store ptr %96, ptr %97, align 8, !tbaa !22
  %98 = load ptr, ptr %57, align 8, !tbaa !22
  %99 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2428), align 4, !tbaa !36
  %100 = sext i32 %99 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %96, ptr align 8 %98, i64 %100, i1 false)
  br label %107

101:                                              ; preds = %62
  %102 = and i32 %75, -1342177281
  store i32 %102, ptr %63, align 8
  %103 = load ptr, ptr %56, align 8, !tbaa !23
  %104 = getelementptr inbounds i8, ptr %.071, i64 24
  store ptr %103, ptr %104, align 8, !tbaa !23
  %105 = load ptr, ptr %57, align 8, !tbaa !22
  %106 = getelementptr inbounds i8, ptr %.071, i64 40
  store ptr %105, ptr %106, align 8, !tbaa !22
  br label %107

107:                                              ; preds = %87, %89, %94, %92, %101
  %108 = getelementptr inbounds i8, ptr %.071, i64 8
  %109 = load <2 x double>, ptr %58, align 8, !tbaa !25
  store <2 x double> %109, ptr %108, align 8, !tbaa !25
  %.0 = load ptr, ptr %60, align 8, !tbaa !18
  %.not60 = icmp eq ptr %.0, null
  br i1 %.not60, label %.critedge, label %59, !llvm.loop !37

.critedge:                                        ; preds = %59, %107, %44
  call void @qh_matchnewfacets() #4
  %110 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1640), align 8, !tbaa !32
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1640), align 8, !tbaa !32
  %112 = load i32, ptr %3, align 4, !tbaa !5
  %113 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1656), align 8, !tbaa !32
  %114 = add nsw i32 %113, %112
  store i32 %114, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1656), align 8, !tbaa !32
  %115 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1648), align 8, !tbaa !32
  %116 = icmp slt i32 %115, %112
  br i1 %116, label %117, label %118

117:                                              ; preds = %.critedge
  store i32 %112, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1648), align 8, !tbaa !32
  br label %118

118:                                              ; preds = %117, %.critedge
  store ptr null, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2472), align 8, !tbaa !38
  %119 = load ptr, ptr %1, align 8, !tbaa !18
  %.not62 = icmp eq ptr %119, null
  br i1 %.not62, label %120, label %122

120:                                              ; preds = %118
  %121 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2528), align 8, !tbaa !39
  store ptr %121, ptr %1, align 8, !tbaa !18
  br label %122

122:                                              ; preds = %120, %118
  store ptr null, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2528), align 8, !tbaa !39
  call void @qh_updatevertices() #4
  call void @qh_resetlists(i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  ret void
}

declare void @qh_updatevertices() local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare void @qh_matchnewfacets() 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 128}
!10 = !{!"qhT", !6, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !11, i64 56, !11, i64 64, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !6, i64 88, !12, i64 96, !6, i64 104, !6, i64 108, !12, i64 112, !6, i64 120, !6, i64 124, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144, !11, i64 152, !11, i64 160, !6, i64 168, !6, i64 172, !6, i64 176, !11, i64 184, !11, i64 192, !6, i64 200, !11, i64 208, !6, i64 216, !6, i64 220, !6, i64 224, !6, i64 228, !6, i64 232, !6, i64 236, !6, i64 240, !6, i64 244, !6, i64 248, !6, i64 252, !6, i64 256, !6, i64 260, !6, i64 264, !6, i64 268, !6, i64 272, !6, i64 276, !6, i64 280, !6, i64 284, !6, i64 288, !6, i64 292, !7, i64 296, !6, i64 412, !6, i64 416, !6, i64 420, !6, i64 424, !6, i64 428, !6, i64 432, !6, i64 436, !6, i64 440, !6, i64 444, !11, i64 448, !11, i64 456, !11, i64 464, !6, i64 472, !6, i64 476, !6, i64 480, !6, i64 484, !6, i64 488, !6, i64 492, !6, i64 496, !6, i64 500, !6, i64 504, !6, i64 508, !6, i64 512, !6, i64 516, !6, i64 520, !6, i64 524, !6, i64 528, !6, i64 532, !6, i64 536, !6, i64 540, !11, i64 544, !6, i64 552, !6, i64 556, !6, i64 560, !6, i64 564, !6, i64 568, !6, i64 572, !6, i64 576, !6, i64 580, !11, i64 584, !6, i64 592, !12, i64 600, !12, i64 608, !6, i64 616, !6, i64 620, !6, i64 624, !6, i64 628, !6, i64 632, !12, i64 640, !6, i64 648, !12, i64 656, !6, i64 664, !7, i64 668, !6, i64 924, !7, i64 928, !7, i64 1184, !6, i64 1696, !6, i64 1700, !6, i64 1704, !6, i64 1708, !6, i64 1712, !6, i64 1716, !12, i64 1720, !12, i64 1728, !12, i64 1736, !12, i64 1744, !11, i64 1752, !11, i64 1760, !11, i64 1768, !11, i64 1776, !11, i64 1784, !11, i64 1792, !11, i64 1800, !11, i64 1808, !11, i64 1816, !11, i64 1824, !11, i64 1832, !11, i64 1840, !11, i64 1848, !6, i64 1856, !12, i64 1864, !11, i64 1872, !11, i64 1880, !11, i64 1888, !11, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 2112, !7, i64 2152, !7, i64 2352, !12, i64 2392, !12, i64 2400, !12, i64 2408, !12, i64 2416, !6, i64 2424, !6, i64 2428, !6, i64 2432, !12, i64 2440, !12, i64 2448, !12, i64 2456, !12, i64 2464, !12, i64 2472, !6, i64 2480, !6, i64 2484, !12, i64 2488, !6, i64 2496, !12, i64 2504, !12, i64 2512, !12, i64 2520, !12, i64 2528, !6, i64 2536, !6, i64 2540, !6, i64 2544, !6, i64 2548, !6, i64 2552, !6, i64 2556, !6, i64 2560, !13, i64 2568, !6, i64 2576, !6, i64 2580, !6, i64 2584, !6, i64 2588, !12, i64 2592, !6, i64 2600, !6, i64 2604, !11, i64 2608, !6, i64 2616, !11, i64 2624, !11, i64 2632, !11, i64 2640, !6, i64 2648, !6, i64 2652, !6, i64 2656, !6, i64 2660, !11, i64 2664, !11, i64 2672, !6, i64 2680, !6, i64 2684, !6, i64 2688, !6, i64 2692, !11, i64 2696, !11, i64 2704, !6, i64 2712, !6, i64 2716, !6, i64 2720, !6, i64 2724, !12, i64 2728, !12, i64 2736, !12, i64 2744, !12, i64 2752, !12, i64 2760, !12, i64 2768, !12, i64 2776, !12, i64 2784, !6, i64 2792, !12, i64 2800, !12, i64 2808, !6, i64 2816, !6, i64 2820, !6, i64 2824, !12, i64 2832, !11, i64 2840, !11, i64 2848, !11, i64 2856, !6, i64 2864, !6, i64 2868, !12, i64 2872, !12, i64 2880, !6, i64 2888}
!11 = !{!"double", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !12, i64 2408}
!15 = !{!16, !6, i64 108}
!16 = !{!"facetT", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !7, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115}
!17 = !{!16, !12, i64 80}
!18 = !{!12, !12, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!10, !6, i64 2584}
!22 = !{!16, !12, i64 40}
!23 = !{!16, !12, i64 24}
!24 = !{!10, !6, i64 624}
!25 = !{!11, !11, i64 0}
!26 = !{!10, !11, i64 1752}
!27 = !{!16, !12, i64 64}
!28 = !{!10, !12, i64 2448}
!29 = !{!10, !12, i64 2464}
!30 = !{!10, !6, i64 2712}
!31 = !{!16, !6, i64 104}
!32 = !{!7, !7, i64 0}
!33 = !{!16, !12, i64 56}
!34 = !{!10, !6, i64 560}
!35 = !{!10, !6, i64 2424}
!36 = !{!10, !6, i64 2428}
!37 = distinct !{!37, !20}
!38 = !{!10, !12, i64 2472}
!39 = !{!10, !12, i64 2528}


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