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

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

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }
%struct.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 }
%struct.mergeT = type { double, double, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }

@.str.212 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [112 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.217 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.219 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.220 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.221 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.222 = external hidden unnamed_addr constant [85 x i8], align 1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

27:                                               ; preds = %1
  store i32 1, ptr %19, align 4
  br label %649

28:                                               ; preds = %1
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.qhT, ptr %29, i32 0, i32 29
  %31 = load i32, ptr %30, align 8, !tbaa !18
  %32 = icmp sge i32 %31, 1
  br i1 %32, label %33, label %38

33:                                               ; preds = %28
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.qhT, ptr %35, i32 0, i32 158
  %37 = load ptr, ptr %36, align 8, !tbaa !19
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %34, ptr noundef %37, i32 noundef 1034, ptr noundef @.str.212)
  br label %38

38:                                               ; preds = %33, %28
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.qhT, ptr %39, i32 0, i32 110
  %41 = load i32, ptr %40, align 8, !tbaa !20
  %42 = icmp eq i32 %41, 2
  br i1 %42, label %43, label %44

43:                                               ; preds = %38
  store i32 1, ptr %19, align 4
  br label %649

44:                                               ; preds = %38
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.qhT, ptr %45, i32 0, i32 103
  %47 = load i32, ptr %46, align 4, !tbaa !21
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %52

49:                                               ; preds = %44
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_clearcenters(ptr noundef %50, i32 noundef 1)
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_vertexneighbors(ptr noundef %51)
  br label %52

52:                                               ; preds = %49, %44
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.qhT, ptr %53, i32 0, i32 48
  store i32 0, ptr %54, align 4, !tbaa !9
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.qhT, ptr %55, i32 0, i32 217
  %57 = load i32, ptr %56, align 8, !tbaa !22
  %58 = add i32 %57, 1
  store i32 %58, ptr %56, align 8, !tbaa !22
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_initmergesets(ptr noundef %59)
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.qhT, ptr %60, i32 0, i32 176
  %62 = load ptr, ptr %61, align 8, !tbaa !23
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.qhT, ptr %63, i32 0, i32 177
  store ptr %62, ptr %64, align 8, !tbaa !24
  %65 = load ptr, ptr %2, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.qhT, ptr %65, i32 0, i32 163
  %67 = load ptr, ptr %66, align 8, !tbaa !25
  store ptr %67, ptr %3, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %104, %52
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %76

71:                                               ; preds = %68
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.facetT, ptr %72, i32 0, i32 7
  %74 = load ptr, ptr %73, align 8, !tbaa !26
  %75 = icmp ne ptr %74, null
  br label %76

76:                                               ; preds = %71, %68
  %77 = phi i1 [ false, %68 ], [ %75, %71 ]
  br i1 %77, label %78, label %106

78:                                               ; preds = %76
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.facetT, ptr %79, i32 0, i32 7
  %81 = load ptr, ptr %80, align 8, !tbaa !26
  store ptr %81, ptr %4, align 8, !tbaa !5
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.facetT, ptr %82, i32 0, i32 15
  %84 = load i32, ptr %83, align 8
  %85 = lshr i32 %84, 11
  %86 = and i32 %85, 1
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %95, label %88

88:                                               ; preds = %78
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.facetT, ptr %89, i32 0, i32 15
  %91 = load i32, ptr %90, align 8
  %92 = lshr i32 %91, 13
  %93 = and i32 %92, 1
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %88, %78
  br label %104

96:                                               ; preds = %88
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = icmp ne ptr %97, null
  br i1 %98, label %101, label %99

99:                                               ; preds = %96
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %100, ptr %10, align 8, !tbaa !5
  br label %101

101:                                              ; preds = %99, %96
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_triangulate_facet(ptr noundef %102, ptr noundef %103, ptr noundef %13)
  br label %104

104:                                              ; preds = %101, %95
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %105, ptr %3, align 8, !tbaa !5
  br label %68, !llvm.loop !28

106:                                              ; preds = %76
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.qhT, ptr %107, i32 0, i32 29
  %109 = load i32, ptr %108, align 8, !tbaa !18
  %110 = icmp sge i32 %109, 2
  br i1 %110, label %111, label %125

111:                                              ; preds = %106
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = load ptr, ptr %2, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.qhT, ptr %113, i32 0, i32 158
  %115 = load ptr, ptr %114, align 8, !tbaa !19
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = icmp ne ptr %116, null
  br i1 %117, label %118, label %122

118:                                              ; preds = %111
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.facetT, ptr %119, i32 0, i32 14
  %121 = load i32, ptr %120, align 4, !tbaa !30
  br label %123

122:                                              ; preds = %111
  br label %123

123:                                              ; preds = %122, %118
  %124 = phi i32 [ %121, %118 ], [ -1, %122 ]
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %112, ptr noundef %115, i32 noundef 2047, ptr noundef @.str.213, i32 noundef %124)
  br label %125

125:                                              ; preds = %123, %106
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %126, ptr %3, align 8, !tbaa !5
  br label %127

127:                                              ; preds = %198, %125
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = icmp ne ptr %128, null
  br i1 %129, label %130, label %135

130:                                              ; preds = %127
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.facetT, ptr %131, i32 0, i32 7
  %133 = load ptr, ptr %132, align 8, !tbaa !26
  %134 = icmp ne ptr %133, null
  br label %135

135:                                              ; preds = %130, %127
  %136 = phi i1 [ false, %127 ], [ %134, %130 ]
  br i1 %136, label %137, label %200

137:                                              ; preds = %135
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.facetT, ptr %138, i32 0, i32 7
  %140 = load ptr, ptr %139, align 8, !tbaa !26
  store ptr %140, ptr %4, align 8, !tbaa !5
  %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, 11
  %145 = and i32 %144, 1
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %148

147:                                              ; preds = %137
  br label %198

148:                                              ; preds = %137
  %149 = load ptr, ptr %3, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.facetT, ptr %149, i32 0, i32 9
  %151 = load ptr, ptr %150, align 8, !tbaa !31
  %152 = icmp ne ptr %151, null
  br i1 %152, label %153, label %174

153:                                              ; preds = %148
  %154 = load ptr, ptr %2, align 8, !tbaa !5
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.facetT, ptr %155, i32 0, i32 9
  %157 = load ptr, ptr %156, align 8, !tbaa !31
  %158 = call i32 @qh_setsize(ptr noundef %154, ptr noundef %157)
  %159 = icmp sgt i32 %158, 0
  br i1 %159, label %160, label %170

160:                                              ; preds = %153
  %161 = load ptr, ptr %2, align 8, !tbaa !5
  %162 = load ptr, ptr %2, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.qhT, ptr %162, i32 0, i32 158
  %164 = load ptr, ptr %163, align 8, !tbaa !19
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.facetT, ptr %165, i32 0, i32 14
  %167 = load i32, ptr %166, align 4, !tbaa !30
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %161, ptr noundef %164, i32 noundef 6161, ptr noundef @.str.214, i32 noundef %167)
  %168 = load ptr, ptr %2, align 8, !tbaa !5
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %168, i32 noundef 5, ptr noundef %169, ptr noundef null)
  br label %170

170:                                              ; preds = %160, %153
  %171 = load ptr, ptr %2, align 8, !tbaa !5
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.facetT, ptr %172, i32 0, i32 9
  call void @qh_setfree(ptr noundef %171, ptr noundef %173)
  br label %174

174:                                              ; preds = %170, %148
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.facetT, ptr %175, i32 0, i32 8
  %177 = load ptr, ptr %176, align 8, !tbaa !32
  %178 = getelementptr inbounds %struct.setT, ptr %177, i32 0, i32 1
  %179 = getelementptr inbounds [1 x %union.setelemT], ptr %178, i64 0, i64 0
  %180 = load ptr, ptr %179, align 8, !tbaa !33
  %181 = load ptr, ptr %3, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.facetT, ptr %181, i32 0, i32 8
  %183 = load ptr, ptr %182, align 8, !tbaa !32
  %184 = getelementptr inbounds %struct.setT, ptr %183, i32 0, i32 1
  %185 = getelementptr inbounds [1 x %union.setelemT], ptr %184, i64 0, i64 1
  %186 = load ptr, ptr %185, align 8, !tbaa !33
  %187 = icmp eq ptr %180, %186
  br i1 %187, label %188, label %197

188:                                              ; preds = %174
  %189 = load ptr, ptr %2, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.qhT, ptr %189, i32 0, i32 258
  %191 = getelementptr inbounds %struct.qhstatT, ptr %190, i32 0, i32 0
  %192 = getelementptr inbounds [249 x %union.intrealT], ptr %191, i64 0, i64 227
  %193 = load i32, ptr %192, align 8, !tbaa !33
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %192, align 8, !tbaa !33
  %195 = load ptr, ptr %2, align 8, !tbaa !5
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_triangulate_null(ptr noundef %195, ptr noundef %196)
  br label %197

197:                                              ; preds = %188, %174
  br label %198

