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

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

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

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

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

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

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

51:                                               ; preds = %35
  br label %52

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

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

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

70:                                               ; preds = %60
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.facetT, ptr %71, i32 0, i32 3
  %73 = load ptr, ptr %72, align 8, !tbaa !25
  %74 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !26
  %75 = sub nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds double, ptr %73, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !27
  %79 = fneg double %78
  br label %89

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

89:                                               ; preds = %80, %70
  %90 = phi double [ %79, %70 ], [ %88, %80 ]
  %91 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 131), align 8, !tbaa !28
  %92 = fmul double %91, 2.000000e+00
  %93 = fcmp oge double %90, %92
  br i1 %93, label %94, label %101

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

101:                                              ; preds = %94, %89, %55, %52
  %102 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 164), align 8, !tbaa !30
  store ptr %102, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !31
  store ptr %102, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 167), align 8, !tbaa !32
  %103 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !33
  %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 !34
  %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 !29
  %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 !35
  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
  call void @qh_willdelete(ptr noundef %115, ptr noundef null)
  %116 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !31
  store ptr %116, ptr %5, align 8, !tbaa !5
  br label %117

117:                                              ; preds = %248, %101
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %125

120:                                              ; preds = %117
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.facetT, ptr %121, i32 0, i32 7
  %123 = load ptr, ptr %122, align 8, !tbaa !36
  %124 = icmp ne ptr %123, null
  br label %125

125:                                              ; preds = %120, %117
  %126 = phi i1 [ false, %117 ], [ %124, %120 ]
  br i1 %126, label %127, label %252

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

167:                                              ; preds = %127
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.facetT, ptr %168, i32 0, i32 15
  %170 = load i32, ptr %169, align 8
  %171 = and i32 %170, -268435457
  %172 = or i32 %171, 268435456
  store i32 %172, ptr %169, align 8
  %173 = load ptr, ptr %3, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.facetT, ptr %173, i32 0, i32 3
  %175 = load ptr, ptr %174, align 8, !tbaa !25
  %176 = icmp ne ptr %175, null
  br i1 %176, label %177, label %190

177:                                              ; preds = %167
  %178 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 160), align 8, !tbaa !38
  %179 = call ptr @qh_memalloc(i32 noundef %178)
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.facetT, ptr %180, i32 0, i32 3
  store ptr %179, ptr %181, align 8, !tbaa !25
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.facetT, ptr %182, i32 0, i32 3
  %184 = load ptr, ptr %183, align 8, !tbaa !25
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.facetT, ptr %185, i32 0, i32 3
  %187 = load ptr, ptr %186, align 8, !tbaa !25
  %188 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 160), align 8, !tbaa !38
  %189 = sext i32 %188 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %184, ptr align 8 %187, i64 %189, i1 false)
  br label %190

190:                                              ; preds = %177, %167
  %191 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 189), align 8, !tbaa !23
  %192 = icmp eq i32 %191, 2
  br i1 %192, label %193, label %198

193:                                              ; preds = %190
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = call ptr @qh_getcentrum(ptr noundef %194)
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.facetT, ptr %196, i32 0, i32 5
  store ptr %195, ptr %197, align 8, !tbaa !24
  br label %220

198:                                              ; preds = %190
  %199 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 189), align 8, !tbaa !23
  %200 = icmp eq i32 %199, 1
  br i1 %200, label %201, label %219

201:                                              ; preds = %198
  %202 = load ptr, ptr %3, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.facetT, ptr %202, i32 0, i32 5
  %204 = load ptr, ptr %203, align 8, !tbaa !24
  %205 = icmp ne ptr %204, null
  br i1 %205, label %206, label %219

206:                                              ; preds = %201
  %207 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 161), align 4, !tbaa !39
  %208 = call ptr @qh_memalloc(i32 noundef %207)
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.facetT, ptr %209, i32 0, i32 5
  store ptr %208, ptr %210, align 8, !tbaa !24
  %211 = load ptr, ptr %5, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.facetT, ptr %211, i32 0, i32 5
  %213 = load ptr, ptr %212, align 8, !tbaa !24
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.facetT, ptr %214, i32 0, i32 5
  %216 = load ptr, ptr %215, align 8, !tbaa !24
  %217 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 161), align 4, !tbaa !39
  %218 = sext i32 %217 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %213, ptr align 8 %216, i64 %218, i1 false)
  br label %219