198:                                              ; preds = %197, %147
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %199, ptr %3, align 8, !tbaa !5
  br label %127, !llvm.loop !34

200:                                              ; preds = %135
  %201 = load ptr, ptr %2, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.qhT, ptr %201, i32 0, i32 29
  %203 = load i32, ptr %202, align 8, !tbaa !18
  %204 = icmp sge i32 %203, 2
  br i1 %204, label %205, label %215

205:                                              ; preds = %200
  %206 = load ptr, ptr %2, align 8, !tbaa !5
  %207 = load ptr, ptr %2, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.qhT, ptr %207, i32 0, i32 158
  %209 = load ptr, ptr %208, align 8, !tbaa !19
  %210 = load ptr, ptr %2, align 8, !tbaa !5
  %211 = load ptr, ptr %2, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.qhT, ptr %211, i32 0, i32 222
  %213 = load ptr, ptr %212, align 8, !tbaa !35
  %214 = call i32 @qh_setsize(ptr noundef %210, ptr noundef %213)
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %206, ptr noundef %209, i32 noundef 2048, ptr noundef @.str.215, i32 noundef %214)
  br label %215

215:                                              ; preds = %205, %200
  %216 = load ptr, ptr %2, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.qhT, ptr %216, i32 0, i32 164
  %218 = load ptr, ptr %217, align 8, !tbaa !36
  %219 = load ptr, ptr %2, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.qhT, ptr %219, i32 0, i32 167
  store ptr %218, ptr %220, align 8, !tbaa !37
  br label %221

221:                                              ; preds = %251, %215
  %222 = load ptr, ptr %2, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.qhT, ptr %222, i32 0, i32 222
  %224 = load ptr, ptr %223, align 8, !tbaa !35
  %225 = call ptr @qh_setdellast(ptr noundef %224)
  store ptr %225, ptr %14, align 8, !tbaa !5
  %226 = icmp ne ptr %225, null
  br i1 %226, label %227, label %252

227:                                              ; preds = %221
  %228 = load ptr, ptr %14, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.mergeT, ptr %228, i32 0, i32 2
  %230 = load ptr, ptr %229, align 8, !tbaa !38
  store ptr %230, ptr %8, align 8, !tbaa !5
  %231 = load ptr, ptr %14, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.mergeT, ptr %231, i32 0, i32 3
  %233 = load ptr, ptr %232, align 8, !tbaa !40
  store ptr %233, ptr %9, align 8, !tbaa !5
  %234 = load ptr, ptr %14, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.mergeT, ptr %234, i32 0, i32 8
  %236 = load i32, ptr %235, align 8, !tbaa !41
  store i32 %236, ptr %15, align 4, !tbaa !16
  %237 = load ptr, ptr %2, align 8, !tbaa !5
  %238 = load ptr, ptr %14, align 8, !tbaa !5
  call void @qh_memfree(ptr noundef %237, ptr noundef %238, i32 noundef 72)
  %239 = load i32, ptr %15, align 4, !tbaa !16
  %240 = icmp eq i32 %239, 12
  br i1 %240, label %241, label %251

241:                                              ; preds = %227
  %242 = load ptr, ptr %2, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.qhT, ptr %242, i32 0, i32 258
  %244 = getelementptr inbounds %struct.qhstatT, ptr %243, i32 0, i32 0
  %245 = getelementptr inbounds [249 x %union.intrealT], ptr %244, i64 0, i64 226
  %246 = load i32, ptr %245, align 8, !tbaa !33
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %245, align 8, !tbaa !33
  %248 = load ptr, ptr %2, align 8, !tbaa !5
  %249 = load ptr, ptr %8, align 8, !tbaa !5
  %250 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_triangulate_mirror(ptr noundef %248, ptr noundef %249, ptr noundef %250)
  br label %251

251:                                              ; preds = %241, %227
  br label %221, !llvm.loop !42

252:                                              ; preds = %221
  %253 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_freemergesets(ptr noundef %253)
  %254 = load ptr, ptr %2, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.qhT, ptr %254, i32 0, i32 29
  %256 = load i32, ptr %255, align 8, !tbaa !18
  %257 = icmp sge i32 %256, 2
  br i1 %257, label %258, label %272

258:                                              ; preds = %252
  %259 = load ptr, ptr %2, align 8, !tbaa !5
  %260 = load ptr, ptr %2, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.qhT, ptr %260, i32 0, i32 158
  %262 = load ptr, ptr %261, align 8, !tbaa !19
  %263 = load ptr, ptr %13, align 8, !tbaa !5
  %264 = icmp ne ptr %263, null
  br i1 %264, label %265, label %269

265:                                              ; preds = %258
  %266 = load ptr, ptr %13, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.vertexT, ptr %266, i32 0, i32 4
  %268 = load i32, ptr %267, align 8, !tbaa !43
  br label %270

269:                                              ; preds = %258
  br label %270

270:                                              ; preds = %269, %265
  %271 = phi i32 [ %268, %265 ], [ -1, %269 ]
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %259, ptr noundef %262, i32 noundef 2049, ptr noundef @.str.216, i32 noundef %271)
  br label %272

272:                                              ; preds = %270, %252
  %273 = load ptr, ptr %13, align 8, !tbaa !5
  %274 = load ptr, ptr %2, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.qhT, ptr %274, i32 0, i32 177
  store ptr %273, ptr %275, align 8, !tbaa !24
  %276 = load ptr, ptr %2, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.qhT, ptr %276, i32 0, i32 167
  store ptr null, ptr %277, align 8, !tbaa !37
  %278 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_update_vertexneighbors(ptr noundef %278)
  %279 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_resetlists(ptr noundef %279, i32 noundef 0, i32 noundef 0)
  %280 = load ptr, ptr %2, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.qhT, ptr %280, i32 0, i32 29
  %282 = load i32, ptr %281, align 8, !tbaa !18
  %283 = icmp sge i32 %282, 2
  br i1 %283, label %284, label %298

284:                                              ; preds = %272
  %285 = load ptr, ptr %2, align 8, !tbaa !5
  %286 = load ptr, ptr %2, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.qhT, ptr %286, i32 0, i32 158
  %288 = load ptr, ptr %287, align 8, !tbaa !19
  %289 = load ptr, ptr %10, align 8, !tbaa !5
  %290 = icmp ne ptr %289, null
  br i1 %290, label %291, label %295

291:                                              ; preds = %284
  %292 = load ptr, ptr %10, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.facetT, ptr %292, i32 0, i32 14
  %294 = load i32, ptr %293, align 4, !tbaa !30
  br label %296

295:                                              ; preds = %284
  br label %296

296:                                              ; preds = %295, %291
  %297 = phi i32 [ %294, %291 ], [ -1, %295 ]
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %285, ptr noundef %288, i32 noundef 2050, ptr noundef @.str.217, i32 noundef %297)
  br label %298

298:                                              ; preds = %296, %272
  %299 = load ptr, ptr %2, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.qhT, ptr %299, i32 0, i32 29
  %301 = load i32, ptr %300, align 8, !tbaa !18
  %302 = icmp sge i32 %301, 2
  br i1 %302, label %303, label %308

303:                                              ; preds = %298
  %304 = load ptr, ptr %2, align 8, !tbaa !5
  %305 = load ptr, ptr %2, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.qhT, ptr %305, i32 0, i32 158
  %307 = load ptr, ptr %306, align 8, !tbaa !19
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %304, ptr noundef %307, i32 noundef 2051, ptr noundef @.str.218)
  br label %308

308:                                              ; preds = %303, %298
  %309 = load ptr, ptr %10, align 8, !tbaa !5
  %310 = icmp ne ptr %309, null
  br i1 %310, label %311, label %424

311:                                              ; preds = %308
  %312 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %312, ptr %3, align 8, !tbaa !5
  br label %313

313:                                              ; preds = %419, %311
  %314 = load ptr, ptr %3, align 8, !tbaa !5
  %315 = icmp ne ptr %314, null
  br i1 %315, label %316, label %321

316:                                              ; preds = %313
  %317 = load ptr, ptr %3, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.facetT, ptr %317, i32 0, i32 7
  %319 = load ptr, ptr %318, align 8, !tbaa !26
  %320 = icmp ne ptr %319, null
  br label %321

321:                                              ; preds = %316, %313
  %322 = phi i1 [ false, %313 ], [ %320, %316 ]
  br i1 %322, label %323, label %423

323:                                              ; preds = %321
  %324 = load ptr, ptr %3, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.facetT, ptr %324, i32 0, i32 15
  %326 = load i32, ptr %325, align 8
  %327 = lshr i32 %326, 9
  %328 = and i32 %327, 1
  %329 = icmp ne i32 %328, 0
  br i1 %329, label %330, label %418

330:                                              ; preds = %323
  %331 = load ptr, ptr %3, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.facetT, ptr %331, i32 0, i32 15
  %333 = load i32, ptr %332, align 8
  %334 = lshr i32 %333, 11
  %335 = and i32 %334, 1
  %336 = icmp ne i32 %335, 0
  br i1 %336, label %418, label %337

337:                                              ; preds = %330
  store ptr null, ptr %6, align 8, !tbaa !5
  %338 = load ptr, ptr %3, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.facetT, ptr %338, i32 0, i32 10
  %340 = load ptr, ptr %339, align 8, !tbaa !45
  %341 = icmp ne ptr %340, null
  br i1 %341, label %342, label %417

342:                                              ; preds = %337
  store i32 0, ptr %16, align 4, !tbaa !16
  %343 = load ptr, ptr %3, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.facetT, ptr %343, i32 0, i32 10
  %345 = load ptr, ptr %344, align 8, !tbaa !45
  %346 = getelementptr inbounds %struct.setT, ptr %345, i32 0, i32 1
  %347 = getelementptr inbounds [1 x %union.setelemT], ptr %346, i64 0, i64 0
  %348 = load ptr, ptr %347, align 8, !tbaa !33
  store ptr %348, ptr %6, align 8, !tbaa !5
  %349 = load ptr, ptr %2, align 8, !tbaa !5
  %350 = load ptr, ptr %3, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.facetT, ptr %350, i32 0, i32 10
  %352 = load ptr, ptr %351, align 8, !tbaa !45
  %353 = call i32 @qh_setsize(ptr noundef %349, ptr noundef %352)
  store i32 %353, ptr %17, align 4, !tbaa !16
  br label %354

354:                                              ; preds = %406, %342
  %355 = load i32, ptr %16, align 4, !tbaa !16
  %356 = load i32, ptr %17, align 4, !tbaa !16
  %357 = icmp slt i32 %355, %356
  br i1 %357, label %358, label %416

358:                                              ; preds = %354
  %359 = load i32, ptr %16, align 4, !tbaa !16
  %360 = icmp eq i32 %359, 0
  br i1 %360, label %361, label %375

361:                                              ; preds = %358
  %362 = load ptr, ptr %6, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.facetT, ptr %362, i32 0, i32 15
  %364 = load i32, ptr %363, align 8
  %365 = lshr i32 %364, 9
  %366 = and i32 %365, 1
  %367 = icmp ne i32 %366, 0
  br i1 %367, label %368, label %372

368:                                              ; preds = %361
  %369 = load ptr, ptr %6, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.facetT, ptr %369, i32 0, i32 4
  %371 = load ptr, ptr %370, align 8, !tbaa !33
  store ptr %371, ptr %11, align 8, !tbaa !5
  br label %374

372:                                              ; preds = %361
  %373 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %373, ptr %11, align 8, !tbaa !5
  br label %374

374:                                              ; preds = %372, %368
  br label %405

375:                                              ; preds = %358
  %376 = load ptr, ptr %6, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.facetT, ptr %376, i32 0, i32 15
  %378 = load i32, ptr %377, align 8
  %379 = lshr i32 %378, 9
  %380 = and i32 %379, 1
  %381 = icmp ne i32 %380, 0
  br i1 %381, label %382, label %386

382:                                              ; preds = %375
  %383 = load ptr, ptr %6, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.facetT, ptr %383, i32 0, i32 4
  %385 = load ptr, ptr %384, align 8, !tbaa !33
  store ptr %385, ptr %12, align 8, !tbaa !5
  br label %388

386:                                              ; preds = %375
  %387 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %387, ptr %12, align 8, !tbaa !5
  br label %388

388:                                              ; preds = %386, %382
  %389 = load ptr, ptr %11, align 8, !tbaa !5
  %390 = load ptr, ptr %12, align 8, !tbaa !5
  %391 = icmp eq ptr %389, %390
  br i1 %391, label %392, label %404

392:                                              ; preds = %388
  %393 = load ptr, ptr %2, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.qhT, ptr %393, i32 0, i32 258
  %395 = getelementptr inbounds %struct.qhstatT, ptr %394, i32 0, i32 0
  %396 = getelementptr inbounds [249 x %union.intrealT], ptr %395, i64 0, i64 225
  %397 = load i32, ptr %396, align 8, !tbaa !33
  %398 = add nsw i32 %397, 1
  store i32 %398, ptr %396, align 8, !tbaa !33
  %399 = load ptr, ptr %3, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.facetT, ptr %399, i32 0, i32 15
  %401 = load i32, ptr %400, align 8
  %402 = and i32 %401, -1073741825
  %403 = or i32 %402, 1073741824
  store i32 %403, ptr %400, align 8
  br label %416

404:                                              ; preds = %388
  br label %405

405:                                              ; preds = %404, %374
  br label %406

406:                                              ; preds = %405
  %407 = load ptr, ptr %3, align 8, !tbaa !5
  %408 = getelementptr inbounds %struct.facetT, ptr %407, i32 0, i32 10
  %409 = load ptr, ptr %408, align 8, !tbaa !45
  %410 = getelementptr inbounds %struct.setT, ptr %409, i32 0, i32 1
  %411 = load i32, ptr %16, align 4, !tbaa !16
  %412 = add nsw i32 %411, 1
  store i32 %412, ptr %16, align 4, !tbaa !16
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds [1 x %union.setelemT], ptr %410, i64 0, i64 %413
  %415 = load ptr, ptr %414, align 8, !tbaa !33
  store ptr %415, ptr %6, align 8, !tbaa !5
  br label %354, !llvm.loop !46

416:                                              ; preds = %392, %354
  br label %417

417:                                              ; preds = %416, %337
  br label %418

418:                                              ; preds = %417, %330, %323
  br label %419

419:                                              ; preds = %418
  %420 = load ptr, ptr %3, align 8, !tbaa !5
  %421 = getelementptr inbounds %struct.facetT, ptr %420, i32 0, i32 7
  %422 = load ptr, ptr %421, align 8, !tbaa !26
  store ptr %422, ptr %3, align 8, !tbaa !5
  br label %313, !llvm.loop !47

423:                                              ; preds = %321
  br label %424

424:                                              ; preds = %423, %308
  %425 = load ptr, ptr %2, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.qhT, ptr %425, i32 0, i32 29
  %427 = load i32, ptr %426, align 8, !tbaa !18
  %428 = icmp sge i32 %427, 4
  br i1 %428, label %429, label %431

429:                                              ; preds = %424
  %430 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_printlists(ptr noundef %430)
  br label %431

431:                                              ; preds = %429, %424
  %432 = load ptr, ptr %2, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.qhT, ptr %432, i32 0, i32 29
  %434 = load i32, ptr %433, align 8, !tbaa !18
  %435 = icmp sge i32 %434, 2
  br i1 %435, label %436, label %441

436:                                              ; preds = %431
  %437 = load ptr, ptr %2, align 8, !tbaa !5
  %438 = load ptr, ptr %2, align 8, !tbaa !5
  %439 = getelementptr inbounds %struct.qhT, ptr %438, i32 0, i32 158
  %440 = load ptr, ptr %439, align 8, !tbaa !19
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %437, ptr noundef %440, i32 noundef 2052, ptr noundef @.str.219)
  br label %441

441:                                              ; preds = %436, %431
  store ptr null, ptr %5, align 8, !tbaa !5
  store ptr null, ptr %7, align 8, !tbaa !5
  %442 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %442, ptr %3, align 8, !tbaa !5
  br label %443

443:                                              ; preds = %605, %441
  %444 = load ptr, ptr %3, align 8, !tbaa !5
  %445 = icmp ne ptr %444, null
  br i1 %445, label %446, label %451

446:                                              ; preds = %443
  %447 = load ptr, ptr %3, align 8, !tbaa !5
  %448 = getelementptr inbounds %struct.facetT, ptr %447, i32 0, i32 7
  %449 = load ptr, ptr %448, align 8, !tbaa !26
  %450 = icmp ne ptr %449, null
  br label %451

451:                                              ; preds = %446, %443
  %452 = phi i1 [ false, %443 ], [ %450, %446 ]
  br i1 %452, label %453, label %607

453:                                              ; preds = %451
  %454 = load ptr, ptr %3, align 8, !tbaa !5
  %455 = getelementptr inbounds %struct.facetT, ptr %454, i32 0, i32 7
  %456 = load ptr, ptr %455, align 8, !tbaa !26
  store ptr %456, ptr %4, align 8, !tbaa !5
  %457 = load ptr, ptr %3, align 8, !tbaa !5
  %458 = getelementptr inbounds %struct.facetT, ptr %457, i32 0, i32 15
  %459 = load i32, ptr %458, align 8
  %460 = lshr i32 %459, 11
  %461 = and i32 %460, 1
  %462 = icmp ne i32 %461, 0
  br i1 %462, label %463, label %506

463:                                              ; preds = %453
  %464 = load ptr, ptr %3, align 8, !tbaa !5
  %465 = getelementptr inbounds %struct.facetT, ptr %464, i32 0, i32 15
  %466 = load i32, ptr %465, align 8
  %467 = lshr i32 %466, 9
  %468 = and i32 %467, 1
  %469 = icmp ne i32 %468, 0
  br i1 %469, label %470, label %477