219:                                              ; preds = %206, %201, %198
  br label %220

220:                                              ; preds = %219, %193
  br label %237

221:                                              ; preds = %127
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.facetT, ptr %222, i32 0, i32 15
  %224 = load i32, ptr %223, align 8
  %225 = and i32 %224, -268435457
  %226 = or i32 %225, 0
  store i32 %226, ptr %223, align 8
  %227 = load ptr, ptr %3, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.facetT, ptr %227, i32 0, i32 3
  %229 = load ptr, ptr %228, align 8, !tbaa !25
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.facetT, ptr %230, i32 0, i32 3
  store ptr %229, ptr %231, align 8, !tbaa !25
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.facetT, ptr %232, i32 0, i32 5
  %234 = load ptr, ptr %233, align 8, !tbaa !24
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.facetT, ptr %235, i32 0, i32 5
  store ptr %234, ptr %236, align 8, !tbaa !24
  br label %237

237:                                              ; preds = %221, %220
  %238 = load ptr, ptr %3, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.facetT, ptr %238, i32 0, i32 2
  %240 = load double, ptr %239, align 8, !tbaa !40
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.facetT, ptr %241, i32 0, i32 2
  store double %240, ptr %242, align 8, !tbaa !40
  %243 = load ptr, ptr %3, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.facetT, ptr %243, i32 0, i32 1
  %245 = load double, ptr %244, align 8, !tbaa !41
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.facetT, ptr %246, i32 0, i32 1
  store double %245, ptr %247, align 8, !tbaa !41
  br label %248

248:                                              ; preds = %237
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.facetT, ptr %249, i32 0, i32 7
  %251 = load ptr, ptr %250, align 8, !tbaa !36
  store ptr %251, ptr %5, align 8, !tbaa !5
  br label %117, !llvm.loop !42

252:                                              ; preds = %125
  %253 = call double @qh_matchnewfacets()
  %254 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 222), align 8, !tbaa !35
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 222), align 8, !tbaa !35
  %256 = load i32, ptr %9, align 4, !tbaa !9
  %257 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 224), align 8, !tbaa !35
  %258 = add nsw i32 %257, %256
  store i32 %258, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 224), align 8, !tbaa !35
  %259 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 223), align 8, !tbaa !35
  %260 = load i32, ptr %9, align 4, !tbaa !9
  %261 = icmp slt i32 %259, %260
  br i1 %261, label %262, label %264

262:                                              ; preds = %252
  %263 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %263, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 223), align 8, !tbaa !35
  br label %264

264:                                              ; preds = %262, %252
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = load ptr, ptr %265, align 8, !tbaa !5
  %267 = icmp ne ptr %266, null
  br i1 %267, label %271, label %268

268:                                              ; preds = %264
  %269 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 177), align 8, !tbaa !43
  %270 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %269, ptr %270, align 8, !tbaa !5
  br label %271

271:                                              ; preds = %268, %264
  store ptr null, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 177), align 8, !tbaa !43
  store ptr null, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 167), align 8, !tbaa !32
  call void @qh_update_vertexneighbors()
  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_update_vertexneighbors() #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 double @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 136}
!12 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !13, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !13, i64 64, !13, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !6, i64 104, !10, i64 112, !10, i64 116, !6, i64 120, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !13, i64 160, !13, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !13, i64 192, !13, i64 200, !10, i64 208, !10, i64 212, !13, i64 216, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !7, i64 300, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !13, i64 448, !13, i64 456, !13, i64 464, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !13, i64 552, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !13, i64 592, !10, i64 600, !6, i64 608, !6, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !6, i64 648, !10, i64 656, !6, i64 664, !10, i64 672, !7, i64 676, !10, i64 932, !7, i64 936, !7, i64 1192, !10, i64 1704, !10, i64 1708, !10, i64 1712, !10, i64 1716, !10, i64 1720, !10, i64 1724, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !13, i64 1760, !13, i64 1768, !13, i64 1776, !13, i64 1784, !13, i64 1792, !13, i64 1800, !13, i64 1808, !13, i64 1816, !13, i64 1824, !13, i64 1832, !13, i64 1840, !13, i64 1848, !13, i64 1856, !13, i64 1864, !6, i64 1872, !13, i64 1880, !13, i64 1888, !13, i64 1896, !13, i64 1904, !10, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !6, i64 2408, !6, i64 2416, !6, i64 2424, !6, i64 2432, !10, i64 2440, !10, i64 2444, !10, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !10, i64 2496, !10, i64 2500, !6, i64 2504, !10, i64 2512, !6, i64 2520, !10, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !10, i64 2568, !10, i64 2572, !10, i64 2576, !10, i64 2580, !10, i64 2584, !10, i64 2588, !10, i64 2592, !10, i64 2596, !14, i64 2600, !10, i64 2608, !10, i64 2612, !10, i64 2616, !10, i64 2620, !10, i64 2624, !6, i64 2632, !6, i64 2640, !10, i64 2648, !10, i64 2652, !10, i64 2656, !13, i64 2664, !10, i64 2672, !13, i64 2680, !13, i64 2688, !13, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !13, i64 2728, !13, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !13, i64 2768, !13, i64 2776, !10, i64 2784, !10, i64 2788, !10, i64 2792, !10, i64 2796, !6, i64 2800, !6, i64 2808, !6, i64 2816, !6, i64 2824, !6, i64 2832, !6, i64 2840, !6, i64 2848, !6, i64 2856, !6, i64 2864, !10, i64 2872, !6, i64 2880, !6, i64 2888, !10, i64 2896, !10, i64 2900, !10, i64 2904, !6, i64 2912, !13, i64 2920, !13, i64 2928, !13, i64 2936, !13, i64 2944, !10, i64 2952, !10, i64 2956, !10, i64 2960, !10, i64 2964, !10, i64 2968, !10, i64 2972, !6, i64 2976, !6, i64 2984, !10, i64 2992}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !6, i64 2424}
!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 = !{!12, !10, i64 2584}
!19 = !{!12, !10, i64 2596}
!20 = !{!17, !6, i64 80}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!12, !10, i64 2616}
!24 = !{!17, !6, i64 40}
!25 = !{!17, !6, i64 24}
!26 = !{!12, !10, i64 632}
!27 = !{!13, !13, i64 0}
!28 = !{!12, !13, i64 1760}
!29 = !{!17, !6, i64 64}
!30 = !{!12, !6, i64 2464}
!31 = !{!12, !6, i64 2480}
!32 = !{!12, !6, i64 2488}
!33 = !{!12, !10, i64 2784}
!34 = !{!17, !10, i64 104}
!35 = !{!7, !7, i64 0}
!36 = !{!17, !6, i64 56}
!37 = !{!12, !10, i64 568}
!38 = !{!12, !10, i64 2440}
!39 = !{!12, !10, i64 2444}
!40 = !{!17, !13, i64 16}
!41 = !{!17, !13, i64 8}
!42 = distinct !{!42, !22}
!43 = !{!12, !6, i64 2560}


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

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

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.223 = 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 136), align 8, !tbaa !9
  %5 = icmp sgt i32 %4, 2
  br i1 %5, label %7, label %.thread

.thread:                                          ; preds = %2
  %6 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2584), align 8, !tbaa !14
  store i32 %6, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2596), align 4, !tbaa !15
  br label %15

7:                                                ; preds = %2
  %8 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  %9 = getelementptr inbounds i8, ptr %0, i64 108
  %10 = load i32, ptr %9, align 4, !tbaa !17
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %8, i32 noundef 3020, ptr noundef nonnull @.str.223, i32 noundef %10) #4
  %.pr = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !9
  %11 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2584), align 8, !tbaa !14
  store i32 %11, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2596), align 4, !tbaa !15
  %12 = icmp sgt i32 %.pr, 3
  br i1 %12, label %13, label %15

13:                                               ; preds = %7
  %14 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  tail call void @qh_printfacet(ptr noundef %14, ptr noundef nonnull %0) #4
  br label %15