470:                                              ; preds = %463
  %471 = load ptr, ptr %2, align 8, !tbaa !5
  %472 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_delfacet(ptr noundef %471, ptr noundef %472)
  %473 = load ptr, ptr %2, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.qhT, ptr %473, i32 0, i32 168
  %475 = load i32, ptr %474, align 8, !tbaa !48
  %476 = add nsw i32 %475, -1
  store i32 %476, ptr %474, align 8, !tbaa !48
  br label %505

477:                                              ; preds = %463
  %478 = load ptr, ptr %7, align 8, !tbaa !5
  %479 = icmp ne ptr %478, null
  br i1 %479, label %480, label %503

480:                                              ; preds = %477
  %481 = load ptr, ptr %5, align 8, !tbaa !5
  %482 = icmp ne ptr %481, null
  br i1 %482, label %503, label %483

483:                                              ; preds = %480
  %484 = load ptr, ptr %2, align 8, !tbaa !5
  %485 = getelementptr inbounds %struct.qhT, ptr %484, i32 0, i32 29
  %486 = load i32, ptr %485, align 8, !tbaa !18
  %487 = icmp sge i32 %486, 2
  br i1 %487, label %488, label %496

488:                                              ; preds = %483
  %489 = load ptr, ptr %2, align 8, !tbaa !5
  %490 = load ptr, ptr %2, align 8, !tbaa !5
  %491 = getelementptr inbounds %struct.qhT, ptr %490, i32 0, i32 158
  %492 = load ptr, ptr %491, align 8, !tbaa !19
  %493 = load ptr, ptr %7, align 8, !tbaa !5
  %494 = getelementptr inbounds %struct.facetT, ptr %493, i32 0, i32 14
  %495 = load i32, ptr %494, align 4, !tbaa !30
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %489, ptr noundef %492, i32 noundef 2053, ptr noundef @.str.220, i32 noundef %495)
  br label %496

496:                                              ; preds = %488, %483
  %497 = load ptr, ptr %2, align 8, !tbaa !5
  %498 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_delfacet(ptr noundef %497, ptr noundef %498)
  %499 = load ptr, ptr %2, align 8, !tbaa !5
  %500 = getelementptr inbounds %struct.qhT, ptr %499, i32 0, i32 168
  %501 = load i32, ptr %500, align 8, !tbaa !48
  %502 = add nsw i32 %501, -1
  store i32 %502, ptr %500, align 8, !tbaa !48
  br label %503

503:                                              ; preds = %496, %480, %477
  %504 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %504, ptr %7, align 8, !tbaa !5
  store ptr null, ptr %5, align 8, !tbaa !5
  br label %505

505:                                              ; preds = %503, %470
  br label %599

506:                                              ; preds = %453
  %507 = load ptr, ptr %3, align 8, !tbaa !5
  %508 = getelementptr inbounds %struct.facetT, ptr %507, i32 0, i32 15
  %509 = load i32, ptr %508, align 8
  %510 = lshr i32 %509, 9
  %511 = and i32 %510, 1
  %512 = icmp ne i32 %511, 0
  br i1 %512, label %513, label %598

513:                                              ; preds = %506
  %514 = load ptr, ptr %3, align 8, !tbaa !5
  %515 = getelementptr inbounds %struct.facetT, ptr %514, i32 0, i32 4
  %516 = load ptr, ptr %515, align 8, !tbaa !33
  %517 = load ptr, ptr %7, align 8, !tbaa !5
  %518 = icmp ne ptr %516, %517
  br i1 %518, label %522, label %519

519:                                              ; preds = %513
  %520 = load ptr, ptr %7, align 8, !tbaa !5
  %521 = icmp eq ptr %520, null
  br i1 %521, label %522, label %542

522:                                              ; preds = %519, %513
  %523 = load ptr, ptr %2, align 8, !tbaa !5
  %524 = load ptr, ptr %2, align 8, !tbaa !5
  %525 = getelementptr inbounds %struct.qhT, ptr %524, i32 0, i32 158
  %526 = load ptr, ptr %525, align 8, !tbaa !19
  %527 = load ptr, ptr %3, align 8, !tbaa !5
  %528 = getelementptr inbounds %struct.facetT, ptr %527, i32 0, i32 14
  %529 = load i32, ptr %528, align 4, !tbaa !30
  %530 = load ptr, ptr %7, align 8, !tbaa !5
  %531 = icmp ne ptr %530, null
  br i1 %531, label %532, label %536

532:                                              ; preds = %522
  %533 = load ptr, ptr %7, align 8, !tbaa !5
  %534 = getelementptr inbounds %struct.facetT, ptr %533, i32 0, i32 14
  %535 = load i32, ptr %534, align 4, !tbaa !30
  br label %537

536:                                              ; preds = %522
  br label %537

537:                                              ; preds = %536, %532
  %538 = phi i32 [ %535, %532 ], [ -1, %536 ]
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %523, ptr noundef %526, i32 noundef 6162, ptr noundef @.str.221, i32 noundef %529, i32 noundef %538)
  %539 = load ptr, ptr %2, align 8, !tbaa !5
  %540 = load ptr, ptr %3, align 8, !tbaa !5
  %541 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_errexit2(ptr noundef %539, i32 noundef 5, ptr noundef %540, ptr noundef %541)
  br label %542

542:                                              ; preds = %537, %519
  %543 = load ptr, ptr %5, align 8, !tbaa !5
  %544 = icmp ne ptr %543, null
  br i1 %544, label %545, label %549

545:                                              ; preds = %542
  %546 = load ptr, ptr %5, align 8, !tbaa !5
  %547 = load ptr, ptr %3, align 8, !tbaa !5
  %548 = getelementptr inbounds %struct.facetT, ptr %547, i32 0, i32 4
  store ptr %546, ptr %548, align 8, !tbaa !33
  br label %597

549:                                              ; preds = %542
  %550 = load ptr, ptr %3, align 8, !tbaa !5
  %551 = getelementptr inbounds %struct.facetT, ptr %550, i32 0, i32 15
  %552 = load i32, ptr %551, align 8
  %553 = lshr i32 %552, 30
  %554 = and i32 %553, 1
  %555 = icmp ne i32 %554, 0
  br i1 %555, label %596, label %556

556:                                              ; preds = %549
  %557 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %557, ptr %5, align 8, !tbaa !5
  %558 = load ptr, ptr %7, align 8, !tbaa !5
  %559 = getelementptr inbounds %struct.facetT, ptr %558, i32 0, i32 7
  %560 = load ptr, ptr %559, align 8, !tbaa !26
  store ptr %560, ptr %4, align 8, !tbaa !5
  %561 = load ptr, ptr %3, align 8, !tbaa !5
  %562 = getelementptr inbounds %struct.facetT, ptr %561, i32 0, i32 15
  %563 = load i32, ptr %562, align 8
  %564 = and i32 %563, -268435457
  %565 = or i32 %564, 268435456
  store i32 %565, ptr %562, align 8
  %566 = load ptr, ptr %7, align 8, !tbaa !5
  %567 = getelementptr inbounds %struct.facetT, ptr %566, i32 0, i32 12
  %568 = load ptr, ptr %567, align 8, !tbaa !49
  %569 = load ptr, ptr %3, align 8, !tbaa !5
  %570 = getelementptr inbounds %struct.facetT, ptr %569, i32 0, i32 12
  store ptr %568, ptr %570, align 8, !tbaa !49
  %571 = load ptr, ptr %7, align 8, !tbaa !5
  %572 = getelementptr inbounds %struct.facetT, ptr %571, i32 0, i32 11
  %573 = load ptr, ptr %572, align 8, !tbaa !50
  %574 = load ptr, ptr %3, align 8, !tbaa !5
  %575 = getelementptr inbounds %struct.facetT, ptr %574, i32 0, i32 11
  store ptr %573, ptr %575, align 8, !tbaa !50
  %576 = load ptr, ptr %7, align 8, !tbaa !5
  %577 = getelementptr inbounds %struct.facetT, ptr %576, i32 0, i32 12
  store ptr null, ptr %577, align 8, !tbaa !49
  %578 = load ptr, ptr %7, align 8, !tbaa !5
  %579 = getelementptr inbounds %struct.facetT, ptr %578, i32 0, i32 11
  store ptr null, ptr %579, align 8, !tbaa !50
  %580 = load ptr, ptr %2, align 8, !tbaa !5
  %581 = getelementptr inbounds %struct.qhT, ptr %580, i32 0, i32 98
  %582 = load i32, ptr %581, align 8, !tbaa !51
  %583 = icmp ne i32 %582, 0
  br i1 %583, label %589, label %584

584:                                              ; preds = %556
  %585 = load ptr, ptr %7, align 8, !tbaa !5
  %586 = getelementptr inbounds %struct.facetT, ptr %585, i32 0, i32 5
  store ptr null, ptr %586, align 8, !tbaa !52
  %587 = load ptr, ptr %7, align 8, !tbaa !5
  %588 = getelementptr inbounds %struct.facetT, ptr %587, i32 0, i32 3
  store ptr null, ptr %588, align 8, !tbaa !53
  br label %589

589:                                              ; preds = %584, %556
  %590 = load ptr, ptr %2, align 8, !tbaa !5
  %591 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_delfacet(ptr noundef %590, ptr noundef %591)
  %592 = load ptr, ptr %2, align 8, !tbaa !5
  %593 = getelementptr inbounds %struct.qhT, ptr %592, i32 0, i32 168
  %594 = load i32, ptr %593, align 8, !tbaa !48
  %595 = add nsw i32 %594, -1
  store i32 %595, ptr %593, align 8, !tbaa !48
  br label %596

596:                                              ; preds = %589, %549
  br label %597

597:                                              ; preds = %596, %545
  br label %598

598:                                              ; preds = %597, %506
  br label %599

599:                                              ; preds = %598, %505
  %600 = load ptr, ptr %3, align 8, !tbaa !5
  %601 = getelementptr inbounds %struct.facetT, ptr %600, i32 0, i32 15
  %602 = load i32, ptr %601, align 8
  %603 = and i32 %602, -1073741825
  %604 = or i32 %603, 0
  store i32 %604, ptr %601, align 8
  br label %605

605:                                              ; preds = %599
  %606 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %606, ptr %3, align 8, !tbaa !5
  br label %443, !llvm.loop !54

607:                                              ; preds = %451
  %608 = load ptr, ptr %7, align 8, !tbaa !5
  %609 = icmp ne ptr %608, null
  br i1 %609, label %610, label %633

610:                                              ; preds = %607
  %611 = load ptr, ptr %5, align 8, !tbaa !5
  %612 = icmp ne ptr %611, null
  br i1 %612, label %633, label %613

613:                                              ; preds = %610
  %614 = load ptr, ptr %2, align 8, !tbaa !5
  %615 = getelementptr inbounds %struct.qhT, ptr %614, i32 0, i32 29
  %616 = load i32, ptr %615, align 8, !tbaa !18
  %617 = icmp sge i32 %616, 2
  br i1 %617, label %618, label %626

618:                                              ; preds = %613
  %619 = load ptr, ptr %2, align 8, !tbaa !5
  %620 = load ptr, ptr %2, align 8, !tbaa !5
  %621 = getelementptr inbounds %struct.qhT, ptr %620, i32 0, i32 158
  %622 = load ptr, ptr %621, align 8, !tbaa !19
  %623 = load ptr, ptr %7, align 8, !tbaa !5
  %624 = getelementptr inbounds %struct.facetT, ptr %623, i32 0, i32 14
  %625 = load i32, ptr %624, align 4, !tbaa !30
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %619, ptr noundef %622, i32 noundef 2054, ptr noundef @.str.222, i32 noundef %625)
  br label %626

626:                                              ; preds = %618, %613
  %627 = load ptr, ptr %2, align 8, !tbaa !5
  %628 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_delfacet(ptr noundef %627, ptr noundef %628)
  %629 = load ptr, ptr %2, align 8, !tbaa !5
  %630 = getelementptr inbounds %struct.qhT, ptr %629, i32 0, i32 168
  %631 = load i32, ptr %630, align 8, !tbaa !48
  %632 = add nsw i32 %631, -1
  store i32 %632, ptr %630, align 8, !tbaa !48
  br label %633

633:                                              ; preds = %626, %610, %607
  %634 = load i32, ptr %18, align 4, !tbaa !16
  %635 = load ptr, ptr %2, align 8, !tbaa !5
  %636 = getelementptr inbounds %struct.qhT, ptr %635, i32 0, i32 48
  store i32 %634, ptr %636, align 4, !tbaa !9
  %637 = load ptr, ptr %2, align 8, !tbaa !5
  %638 = getelementptr inbounds %struct.qhT, ptr %637, i32 0, i32 14
  %639 = load i32, ptr %638, align 4, !tbaa !55
  %640 = icmp ne i32 %639, 0
  br i1 %640, label %641, label %646

641:                                              ; preds = %633
  %642 = load ptr, ptr %2, align 8, !tbaa !5
  %643 = load ptr, ptr %2, align 8, !tbaa !5
  %644 = getelementptr inbounds %struct.qhT, ptr %643, i32 0, i32 163
  %645 = load ptr, ptr %644, align 8, !tbaa !25
  call void @qh_checkpolygon(ptr noundef %642, ptr noundef %645)
  br label %646

646:                                              ; preds = %641, %633
  %647 = load ptr, ptr %2, align 8, !tbaa !5
  %648 = getelementptr inbounds %struct.qhT, ptr %647, i32 0, i32 195
  store i32 1, ptr %648, align 4, !tbaa !17
  store i32 0, ptr %19, align 4
  br label %649

649:                                              ; preds = %646, %43, %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  %650 = load i32, ptr %19, align 4
  switch i32 %650, label %652 [
    i32 0, label %651
    i32 1, label %651
  ]

651:                                              ; preds = %649, %649
  ret void

652:                                              ; preds = %649
  unreachable
}

declare void @qh_initmergesets(ptr noundef) #1

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

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

declare ptr @qh_setdellast(ptr noundef) #1

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

declare void @qh_freemergesets(ptr noundef) #1

declare void @qh_update_vertexneighbors(ptr noundef) #1

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

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

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

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


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

%union.setelemT = type { ptr }

@.str.212 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [112 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.217 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.219 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.220 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.221 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.222 = external hidden unnamed_addr constant [85 x i8], align 1

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_triangulate(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  store ptr null, ptr %2, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 236
  %4 = load i32, ptr %3, align 4, !tbaa !9
  %5 = getelementptr inbounds i8, ptr %0, i64 2652
  %6 = load i32, ptr %5, align 4, !tbaa !16
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %7, label %281

7:                                                ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 136
  %9 = load i32, ptr %8, align 8, !tbaa !17
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %11, label %14

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %0, i64 2424
  %13 = load ptr, ptr %12, align 8, !tbaa !18
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %13, i32 noundef 1034, ptr noundef nonnull @.str.212) #4
  br label %14

14:                                               ; preds = %11, %7
  %15 = getelementptr inbounds i8, ptr %0, i64 632
  %16 = load i32, ptr %15, align 8, !tbaa !19
  %17 = icmp eq i32 %16, 2
  br i1 %17, label %281, label %18

18:                                               ; preds = %14
  %19 = getelementptr inbounds i8, ptr %0, i64 588
  %20 = load i32, ptr %19, align 4, !tbaa !20
  %.not215 = icmp eq i32 %20, 0
  br i1 %.not215, label %22, label %21

21:                                               ; preds = %18
  tail call void @qh_clearcenters(ptr noundef nonnull %0, i32 noundef 1)
  tail call void @qh_vertexneighbors(ptr noundef nonnull %0)
  br label %22

22:                                               ; preds = %21, %18
  store i32 0, ptr %3, align 4, !tbaa !9
  %23 = getelementptr inbounds i8, ptr %0, i64 2784
  %24 = load i32, ptr %23, align 8, !tbaa !21
  %25 = add i32 %24, 1
  store i32 %25, ptr %23, align 8, !tbaa !21
  tail call void @qh_initmergesets(ptr noundef nonnull %0) #4
  %26 = getelementptr inbounds i8, ptr %0, i64 2552
  %27 = load ptr, ptr %26, align 8, !tbaa !22
  %28 = getelementptr inbounds i8, ptr %0, i64 2560
  store ptr %27, ptr %28, align 8, !tbaa !23
  %29 = getelementptr inbounds i8, ptr %0, i64 2456
  %30 = load ptr, ptr %29, align 8, !tbaa !24
  %.not216251 = icmp eq ptr %30, null
  br i1 %.not216251, label %.critedge.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %22
  %31 = getelementptr inbounds i8, ptr %30, i64 56
  %32 = load ptr, ptr %31, align 8, !tbaa !25
  %.not217309 = icmp eq ptr %32, null
  br i1 %.not217309, label %.critedge, label %.lr.ph312

.lr.ph312:                                        ; preds = %.lr.ph.preheader, %.lr.ph
  %33 = phi ptr [ %39, %.lr.ph ], [ %32, %.lr.ph.preheader ]
  %.0203252311 = phi ptr [ %.2205, %.lr.ph ], [ null, %.lr.ph.preheader ]
  %.0253310 = phi ptr [ %33, %.lr.ph ], [ %30, %.lr.ph.preheader ]
  %34 = getelementptr inbounds i8, ptr %.0253310, i64 112
  %35 = load i32, ptr %34, align 8
  %36 = and i32 %35, 10240
  %or.cond247 = icmp eq i32 %36, 0
  br i1 %or.cond247, label %37, label %.lr.ph

37:                                               ; preds = %.lr.ph312
  %.not246 = icmp eq ptr %.0203252311, null
  %spec.select = select i1 %.not246, ptr %.0253310, ptr %.0203252311
  call void @qh_triangulate_facet(ptr noundef %0, ptr noundef nonnull %.0253310, ptr noundef nonnull %2)
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph312, %37
  %.2205 = phi ptr [ %.0203252311, %.lr.ph312 ], [ %spec.select, %37 ]
  %38 = getelementptr inbounds i8, ptr %33, i64 56
  %39 = load ptr, ptr %38, align 8, !tbaa !25
  %.not217 = icmp eq ptr %39, null
  br i1 %.not217, label %.critedge, label %.lr.ph312

.critedge:                                        ; preds = %.lr.ph, %.lr.ph.preheader
  %.0203252.lcssa = phi ptr [ null, %.lr.ph.preheader ], [ %.2205, %.lr.ph ]
  %40 = load i32, ptr %8, align 8, !tbaa !17
  %41 = icmp sgt i32 %40, 1
  br i1 %41, label %46, label %55

.critedge.thread:                                 ; preds = %22
  %42 = load i32, ptr %8, align 8, !tbaa !17
  %43 = icmp sgt i32 %42, 1
  br i1 %43, label %.thread292, label %.critedge2.thread

.thread292:                                       ; preds = %.critedge.thread
  %44 = getelementptr inbounds i8, ptr %0, i64 2424
  %45 = load ptr, ptr %44, align 8, !tbaa !18
  br label %52

46:                                               ; preds = %.critedge
  %47 = getelementptr inbounds i8, ptr %0, i64 2424
  %48 = load ptr, ptr %47, align 8, !tbaa !18
  %.not218 = icmp eq ptr %.0203252.lcssa, null
  br i1 %.not218, label %52, label %49

49:                                               ; preds = %46
  %50 = getelementptr inbounds i8, ptr %.0203252.lcssa, i64 108
  %51 = load i32, ptr %50, align 4, !tbaa !27
  br label %52

52:                                               ; preds = %.thread292, %46, %49
  %53 = phi ptr [ %48, %49 ], [ %48, %46 ], [ %45, %.thread292 ]
  %.0203.lcssa290295 = phi ptr [ %.0203252.lcssa, %49 ], [ null, %46 ], [ null, %.thread292 ]
  %54 = phi i32 [ %51, %49 ], [ -1, %46 ], [ -1, %.thread292 ]
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %53, i32 noundef 2047, ptr noundef nonnull @.str.213, i32 noundef %54) #4
  br label %55