15:                                               ; preds = %.thread, %13, %7
  %16 = getelementptr inbounds i8, ptr %0, i64 80
  %17 = load ptr, ptr %16, align 8, !tbaa !19
  %.not = icmp eq ptr %17, null
  br i1 %.not, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %15
  %.05165 = getelementptr inbounds i8, ptr %17, i64 8
  %18 = load ptr, ptr %.05165, align 8, !tbaa !20
  %.not5766 = icmp eq ptr %18, null
  br i1 %.not5766, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %19 = phi ptr [ %23, %.lr.ph ], [ %18, %.preheader ]
  %.05167 = phi ptr [ %.051, %.lr.ph ], [ %.05165, %.preheader ]
  %20 = getelementptr inbounds i8, ptr %19, i64 112
  %21 = load i32, ptr %20, align 8
  %22 = and i32 %21, -16793601
  store i32 %22, ptr %20, align 8
  %.051 = getelementptr inbounds i8, ptr %.05167, i64 8
  %23 = load ptr, ptr %.051, align 8, !tbaa !20
  %.not57 = icmp eq ptr %23, null
  br i1 %.not57, label %.loopexit, label %.lr.ph, !llvm.loop !21

.loopexit:                                        ; preds = %.lr.ph, %.preheader, %15
  %24 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2616), align 8, !tbaa !23
  %25 = icmp eq i32 %24, 1
  br i1 %25, label %26, label %47

26:                                               ; preds = %.loopexit
  %27 = getelementptr inbounds i8, ptr %0, i64 40
  %28 = load ptr, ptr %27, align 8, !tbaa !24
  %.not58 = icmp eq ptr %28, null
  br i1 %.not58, label %29, label %47

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

43:                                               ; preds = %29
  %44 = getelementptr inbounds i8, ptr %0, i64 64
  %45 = load ptr, ptr %44, align 8, !tbaa !29
  %46 = tail call ptr @qh_facetcenter(ptr noundef %45) #4
  store ptr %46, ptr %27, align 8, !tbaa !24
  br label %47

47:                                               ; preds = %43, %29, %26, %.loopexit
  %48 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2464), align 8, !tbaa !30
  store ptr %48, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !31
  store ptr %48, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2488), align 8, !tbaa !32
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !33
  %50 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 %49, ptr %50, align 8, !tbaa !34
  %51 = getelementptr inbounds i8, ptr %0, i64 64
  %52 = load ptr, ptr %51, align 8, !tbaa !29
  %53 = getelementptr inbounds i8, ptr %52, i64 8
  %54 = load ptr, ptr %53, align 8, !tbaa !35
  %55 = call ptr @qh_makenew_nonsimplicial(ptr noundef %0, ptr noundef %54, ptr noundef nonnull %3) #4
  call void @qh_willdelete(ptr noundef %0, ptr noundef null) #4
  %.068 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !20
  %.not5969 = icmp eq ptr %.068, null
  br i1 %.not5969, label %.critedge, label %.lr.ph71

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

60:                                               ; preds = %.lr.ph71, %108
  %.070 = phi ptr [ %.068, %.lr.ph71 ], [ %.0, %108 ]
  %61 = getelementptr inbounds i8, ptr %.070, i64 56
  %62 = load ptr, ptr %61, align 8, !tbaa !36
  %.not60 = icmp eq ptr %62, null
  br i1 %.not60, label %.critedge, label %63

63:                                               ; preds = %60
  %64 = getelementptr inbounds i8, ptr %.070, i64 112
  %65 = load i32, ptr %64, align 8
  %66 = or i32 %65, 512
  %67 = getelementptr inbounds i8, ptr %.070, i64 32
  store ptr %0, ptr %67, align 8, !tbaa !35
  %68 = and i32 %66, -1073741825
  store i32 %68, ptr %64, align 8
  %69 = load i32, ptr %56, align 8
  %70 = and i32 %69, 131072
  %71 = and i32 %66, -1073872897
  %72 = or disjoint i32 %70, %71
  store i32 %72, ptr %64, align 8
  %73 = load i32, ptr %56, align 8
  %74 = and i32 %73, 524288
  %75 = and i32 %72, -1074266113
  %76 = or disjoint i32 %75, %74
  store i32 %76, ptr %64, align 8
  %77 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 568), align 8, !tbaa !37
  %.not62 = icmp eq i32 %77, 0
  br i1 %.not62, label %102, label %78

78:                                               ; preds = %63
  %79 = or i32 %76, 268435456
  store i32 %79, ptr %64, align 8
  %80 = load ptr, ptr %57, align 8, !tbaa !25
  %.not63 = icmp eq ptr %80, null
  br i1 %.not63, label %88, label %81