55:                                               ; preds = %52, %.critedge
  %.0203.lcssa289 = phi ptr [ %.0203.lcssa290295, %52 ], [ %.0203252.lcssa, %.critedge ]
  %.not219256 = icmp eq ptr %.0203.lcssa289, null
  br i1 %.not219256, label %.critedge2, label %.lr.ph258

.lr.ph258:                                        ; preds = %55
  %56 = getelementptr inbounds i8, ptr %0, i64 2424
  %57 = getelementptr inbounds i8, ptr %0, i64 5240
  %58 = getelementptr inbounds i8, ptr %.0203.lcssa289, i64 56
  %59 = load ptr, ptr %58, align 8, !tbaa !25
  %.not220313 = icmp eq ptr %59, null
  br i1 %.not220313, label %.critedge2, label %.lr.ph315

.lr.ph315:                                        ; preds = %.lr.ph258, %86
  %60 = phi ptr [ %88, %86 ], [ %59, %.lr.ph258 ]
  %.1257314 = phi ptr [ %60, %86 ], [ %.0203.lcssa289, %.lr.ph258 ]
  %61 = getelementptr inbounds i8, ptr %.1257314, i64 112
  %62 = load i32, ptr %61, align 8
  %63 = and i32 %62, 2048
  %.not242 = icmp eq i32 %63, 0
  br i1 %.not242, label %64, label %86

64:                                               ; preds = %.lr.ph315
  %65 = getelementptr inbounds i8, ptr %.1257314, i64 72
  %66 = load ptr, ptr %65, align 8, !tbaa !28
  %.not243 = icmp eq ptr %66, null
  br i1 %.not243, label %75, label %67

67:                                               ; preds = %64
  %68 = call i32 @qh_setsize(ptr noundef %0, ptr noundef nonnull %66) #4
  %69 = icmp sgt i32 %68, 0
  br i1 %69, label %70, label %74

70:                                               ; preds = %67
  %71 = load ptr, ptr %56, align 8, !tbaa !18
  %72 = getelementptr inbounds i8, ptr %.1257314, i64 108
  %73 = load i32, ptr %72, align 4, !tbaa !27
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %71, i32 noundef 6161, ptr noundef nonnull @.str.214, i32 noundef %73) #4
  call void @qh_errexit(ptr noundef %0, i32 noundef 5, ptr noundef nonnull %.1257314, ptr noundef null) #4
  br label %74

74:                                               ; preds = %70, %67
  call void @qh_setfree(ptr noundef %0, ptr noundef nonnull %65) #4
  br label %75

75:                                               ; preds = %74, %64
  %76 = getelementptr inbounds i8, ptr %.1257314, i64 64
  %77 = load ptr, ptr %76, align 8, !tbaa !29
  %78 = getelementptr inbounds i8, ptr %77, i64 8
  %79 = load ptr, ptr %78, align 8, !tbaa !30
  %80 = getelementptr inbounds i8, ptr %77, i64 16
  %81 = load ptr, ptr %80, align 8, !tbaa !30
  %82 = icmp eq ptr %79, %81
  br i1 %82, label %83, label %86

83:                                               ; preds = %75
  %84 = load i32, ptr %57, align 8, !tbaa !30
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %57, align 8, !tbaa !30
  call void @qh_triangulate_null(ptr noundef %0, ptr noundef nonnull %.1257314)
  br label %86

86:                                               ; preds = %75, %83, %.lr.ph315
  %87 = getelementptr inbounds i8, ptr %60, i64 56
  %88 = load ptr, ptr %87, align 8, !tbaa !25
  %.not220 = icmp eq ptr %88, null
  br i1 %.not220, label %.critedge2, label %.lr.ph315

.critedge2:                                       ; preds = %86, %.lr.ph258, %55
  %.pr301 = load i32, ptr %8, align 8, !tbaa !17
  %89 = icmp sgt i32 %.pr301, 1
  br i1 %89, label %90, label %.critedge2.thread

90:                                               ; preds = %.critedge2
  %91 = getelementptr inbounds i8, ptr %0, i64 2424
  %92 = load ptr, ptr %91, align 8, !tbaa !18
  %93 = getelementptr inbounds i8, ptr %0, i64 2808
  %94 = load ptr, ptr %93, align 8, !tbaa !31
  %95 = call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef %94) #4
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %92, i32 noundef 2048, ptr noundef nonnull @.str.215, i32 noundef %95) #4
  br label %.critedge2.thread

.critedge2.thread:                                ; preds = %.critedge.thread, %90, %.critedge2
  %.0203.lcssa289299305 = phi ptr [ %.0203.lcssa289, %90 ], [ %.0203.lcssa289, %.critedge2 ], [ null, %.critedge.thread ]
  %.not219256300304 = phi i1 [ %.not219256, %90 ], [ %.not219256, %.critedge2 ], [ true, %.critedge.thread ]
  %96 = getelementptr inbounds i8, ptr %0, i64 2464
  %97 = load ptr, ptr %96, align 8, !tbaa !32
  %98 = getelementptr inbounds i8, ptr %0, i64 2488
  store ptr %97, ptr %98, align 8, !tbaa !33
  %99 = getelementptr inbounds i8, ptr %0, i64 2808
  %100 = load ptr, ptr %99, align 8, !tbaa !31
  %101 = call ptr @qh_setdellast(ptr noundef %100) #4
  %.not221260 = icmp eq ptr %101, null
  br i1 %.not221260, label %._crit_edge, label %.lr.ph261

.lr.ph261:                                        ; preds = %.critedge2.thread
  %102 = getelementptr inbounds i8, ptr %0, i64 5232
  br label %103

103:                                              ; preds = %.lr.ph261, %115
  %104 = phi ptr [ %101, %.lr.ph261 ], [ %117, %115 ]
  %105 = getelementptr inbounds i8, ptr %104, i64 16
  %106 = load ptr, ptr %105, align 8, !tbaa !34
  %107 = getelementptr inbounds i8, ptr %104, i64 24
  %108 = load ptr, ptr %107, align 8, !tbaa !36
  %109 = getelementptr inbounds i8, ptr %104, i64 64
  %110 = load i32, ptr %109, align 8, !tbaa !37
  call void @qh_memfree(ptr noundef nonnull %0, ptr noundef nonnull %104, i32 noundef 72) #4
  %111 = icmp eq i32 %110, 12
  br i1 %111, label %112, label %115

112:                                              ; preds = %103
  %113 = load i32, ptr %102, align 8, !tbaa !30
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %102, align 8, !tbaa !30
  call void @qh_triangulate_mirror(ptr noundef %0, ptr noundef %106, ptr noundef %108)
  br label %115

115:                                              ; preds = %112, %103
  %116 = load ptr, ptr %99, align 8, !tbaa !31
  %117 = call ptr @qh_setdellast(ptr noundef %116) #4
  %.not221 = icmp eq ptr %117, null
  br i1 %.not221, label %._crit_edge, label %103, !llvm.loop !38

._crit_edge:                                      ; preds = %115, %.critedge2.thread
  call void @qh_freemergesets(ptr noundef nonnull %0) #4
  %118 = load i32, ptr %8, align 8, !tbaa !17
  %119 = icmp sgt i32 %118, 1
  br i1 %119, label %120, label %129

120:                                              ; preds = %._crit_edge
  %121 = getelementptr inbounds i8, ptr %0, i64 2424
  %122 = load ptr, ptr %121, align 8, !tbaa !18
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  %.not222 = icmp eq ptr %123, null
  br i1 %.not222, label %127, label %124

124:                                              ; preds = %120
  %125 = getelementptr inbounds i8, ptr %123, i64 32
  %126 = load i32, ptr %125, align 8, !tbaa !40
  br label %127

127:                                              ; preds = %120, %124
  %128 = phi i32 [ %126, %124 ], [ -1, %120 ]
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %122, i32 noundef 2049, ptr noundef nonnull @.str.216, i32 noundef %128) #4
  br label %129

129:                                              ; preds = %127, %._crit_edge
  %130 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %130, ptr %28, align 8, !tbaa !23
  store ptr null, ptr %98, align 8, !tbaa !33
  call void @qh_update_vertexneighbors(ptr noundef nonnull %0) #4
  call void @qh_resetlists(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 0)
  %131 = load i32, ptr %8, align 8, !tbaa !17
  %132 = icmp sgt i32 %131, 1
  br i1 %132, label %133, label %.thread

133:                                              ; preds = %129
  %134 = getelementptr inbounds i8, ptr %0, i64 2424
  %135 = load ptr, ptr %134, align 8, !tbaa !18
  br i1 %.not219256300304, label %139, label %136

136:                                              ; preds = %133
  %137 = getelementptr inbounds i8, ptr %.0203.lcssa289299305, i64 108
  %138 = load i32, ptr %137, align 4, !tbaa !27
  br label %139

139:                                              ; preds = %136, %133
  %140 = phi i32 [ %138, %136 ], [ -1, %133 ]
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %135, i32 noundef 2050, ptr noundef nonnull @.str.217, i32 noundef %140) #4
  %.pr = load i32, ptr %8, align 8, !tbaa !17
  %141 = icmp sgt i32 %.pr, 1
  br i1 %141, label %142, label %.thread

142:                                              ; preds = %139
  %143 = load ptr, ptr %134, align 8, !tbaa !18
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %143, i32 noundef 2051, ptr noundef nonnull @.str.218) #4
  br label %.thread

.thread:                                          ; preds = %129, %142, %139
  br i1 %.not219256300304, label %.critedge4, label %.preheader

.preheader:                                       ; preds = %.thread
  %144 = getelementptr inbounds i8, ptr %0, i64 5224
  br label %145

145:                                              ; preds = %.preheader, %.loopexit
  %.2269 = phi ptr [ %.0203.lcssa289299305, %.preheader ], [ %186, %.loopexit ]
  %146 = getelementptr inbounds i8, ptr %.2269, i64 56
  %147 = load ptr, ptr %146, align 8, !tbaa !25
  %.not226 = icmp eq ptr %147, null
  br i1 %.not226, label %.critedge4, label %148

148:                                              ; preds = %145
  %149 = getelementptr inbounds i8, ptr %.2269, i64 112
  %150 = load i32, ptr %149, align 8
  %151 = and i32 %150, 2560
  %or.cond248 = icmp eq i32 %151, 512
  br i1 %or.cond248, label %152, label %.loopexit

152:                                              ; preds = %148
  %153 = getelementptr inbounds i8, ptr %.2269, i64 80
  %154 = load ptr, ptr %153, align 8, !tbaa !42
  %.not239 = icmp eq ptr %154, null
  br i1 %.not239, label %.loopexit, label %155

155:                                              ; preds = %152
  %156 = getelementptr inbounds i8, ptr %154, i64 8
  %157 = load ptr, ptr %156, align 8, !tbaa !30
  %158 = call i32 @qh_setsize(ptr noundef %0, ptr noundef nonnull %154) #4
  %159 = icmp sgt i32 %158, 0
  br i1 %159, label %160, label %.loopexit

160:                                              ; preds = %155
  %wide.trip.count = zext nneg i32 %158 to i64
  %161 = getelementptr inbounds i8, ptr %157, i64 112
  %162 = load i32, ptr %161, align 8
  %163 = and i32 %162, 512
  %.not241.peel = icmp eq i32 %163, 0
  br i1 %.not241.peel, label %167, label %164

164:                                              ; preds = %160
  %165 = getelementptr inbounds i8, ptr %157, i64 32
  %166 = load ptr, ptr %165, align 8, !tbaa !30
  br label %167

167:                                              ; preds = %164, %160
  %.2201.peel = phi ptr [ %166, %164 ], [ %157, %160 ]
  %168 = load ptr, ptr %153, align 8, !tbaa !42
  %169 = getelementptr inbounds i8, ptr %168, i64 8
  %exitcond.peel.not = icmp eq i32 %158, 1
  br i1 %exitcond.peel.not, label %.loopexit, label %.lr.ph266.peel.next

.lr.ph266.peel.next:                              ; preds = %167
  %170 = getelementptr inbounds i8, ptr %168, i64 16
  br label %171

171:                                              ; preds = %184, %.lr.ph266.peel.next
  %indvars.iv = phi i64 [ 1, %.lr.ph266.peel.next ], [ %indvars.iv.next, %184 ]
  %.0197263.in = phi ptr [ %170, %.lr.ph266.peel.next ], [ %185, %184 ]
  %.0197263 = load ptr, ptr %.0197263.in, align 8, !tbaa !30
  %172 = getelementptr inbounds i8, ptr %.0197263, i64 112
  %173 = load i32, ptr %172, align 8
  %174 = and i32 %173, 512
  %.not240 = icmp eq i32 %174, 0
  br i1 %.not240, label %178, label %175

175:                                              ; preds = %171
  %176 = getelementptr inbounds i8, ptr %.0197263, i64 32
  %177 = load ptr, ptr %176, align 8, !tbaa !30
  br label %178

178:                                              ; preds = %171, %175
  %.0198 = phi ptr [ %177, %175 ], [ %.0197263, %171 ]
  %179 = icmp eq ptr %.2201.peel, %.0198
  br i1 %179, label %.loopexit284, label %184

.loopexit284:                                     ; preds = %178
  %180 = load i32, ptr %144, align 8, !tbaa !30
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %144, align 8, !tbaa !30
  %182 = load i32, ptr %149, align 8
  %183 = or i32 %182, 1073741824
  store i32 %183, ptr %149, align 8
  br label %.loopexit

184:                                              ; preds = %178
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %185 = getelementptr inbounds [1 x %union.setelemT], ptr %169, i64 0, i64 %indvars.iv.next
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %171, !llvm.loop !43

.loopexit:                                        ; preds = %184, %167, %155, %148, %.loopexit284, %152
  %186 = load ptr, ptr %146, align 8, !tbaa !25
  %.not225 = icmp eq ptr %186, null
  br i1 %.not225, label %.critedge4, label %145, !llvm.loop !45

.critedge4:                                       ; preds = %145, %.loopexit, %.thread
  %187 = load i32, ptr %8, align 8, !tbaa !17
  %188 = icmp sgt i32 %187, 3
  br i1 %188, label %189, label %190

189:                                              ; preds = %.critedge4
  call void @qh_printlists(ptr noundef nonnull %0)
  %.pr249 = load i32, ptr %8, align 8, !tbaa !17
  br label %190

190:                                              ; preds = %189, %.critedge4
  %191 = phi i32 [ %.pr249, %189 ], [ %187, %.critedge4 ]
  %192 = icmp sgt i32 %191, 1
  br i1 %192, label %193, label %196

193:                                              ; preds = %190
  %194 = getelementptr inbounds i8, ptr %0, i64 2424
  %195 = load ptr, ptr %194, align 8, !tbaa !18
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %195, i32 noundef 2052, ptr noundef nonnull @.str.219) #4
  br label %196

196:                                              ; preds = %193, %190
  br i1 %.not219256300304, label %.critedge6.thread, label %.lr.ph275

.lr.ph275:                                        ; preds = %196
  %197 = getelementptr inbounds i8, ptr %0, i64 2496
  %198 = getelementptr inbounds i8, ptr %0, i64 2424
  %199 = getelementptr inbounds i8, ptr %0, i64 568
  br label %200

200:                                              ; preds = %.lr.ph275, %259
  %.3273 = phi ptr [ %.0203.lcssa289299305, %.lr.ph275 ], [ %.0193, %259 ]
  %.0195272 = phi ptr [ null, %.lr.ph275 ], [ %.1196, %259 ]
  %.0206271 = phi ptr [ null, %.lr.ph275 ], [ %.1207, %259 ]
  %201 = getelementptr inbounds i8, ptr %.3273, i64 56
  %202 = load ptr, ptr %201, align 8, !tbaa !25
  %.not228 = icmp eq ptr %202, null
  br i1 %.not228, label %.critedge6, label %203