81:                                               ; preds = %78
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8, !tbaa !38
  %83 = call ptr @qh_memalloc(i32 noundef %82) #4
  %84 = getelementptr inbounds i8, ptr %.070, i64 24
  store ptr %83, ptr %84, align 8, !tbaa !25
  %85 = load ptr, ptr %57, align 8, !tbaa !25
  %86 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8, !tbaa !38
  %87 = sext i32 %86 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %83, ptr align 8 %85, i64 %87, i1 false)
  br label %88

88:                                               ; preds = %81, %78
  %89 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2616), align 8, !tbaa !23
  switch i32 %89, label %108 [
    i32 2, label %90
    i32 1, label %93
  ]

90:                                               ; preds = %88
  %91 = call ptr @qh_getcentrum(ptr noundef nonnull %.070) #4
  %92 = getelementptr inbounds i8, ptr %.070, i64 40
  store ptr %91, ptr %92, align 8, !tbaa !24
  br label %108

93:                                               ; preds = %88
  %94 = load ptr, ptr %58, align 8, !tbaa !24
  %.not64 = icmp eq ptr %94, null
  br i1 %.not64, label %108, label %95

95:                                               ; preds = %93
  %96 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2444), align 4, !tbaa !39
  %97 = call ptr @qh_memalloc(i32 noundef %96) #4
  %98 = getelementptr inbounds i8, ptr %.070, i64 40
  store ptr %97, ptr %98, align 8, !tbaa !24
  %99 = load ptr, ptr %58, align 8, !tbaa !24
  %100 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2444), align 4, !tbaa !39
  %101 = sext i32 %100 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %97, ptr align 8 %99, i64 %101, i1 false)
  br label %108

102:                                              ; preds = %63
  %103 = and i32 %76, -1342177281
  store i32 %103, ptr %64, align 8
  %104 = load ptr, ptr %57, align 8, !tbaa !25
  %105 = getelementptr inbounds i8, ptr %.070, i64 24
  store ptr %104, ptr %105, align 8, !tbaa !25
  %106 = load ptr, ptr %58, align 8, !tbaa !24
  %107 = getelementptr inbounds i8, ptr %.070, i64 40
  store ptr %106, ptr %107, align 8, !tbaa !24
  br label %108

108:                                              ; preds = %88, %90, %95, %93, %102
  %109 = getelementptr inbounds i8, ptr %.070, i64 8
  %110 = load <2 x double>, ptr %59, align 8, !tbaa !27
  store <2 x double> %110, ptr %109, align 8, !tbaa !27
  %.0 = load ptr, ptr %61, align 8, !tbaa !20
  %.not59 = icmp eq ptr %.0, null
  br i1 %.not59, label %.critedge, label %60, !llvm.loop !40

.critedge:                                        ; preds = %60, %108, %47
  %111 = call double @qh_matchnewfacets() #4
  %112 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1776), align 8, !tbaa !35
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1776), align 8, !tbaa !35
  %114 = load i32, ptr %3, align 4, !tbaa !5
  %115 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1792), align 8, !tbaa !35
  %116 = add nsw i32 %115, %114
  store i32 %116, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1792), align 8, !tbaa !35
  %117 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1784), align 8, !tbaa !35
  %118 = icmp slt i32 %117, %114
  br i1 %118, label %119, label %120

119:                                              ; preds = %.critedge
  store i32 %114, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1784), align 8, !tbaa !35
  br label %120

120:                                              ; preds = %119, %.critedge
  %121 = load ptr, ptr %1, align 8, !tbaa !20
  %.not61 = icmp eq ptr %121, null
  br i1 %.not61, label %122, label %124

122:                                              ; preds = %120
  %123 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2560), align 8, !tbaa !41
  store ptr %123, ptr %1, align 8, !tbaa !20
  br label %124

124:                                              ; preds = %122, %120
  store ptr null, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2560), align 8, !tbaa !41
  store ptr null, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2488), align 8, !tbaa !32
  call void @qh_update_vertexneighbors() #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_update_vertexneighbors() 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 double @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 136}
!10 = !{!"qhT", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !11, i64 24, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !11, i64 64, !11, i64 72, !6, i64 80, !6, i64 84, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !12, i64 104, !6, i64 112, !6, i64 116, !12, i64 120, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144, !6, i64 148, !6, i64 152, !11, i64 160, !11, i64 168, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 188, !11, i64 192, !11, i64 200, !6, i64 208, !6, i64 212, !11, i64 216, !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, !6, i64 296, !7, i64 300, !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, !6, i64 544, !11, i64 552, !6, i64 560, !6, i64 564, !6, i64 568, !6, i64 572, !6, i64 576, !6, i64 580, !6, i64 584, !6, i64 588, !11, i64 592, !6, i64 600, !12, i64 608, !12, i64 616, !6, i64 624, !6, i64 628, !6, i64 632, !6, i64 636, !6, i64 640, !12, i64 648, !6, i64 656, !12, i64 664, !6, i64 672, !7, i64 676, !6, i64 932, !7, i64 936, !7, i64 1192, !6, i64 1704, !6, i64 1708, !6, i64 1712, !6, i64 1716, !6, i64 1720, !6, i64 1724, !12, i64 1728, !12, i64 1736, !12, i64 1744, !12, 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, !11, i64 1856, !11, i64 1864, !12, i64 1872, !11, i64 1880, !11, i64 1888, !11, i64 1896, !11, i64 1904, !6, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !12, i64 2408, !12, i64 2416, !12, i64 2424, !12, i64 2432, !6, i64 2440, !6, i64 2444, !6, i64 2448, !12, i64 2456, !12, i64 2464, !12, i64 2472, !12, i64 2480, !12, i64 2488, !6, i64 2496, !6, i64 2500, !12, i64 2504, !6, i64 2512, !12, i64 2520, !6, i64 2528, !12, i64 2536, !12, i64 2544, !12, i64 2552, !12, i64 2560, !6, i64 2568, !6, i64 2572, !6, i64 2576, !6, i64 2580, !6, i64 2584, !6, i64 2588, !6, i64 2592, !6, i64 2596, !13, i64 2600, !6, i64 2608, !6, i64 2612, !6, i64 2616, !6, i64 2620, !6, i64 2624, !12, i64 2632, !12, i64 2640, !6, i64 2648, !6, i64 2652, !6, i64 2656, !11, i64 2664, !6, i64 2672, !11, i64 2680, !11, i64 2688, !11, i64 2696, !6, i64 2704, !6, i64 2708, !6, i64 2712, !6, i64 2716, !6, i64 2720, !11, i64 2728, !11, i64 2736, !6, i64 2744, !6, i64 2748, !6, i64 2752, !6, i64 2756, !6, i64 2760, !6, i64 2764, !11, i64 2768, !11, i64 2776, !6, i64 2784, !6, i64 2788, !6, i64 2792, !6, i64 2796, !12, i64 2800, !12, i64 2808, !12, i64 2816, !12, i64 2824, !12, i64 2832, !12, i64 2840, !12, i64 2848, !12, i64 2856, !12, i64 2864, !6, i64 2872, !12, i64 2880, !12, i64 2888, !6, i64 2896, !6, i64 2900, !6, i64 2904, !12, i64 2912, !11, i64 2920, !11, i64 2928, !11, i64 2936, !11, i64 2944, !6, i64 2952, !6, i64 2956, !6, i64 2960, !6, i64 2964, !6, i64 2968, !6, i64 2972, !12, i64 2976, !12, i64 2984, !6, i64 2992}
!11 = !{!"double", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !6, i64 2584}
!15 = !{!10, !6, i64 2596}
!16 = !{!10, !12, i64 2424}
!17 = !{!18, !6, i64 108}
!18 = !{!"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}
!19 = !{!18, !12, i64 80}
!20 = !{!12, !12, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!10, !6, i64 2616}
!24 = !{!18, !12, i64 40}
!25 = !{!18, !12, i64 24}
!26 = !{!10, !6, i64 632}
!27 = !{!11, !11, i64 0}
!28 = !{!10, !11, i64 1760}
!29 = !{!18, !12, i64 64}
!30 = !{!10, !12, i64 2464}
!31 = !{!10, !12, i64 2480}
!32 = !{!10, !12, i64 2488}
!33 = !{!10, !6, i64 2784}
!34 = !{!18, !6, i64 104}
!35 = !{!7, !7, i64 0}
!36 = !{!18, !12, i64 56}
!37 = !{!10, !6, i64 568}
!38 = !{!10, !6, i64 2440}
!39 = !{!10, !6, i64 2444}
!40 = distinct !{!40, !22}
!41 = !{!10, !12, i64 2560}


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