203:                                              ; preds = %200
  %204 = getelementptr inbounds i8, ptr %.3273, i64 112
  %205 = load i32, ptr %204, align 8
  %206 = and i32 %205, 2048
  %.not230 = icmp eq i32 %206, 0
  %207 = and i32 %205, 512
  %.not231 = icmp eq i32 %207, 0
  br i1 %.not230, label %225, label %208

208:                                              ; preds = %203
  br i1 %.not231, label %212, label %209

209:                                              ; preds = %208
  call void @qh_delfacet(ptr noundef %0, ptr noundef nonnull %.3273) #4
  %210 = load i32, ptr %197, align 8, !tbaa !46
  %211 = add nsw i32 %210, -1
  store i32 %211, ptr %197, align 8, !tbaa !46
  br label %259

212:                                              ; preds = %208
  %213 = icmp eq ptr %.0206271, null
  %214 = icmp ne ptr %.0195272, null
  %or.cond = select i1 %213, i1 true, i1 %214
  br i1 %or.cond, label %259, label %215

215:                                              ; preds = %212
  %216 = load i32, ptr %8, align 8, !tbaa !17
  %217 = icmp sgt i32 %216, 1
  br i1 %217, label %218, label %222

218:                                              ; preds = %215
  %219 = load ptr, ptr %198, align 8, !tbaa !18
  %220 = getelementptr inbounds i8, ptr %.0206271, i64 108
  %221 = load i32, ptr %220, align 4, !tbaa !27
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %219, i32 noundef 2053, ptr noundef nonnull @.str.220, i32 noundef %221) #4
  br label %222

222:                                              ; preds = %218, %215
  call void @qh_delfacet(ptr noundef nonnull %0, ptr noundef nonnull %.0206271) #4
  %223 = load i32, ptr %197, align 8, !tbaa !46
  %224 = add nsw i32 %223, -1
  store i32 %224, ptr %197, align 8, !tbaa !46
  br label %259

225:                                              ; preds = %203
  br i1 %.not231, label %259, label %226

226:                                              ; preds = %225
  %227 = getelementptr inbounds i8, ptr %.3273, i64 32
  %228 = load ptr, ptr %227, align 8, !tbaa !30
  %229 = icmp ne ptr %228, %.0206271
  %230 = icmp eq ptr %.0206271, null
  %or.cond9 = or i1 %230, %229
  br i1 %or.cond9, label %231, label %240

231:                                              ; preds = %226
  %232 = load ptr, ptr %198, align 8, !tbaa !18
  %233 = getelementptr inbounds i8, ptr %.3273, i64 108
  %234 = load i32, ptr %233, align 4, !tbaa !27
  br i1 %230, label %238, label %235

235:                                              ; preds = %231
  %236 = getelementptr inbounds i8, ptr %.0206271, i64 108
  %237 = load i32, ptr %236, align 4, !tbaa !27
  br label %238

238:                                              ; preds = %231, %235
  %239 = phi i32 [ %237, %235 ], [ -1, %231 ]
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %232, i32 noundef 6162, ptr noundef nonnull @.str.221, i32 noundef %234, i32 noundef %239) #4
  call void @qh_errexit2(ptr noundef nonnull %0, i32 noundef 5, ptr noundef nonnull %.3273, ptr noundef %.0206271) #4
  br label %240

240:                                              ; preds = %226, %238
  %.not233 = icmp eq ptr %.0195272, null
  br i1 %.not233, label %242, label %241

241:                                              ; preds = %240
  store ptr %.0195272, ptr %227, align 8, !tbaa !30
  br label %259

242:                                              ; preds = %240
  %243 = load i32, ptr %204, align 8
  %244 = and i32 %243, 1073741824
  %.not234 = icmp eq i32 %244, 0
  br i1 %.not234, label %245, label %259

245:                                              ; preds = %242
  %246 = getelementptr inbounds i8, ptr %.0206271, i64 56
  %247 = load ptr, ptr %246, align 8, !tbaa !25
  %248 = or i32 %243, 268435456
  store i32 %248, ptr %204, align 8
  %249 = getelementptr inbounds i8, ptr %.0206271, i64 88
  %250 = getelementptr inbounds i8, ptr %.3273, i64 88
  %251 = load <2 x ptr>, ptr %249, align 8, !tbaa !5
  store <2 x ptr> %251, ptr %250, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %249, i8 0, i64 16, i1 false)
  %252 = load i32, ptr %199, align 8, !tbaa !47
  %.not235 = icmp eq i32 %252, 0
  br i1 %.not235, label %253, label %256

253:                                              ; preds = %245
  %254 = getelementptr inbounds i8, ptr %.0206271, i64 40
  store ptr null, ptr %254, align 8, !tbaa !48
  %255 = getelementptr inbounds i8, ptr %.0206271, i64 24
  store ptr null, ptr %255, align 8, !tbaa !49
  br label %256

256:                                              ; preds = %253, %245
  call void @qh_delfacet(ptr noundef nonnull %0, ptr noundef nonnull %.0206271) #4
  %257 = load i32, ptr %197, align 8, !tbaa !46
  %258 = add nsw i32 %257, -1
  store i32 %258, ptr %197, align 8, !tbaa !46
  br label %259

259:                                              ; preds = %212, %222, %225, %242, %256, %241, %209
  %.1207 = phi ptr [ %.0206271, %209 ], [ %.0206271, %241 ], [ %.0206271, %242 ], [ %.0206271, %256 ], [ %.0206271, %225 ], [ %.3273, %222 ], [ %.3273, %212 ]
  %.1196 = phi ptr [ %.0195272, %209 ], [ %.0195272, %241 ], [ null, %242 ], [ %.3273, %256 ], [ %.0195272, %225 ], [ null, %222 ], [ null, %212 ]
  %.0193 = phi ptr [ %202, %209 ], [ %202, %241 ], [ %202, %242 ], [ %247, %256 ], [ %202, %225 ], [ %202, %222 ], [ %202, %212 ]
  %260 = load i32, ptr %204, align 8
  %261 = and i32 %260, -1073741825
  store i32 %261, ptr %204, align 8
  %.not227 = icmp eq ptr %.0193, null
  br i1 %.not227, label %.critedge6, label %200, !llvm.loop !50

.critedge6:                                       ; preds = %200, %259
  %.0206.lcssa.ph = phi ptr [ %.0206271, %200 ], [ %.1207, %259 ]
  %.0195.lcssa.ph = phi ptr [ %.0195272, %200 ], [ %.1196, %259 ]
  %262 = icmp ne ptr %.0195.lcssa.ph, null
  %263 = icmp eq ptr %.0206.lcssa.ph, null
  %or.cond11 = select i1 %263, i1 true, i1 %262
  br i1 %or.cond11, label %.critedge6.thread, label %264

264:                                              ; preds = %.critedge6
  %265 = load i32, ptr %8, align 8, !tbaa !17
  %266 = icmp sgt i32 %265, 1
  br i1 %266, label %267, label %272

267:                                              ; preds = %264
  %268 = getelementptr inbounds i8, ptr %0, i64 2424
  %269 = load ptr, ptr %268, align 8, !tbaa !18
  %270 = getelementptr inbounds i8, ptr %.0206.lcssa.ph, i64 108
  %271 = load i32, ptr %270, align 4, !tbaa !27
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %269, i32 noundef 2054, ptr noundef nonnull @.str.222, i32 noundef %271) #4
  br label %272

272:                                              ; preds = %267, %264
  call void @qh_delfacet(ptr noundef nonnull %0, ptr noundef nonnull %.0206.lcssa.ph) #4
  %273 = getelementptr inbounds i8, ptr %0, i64 2496
  %274 = load i32, ptr %273, align 8, !tbaa !46
  %275 = add nsw i32 %274, -1
  store i32 %275, ptr %273, align 8, !tbaa !46
  br label %.critedge6.thread

.critedge6.thread:                                ; preds = %196, %272, %.critedge6
  store i32 %4, ptr %3, align 4, !tbaa !9
  %276 = getelementptr inbounds i8, ptr %0, i64 60
  %277 = load i32, ptr %276, align 4, !tbaa !51
  %.not229 = icmp eq i32 %277, 0
  br i1 %.not229, label %280, label %278

278:                                              ; preds = %.critedge6.thread
  %279 = load ptr, ptr %29, align 8, !tbaa !24
  call void @qh_checkpolygon(ptr noundef nonnull %0, ptr noundef %279)
  br label %280

280:                                              ; preds = %278, %.critedge6.thread
  store i32 1, ptr %5, align 4, !tbaa !16
  br label %281

281:                                              ; preds = %14, %1, %280
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  ret void
}

declare void @qh_initmergesets(ptr noundef) local_unnamed_addr #1

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

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

declare ptr @qh_setdellast(ptr noundef) local_unnamed_addr #1

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

declare void @qh_freemergesets(ptr noundef) local_unnamed_addr #1

declare void @qh_update_vertexneighbors(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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


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