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

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

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

@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [56 x i8], align 1

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

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

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

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

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

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

20:                                               ; preds = %2
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.qhT, ptr %22, i32 0, i32 158
  %24 = load ptr, ptr %23, align 8, !tbaa !17
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %21, ptr noundef %24, i32 noundef 5004, ptr noundef @.str.7)
  br label %25

25:                                               ; preds = %20, %2
  store ptr null, ptr %12, align 8, !tbaa !5
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.qhT, ptr %26, i32 0, i32 221
  %28 = load ptr, ptr %27, align 8, !tbaa !18
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %45

30:                                               ; preds = %25
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.qhT, ptr %31, i32 0, i32 221
  %33 = load ptr, ptr %32, align 8, !tbaa !18
  %34 = getelementptr inbounds %struct.setT, ptr %33, i32 0, i32 1
  %35 = getelementptr inbounds [1 x %union.setelemT], ptr %34, i64 0, i64 0
  store ptr %35, ptr %13, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %41, %30
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = getelementptr inbounds ptr, ptr %37, i32 1
  store ptr %38, ptr %13, align 8, !tbaa !5
  %39 = load ptr, ptr %37, align 8, !tbaa !5
  store ptr %39, ptr %12, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %44

41:                                               ; preds = %36
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  call void @qh_memfree(ptr noundef %42, ptr noundef %43, i32 noundef 72)
  br label %36, !llvm.loop !19

44:                                               ; preds = %36
  br label %45

45:                                               ; preds = %44, %25
  store ptr null, ptr %12, align 8, !tbaa !5
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.qhT, ptr %46, i32 0, i32 222
  %48 = load ptr, ptr %47, align 8, !tbaa !21
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %65

50:                                               ; preds = %45
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.qhT, ptr %51, i32 0, i32 222
  %53 = load ptr, ptr %52, align 8, !tbaa !21
  %54 = getelementptr inbounds %struct.setT, ptr %53, i32 0, i32 1
  %55 = getelementptr inbounds [1 x %union.setelemT], ptr %54, i64 0, i64 0
  store ptr %55, ptr %13, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %61, %50
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = getelementptr inbounds ptr, ptr %57, i32 1
  store ptr %58, ptr %13, align 8, !tbaa !5
  %59 = load ptr, ptr %57, align 8, !tbaa !5
  store ptr %59, ptr %12, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %64

61:                                               ; preds = %56
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  call void @qh_memfree(ptr noundef %62, ptr noundef %63, i32 noundef 72)
  br label %56, !llvm.loop !22

64:                                               ; preds = %56
  br label %65

65:                                               ; preds = %64, %45
  store ptr null, ptr %12, align 8, !tbaa !5
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.qhT, ptr %66, i32 0, i32 223
  %68 = load ptr, ptr %67, align 8, !tbaa !23
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %85

70:                                               ; preds = %65
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.qhT, ptr %71, i32 0, i32 223
  %73 = load ptr, ptr %72, align 8, !tbaa !23
  %74 = getelementptr inbounds %struct.setT, ptr %73, i32 0, i32 1
  %75 = getelementptr inbounds [1 x %union.setelemT], ptr %74, i64 0, i64 0
  store ptr %75, ptr %13, align 8, !tbaa !5
  br label %76

76:                                               ; preds = %81, %70
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = getelementptr inbounds ptr, ptr %77, i32 1
  store ptr %78, ptr %13, align 8, !tbaa !5
  %79 = load ptr, ptr %77, align 8, !tbaa !5
  store ptr %79, ptr %12, align 8, !tbaa !5
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %84

81:                                               ; preds = %76
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  call void @qh_memfree(ptr noundef %82, ptr noundef %83, i32 noundef 72)
  br label %76, !llvm.loop !24

84:                                               ; preds = %76
  br label %85

85:                                               ; preds = %84, %65
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.qhT, ptr %86, i32 0, i32 221
  store ptr null, ptr %87, align 8, !tbaa !18
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.qhT, ptr %88, i32 0, i32 222
  store ptr null, ptr %89, align 8, !tbaa !21
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.qhT, ptr %90, i32 0, i32 223
  store ptr null, ptr %91, align 8, !tbaa !23
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.qhT, ptr %93, i32 0, i32 224
  call void @qh_setfree(ptr noundef %92, ptr noundef %94)
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.qhT, ptr %95, i32 0, i32 29
  %97 = load i32, ptr %96, align 8, !tbaa !11
  %98 = icmp sge i32 %97, 5
  br i1 %98, label %99, label %104

99:                                               ; preds = %85
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.qhT, ptr %101, i32 0, i32 158
  %103 = load ptr, ptr %102, align 8, !tbaa !17
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %100, ptr noundef %103, i32 noundef 5003, ptr noundef @.str.8)
  br label %104

104:                                              ; preds = %99, %85
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_settempfree_all(ptr noundef %105)
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.qhT, ptr %106, i32 0, i32 29
  %108 = load i32, ptr %107, align 8, !tbaa !11
  %109 = icmp sge i32 %108, 1
  br i1 %109, label %110, label %115

110:                                              ; preds = %104
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.qhT, ptr %112, i32 0, i32 158
  %114 = load ptr, ptr %113, align 8, !tbaa !17
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %111, ptr noundef %114, i32 noundef 1005, ptr noundef @.str.9)
  br label %115

115:                                              ; preds = %110, %104
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.qhT, ptr %116, i32 0, i32 226
  %118 = load ptr, ptr %117, align 8, !tbaa !25
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %125

120:                                              ; preds = %115
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.qhT, ptr %122, i32 0, i32 226
  %124 = load ptr, ptr %123, align 8, !tbaa !25
  call void @qh_settruncate(ptr noundef %121, ptr noundef %124, i32 noundef 0)
  br label %125

125:                                              ; preds = %120, %115
  %126 = load i32, ptr %4, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %153

128:                                              ; preds = %125
  br label %129

129:                                              ; preds = %149, %128
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.qhT, ptr %130, i32 0, i32 175
  %132 = load ptr, ptr %131, align 8, !tbaa !26
  store ptr %132, ptr %7, align 8, !tbaa !5
  %133 = icmp ne ptr %132, null
  br i1 %133, label %134, label %152

134:                                              ; preds = %129
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.vertexT, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !27
  %138 = icmp ne ptr %137, null
  br i1 %138, label %139, label %142

139:                                              ; preds = %134
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_delvertex(ptr noundef %140, ptr noundef %141)
  br label %149

142:                                              ; preds = %134
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_memfree(ptr noundef %143, ptr noundef %144, i32 noundef 48)
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.qhT, ptr %145, i32 0, i32 175
  store ptr null, ptr %146, align 8, !tbaa !26
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.qhT, ptr %147, i32 0, i32 177
  store ptr null, ptr %148, align 8, !tbaa !29
  br label %152

149:                                              ; preds = %139
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %150, ptr %8, align 8, !tbaa !5
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  br label %129, !llvm.loop !30

152:                                              ; preds = %142, %129
  br label %182

153:                                              ; preds = %125
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.qhT, ptr %154, i32 0, i32 125
  %156 = load i32, ptr %155, align 8, !tbaa !31
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %181

158:                                              ; preds = %153
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.qhT, ptr %159, i32 0, i32 175
  %161 = load ptr, ptr %160, align 8, !tbaa !26
  store ptr %161, ptr %7, align 8, !tbaa !5
  br label %162

162:                                              ; preds = %176, %158
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = icmp ne ptr %163, null
  br i1 %164, label %165, label %170

165:                                              ; preds = %162
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.vertexT, ptr %166, i32 0, i32 0
  %168 = load ptr, ptr %167, align 8, !tbaa !27
  %169 = icmp ne ptr %168, null
  br label %170

170:                                              ; preds = %165, %162
  %171 = phi i1 [ false, %162 ], [ %169, %165 ]
  br i1 %171, label %172, label %180

172:                                              ; preds = %170
  %173 = load ptr, ptr %3, align 8, !tbaa !5
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.vertexT, ptr %174, i32 0, i32 3
  call void @qh_setfreelong(ptr noundef %173, ptr noundef %175)
  br label %176

176:                                              ; preds = %172
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.vertexT, ptr %177, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8, !tbaa !27
  store ptr %179, ptr %7, align 8, !tbaa !5
  br label %162, !llvm.loop !32

180:                                              ; preds = %170
  br label %181

181:                                              ; preds = %180, %153
  br label %182

182:                                              ; preds = %181, %152
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.qhT, ptr %183, i32 0, i32 125
  store i32 0, ptr %184, align 8, !tbaa !31
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.qhT, ptr %185, i32 0, i32 192
  store ptr null, ptr %186, align 8, !tbaa !33
  %187 = load i32, ptr %4, align 4, !tbaa !9
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %342

189:                                              ; preds = %182
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.qhT, ptr %190, i32 0, i32 163
  %192 = load ptr, ptr %191, align 8, !tbaa !34
  store ptr %192, ptr %5, align 8, !tbaa !5
  br label %193

193:                                              ; preds = %227, %189
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = icmp ne ptr %194, null
  br i1 %195, label %196, label %201

196:                                              ; preds = %193
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.facetT, ptr %197, i32 0, i32 7
  %199 = load ptr, ptr %198, align 8, !tbaa !35
  %200 = icmp ne ptr %199, null
  br label %201

201:                                              ; preds = %196, %193
  %202 = phi i1 [ false, %193 ], [ %200, %196 ]
  br i1 %202, label %203, label %231

203:                                              ; preds = %201
  store ptr null, ptr %9, align 8, !tbaa !5
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.facetT, ptr %204, i32 0, i32 9
  %206 = load ptr, ptr %205, align 8, !tbaa !37
  %207 = icmp ne ptr %206, null
  br i1 %207, label %208, label %226

208:                                              ; preds = %203
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.facetT, ptr %209, i32 0, i32 9
  %211 = load ptr, ptr %210, align 8, !tbaa !37
  %212 = getelementptr inbounds %struct.setT, ptr %211, i32 0, i32 1
  %213 = getelementptr inbounds [1 x %union.setelemT], ptr %212, i64 0, i64 0
  store ptr %213, ptr %10, align 8, !tbaa !5
  br label %214

214:                                              ; preds = %219, %208
  %215 = load ptr, ptr %10, align 8, !tbaa !5
  %216 = getelementptr inbounds ptr, ptr %215, i32 1
  store ptr %216, ptr %10, align 8, !tbaa !5
  %217 = load ptr, ptr %215, align 8, !tbaa !5
  store ptr %217, ptr %9, align 8, !tbaa !5
  %218 = icmp ne ptr %217, null
  br i1 %218, label %219, label %225

219:                                              ; preds = %214
  %220 = load ptr, ptr %9, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.ridgeT, ptr %220, i32 0, i32 4
  %222 = load i8, ptr %221, align 4
  %223 = and i8 %222, -2
  %224 = or i8 %223, 0
  store i8 %224, ptr %221, align 4
  br label %214, !llvm.loop !38

225:                                              ; preds = %214
  br label %226

226:                                              ; preds = %225, %203
  br label %227

227:                                              ; preds = %226
  %228 = load ptr, ptr %5, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.facetT, ptr %228, i32 0, i32 7
  %230 = load ptr, ptr %229, align 8, !tbaa !35
  store ptr %230, ptr %5, align 8, !tbaa !5
  br label %193, !llvm.loop !39

231:                                              ; preds = %201
  br label %232

232:                                              ; preds = %338, %231
  %233 = load ptr, ptr %3, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.qhT, ptr %233, i32 0, i32 163
  %235 = load ptr, ptr %234, align 8, !tbaa !34
  store ptr %235, ptr %5, align 8, !tbaa !5
  %236 = icmp ne ptr %235, null
  br i1 %236, label %237, label %341

237:                                              ; preds = %232
  %238 = load ptr, ptr %5, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.facetT, ptr %238, i32 0, i32 15
  %240 = load i32, ptr %239, align 8
  %241 = lshr i32 %240, 10
  %242 = and i32 %241, 1
  %243 = icmp ne i32 %242, 0
  br i1 %243, label %244, label %256

244:                                              ; preds = %237
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.qhT, ptr %245, i32 0, i32 203
  %247 = load i32, ptr %246, align 4, !tbaa !40
  %248 = icmp ne i32 %247, 0
  br i1 %248, label %249, label %256

249:                                              ; preds = %244
  %250 = load ptr, ptr %3, align 8, !tbaa !5
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.facetT, ptr %251, i32 0, i32 9
  %253 = load ptr, ptr %252, align 8, !tbaa !37
  %254 = call i32 @qh_setsize(ptr noundef %250, ptr noundef %253)
  %255 = icmp sgt i32 %254, 1
  br i1 %255, label %256, label %306

256:                                              ; preds = %249, %244, %237
  %257 = load ptr, ptr %3, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.qhT, ptr %257, i32 0, i32 29
  %259 = load i32, ptr %258, align 8, !tbaa !11
  %260 = icmp sge i32 %259, 4
  br i1 %260, label %261, label %269

261:                                              ; preds = %256
  %262 = load ptr, ptr %3, align 8, !tbaa !5
  %263 = load ptr, ptr %3, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.qhT, ptr %263, i32 0, i32 158
  %265 = load ptr, ptr %264, align 8, !tbaa !17
  %266 = load ptr, ptr %5, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.facetT, ptr %266, i32 0, i32 14
  %268 = load i32, ptr %267, align 4, !tbaa !41
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %262, ptr noundef %265, i32 noundef 4095, ptr noundef @.str.10, i32 noundef %268)
  br label %269

269:                                              ; preds = %261, %256
  store ptr null, ptr %9, align 8, !tbaa !5
  %270 = load ptr, ptr %5, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.facetT, ptr %270, i32 0, i32 9
  %272 = load ptr, ptr %271, align 8, !tbaa !37
  %273 = icmp ne ptr %272, null
  br i1 %273, label %274, label %305

274:                                              ; preds = %269
  %275 = load ptr, ptr %5, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.facetT, ptr %275, i32 0, i32 9
  %277 = load ptr, ptr %276, align 8, !tbaa !37
  %278 = getelementptr inbounds %struct.setT, ptr %277, i32 0, i32 1
  %279 = getelementptr inbounds [1 x %union.setelemT], ptr %278, i64 0, i64 0
  store ptr %279, ptr %10, align 8, !tbaa !5
  br label %280

280:                                              ; preds = %301, %274
  %281 = load ptr, ptr %10, align 8, !tbaa !5
  %282 = getelementptr inbounds ptr, ptr %281, i32 1
  store ptr %282, ptr %10, align 8, !tbaa !5
  %283 = load ptr, ptr %281, align 8, !tbaa !5
  store ptr %283, ptr %9, align 8, !tbaa !5
  %284 = icmp ne ptr %283, null
  br i1 %284, label %285, label %304

285:                                              ; preds = %280
  %286 = load ptr, ptr %9, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.ridgeT, ptr %286, i32 0, i32 4
  %288 = load i8, ptr %287, align 4
  %289 = and i8 %288, 1
  %290 = zext i8 %289 to i32
  %291 = icmp ne i32 %290, 0
  br i1 %291, label %292, label %295

292:                                              ; preds = %285
  %293 = load ptr, ptr %3, align 8, !tbaa !5
  %294 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_delridge(ptr noundef %293, ptr noundef %294)
  br label %301

295:                                              ; preds = %285
  %296 = load ptr, ptr %9, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.ridgeT, ptr %296, i32 0, i32 4
  %298 = load i8, ptr %297, align 4
  %299 = and i8 %298, -2
  %300 = or i8 %299, 1
  store i8 %300, ptr %297, align 4
  br label %301

301:                                              ; preds = %295, %292
  %302 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %302, ptr %11, align 8, !tbaa !5
  %303 = load ptr, ptr %11, align 8, !tbaa !5
  br label %280, !llvm.loop !42

304:                                              ; preds = %280
  br label %305

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

306:                                              ; preds = %305, %249
  %307 = load ptr, ptr %3, align 8, !tbaa !5
  %308 = load ptr, ptr %5, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.facetT, ptr %308, i32 0, i32 11
  call void @qh_setfree(ptr noundef %307, ptr noundef %309)
  %310 = load ptr, ptr %3, align 8, !tbaa !5
  %311 = load ptr, ptr %5, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.facetT, ptr %311, i32 0, i32 12
  call void @qh_setfree(ptr noundef %310, ptr noundef %312)
  %313 = load ptr, ptr %3, align 8, !tbaa !5
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.facetT, ptr %314, i32 0, i32 10
  call void @qh_setfree(ptr noundef %313, ptr noundef %315)
  %316 = load ptr, ptr %3, align 8, !tbaa !5
  %317 = load ptr, ptr %5, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.facetT, ptr %317, i32 0, i32 9
  call void @qh_setfree(ptr noundef %316, ptr noundef %318)
  %319 = load ptr, ptr %3, align 8, !tbaa !5
  %320 = load ptr, ptr %5, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.facetT, ptr %320, i32 0, i32 8
  call void @qh_setfree(ptr noundef %319, ptr noundef %321)
  %322 = load ptr, ptr %5, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.facetT, ptr %322, i32 0, i32 7
  %324 = load ptr, ptr %323, align 8, !tbaa !35
  %325 = icmp ne ptr %324, null
  br i1 %325, label %326, label %329

326:                                              ; preds = %306
  %327 = load ptr, ptr %3, align 8, !tbaa !5
  %328 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_delfacet(ptr noundef %327, ptr noundef %328)
  br label %338

329:                                              ; preds = %306
  %330 = load ptr, ptr %3, align 8, !tbaa !5
  %331 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_memfree(ptr noundef %330, ptr noundef %331, i32 noundef 120)
  %332 = load ptr, ptr %3, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.qhT, ptr %332, i32 0, i32 163
  store ptr null, ptr %333, align 8, !tbaa !34
  %334 = load ptr, ptr %3, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.qhT, ptr %334, i32 0, i32 166
  store ptr null, ptr %335, align 8, !tbaa !43
  %336 = load ptr, ptr %3, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.qhT, ptr %336, i32 0, i32 167
  store ptr null, ptr %337, align 8, !tbaa !44
  br label %338

338:                                              ; preds = %329, %326
  %339 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %339, ptr %6, align 8, !tbaa !5
  %340 = load ptr, ptr %6, align 8, !tbaa !5
  br label %232, !llvm.loop !45

341:                                              ; preds = %232
  br label %397

342:                                              ; preds = %182
  store i32 1, ptr %15, align 4, !tbaa !9
  %343 = load ptr, ptr %3, align 8, !tbaa !5
  %344 = load ptr, ptr %3, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.qhT, ptr %344, i32 0, i32 110
  %346 = load i32, ptr %345, align 8, !tbaa !46
  %347 = add nsw i32 %346, 1
  %348 = call i32 @qh_setlarger_quick(ptr noundef %343, i32 noundef %347, ptr noundef %14)
  %349 = icmp ne i32 %348, 0
  br i1 %349, label %350, label %351

350:                                              ; preds = %342
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %351

351:                                              ; preds = %350, %342
  %352 = load ptr, ptr %3, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.qhT, ptr %352, i32 0, i32 163
  %354 = load ptr, ptr %353, align 8, !tbaa !34
  store ptr %354, ptr %5, align 8, !tbaa !5
  br label %355

355:                                              ; preds = %392, %351
  %356 = load ptr, ptr %5, align 8, !tbaa !5
  %357 = icmp ne ptr %356, null
  br i1 %357, label %358, label %363

358:                                              ; preds = %355
  %359 = load ptr, ptr %5, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.facetT, ptr %359, i32 0, i32 7
  %361 = load ptr, ptr %360, align 8, !tbaa !35
  %362 = icmp ne ptr %361, null
  br label %363

363:                                              ; preds = %358, %355
  %364 = phi i1 [ false, %355 ], [ %362, %358 ]
  br i1 %364, label %365, label %396

365:                                              ; preds = %363
  %366 = load ptr, ptr %3, align 8, !tbaa !5
  %367 = load ptr, ptr %5, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.facetT, ptr %367, i32 0, i32 11
  call void @qh_setfreelong(ptr noundef %366, ptr noundef %368)
  %369 = load ptr, ptr %3, align 8, !tbaa !5
  %370 = load ptr, ptr %5, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.facetT, ptr %370, i32 0, i32 12
  call void @qh_setfreelong(ptr noundef %369, ptr noundef %371)
  %372 = load ptr, ptr %5, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.facetT, ptr %372, i32 0, i32 15
  %374 = load i32, ptr %373, align 8
  %375 = lshr i32 %374, 13
  %376 = and i32 %375, 1
  %377 = icmp ne i32 %376, 0
  br i1 %377, label %378, label %381

378:                                              ; preds = %365
  %379 = load i32, ptr %15, align 4, !tbaa !9
  %380 = icmp ne i32 %379, 0
  br i1 %380, label %381, label %391

381:                                              ; preds = %378, %365
  %382 = load ptr, ptr %3, align 8, !tbaa !5
  %383 = load ptr, ptr %5, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.facetT, ptr %383, i32 0, i32 10
  call void @qh_setfreelong(ptr noundef %382, ptr noundef %384)
  %385 = load ptr, ptr %3, align 8, !tbaa !5
  %386 = load ptr, ptr %5, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.facetT, ptr %386, i32 0, i32 9
  call void @qh_setfreelong(ptr noundef %385, ptr noundef %387)
  %388 = load ptr, ptr %3, align 8, !tbaa !5
  %389 = load ptr, ptr %5, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.facetT, ptr %389, i32 0, i32 8
  call void @qh_setfreelong(ptr noundef %388, ptr noundef %390)
  br label %391

391:                                              ; preds = %381, %378
  br label %392

392:                                              ; preds = %391
  %393 = load ptr, ptr %5, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.facetT, ptr %393, i32 0, i32 7
  %395 = load ptr, ptr %394, align 8, !tbaa !35
  store ptr %395, ptr %5, align 8, !tbaa !5
  br label %355, !llvm.loop !47

396:                                              ; preds = %363
  br label %397

397:                                              ; preds = %396, %341
  %398 = load ptr, ptr %3, align 8, !tbaa !5
  %399 = load ptr, ptr %3, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.qhT, ptr %399, i32 0, i32 159
  %401 = load ptr, ptr %400, align 8, !tbaa !48
  %402 = load ptr, ptr %3, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.qhT, ptr %402, i32 0, i32 160
  %404 = load i32, ptr %403, align 8, !tbaa !49
  call void @qh_memfree(ptr noundef %398, ptr noundef %401, i32 noundef %404)
  %405 = load ptr, ptr %3, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.qhT, ptr %405, i32 0, i32 159
  store ptr null, ptr %406, align 8, !tbaa !48
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  ret void
}

declare void @qh_settempfree_all(ptr noundef) #1

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

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

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

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

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

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

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

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

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

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


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

@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [56 x i8], align 1

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

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

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

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

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

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

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 2424
  %9 = load ptr, ptr %8, align 8, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %9, i32 noundef 5004, ptr noundef nonnull @.str.7) #4
  br label %10

10:                                               ; preds = %7, %2
  %11 = getelementptr inbounds i8, ptr %0, i64 2800
  %12 = load ptr, ptr %11, align 8, !tbaa !16
  %.not = icmp eq ptr %12, null
  br i1 %.not, label %.loopexit185, label %.preheader184

.preheader184:                                    ; preds = %10
  %.0126189 = getelementptr inbounds i8, ptr %12, i64 8
  %13 = load ptr, ptr %.0126189, align 8, !tbaa !17
  %.not145190 = icmp eq ptr %13, null
  br i1 %.not145190, label %.loopexit185, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader184, %.lr.ph
  %14 = phi ptr [ %15, %.lr.ph ], [ %13, %.preheader184 ]
  %.0126191 = phi ptr [ %.0126, %.lr.ph ], [ %.0126189, %.preheader184 ]
  tail call void @qh_memfree(ptr noundef %0, ptr noundef nonnull %14, i32 noundef 72) #4
  %.0126 = getelementptr inbounds i8, ptr %.0126191, i64 8
  %15 = load ptr, ptr %.0126, align 8, !tbaa !17
  %.not145 = icmp eq ptr %15, null
  br i1 %.not145, label %.loopexit185, label %.lr.ph, !llvm.loop !18

.loopexit185:                                     ; preds = %.lr.ph, %.preheader184, %10
  %16 = getelementptr inbounds i8, ptr %0, i64 2808
  %17 = load ptr, ptr %16, align 8, !tbaa !20
  %.not146 = icmp eq ptr %17, null
  br i1 %.not146, label %.loopexit183, label %.preheader182

.preheader182:                                    ; preds = %.loopexit185
  %.1192 = getelementptr inbounds i8, ptr %17, i64 8
  %18 = load ptr, ptr %.1192, align 8, !tbaa !17
  %.not148193 = icmp eq ptr %18, null
  br i1 %.not148193, label %.loopexit183, label %.lr.ph195

.lr.ph195:                                        ; preds = %.preheader182, %.lr.ph195
  %19 = phi ptr [ %20, %.lr.ph195 ], [ %18, %.preheader182 ]
  %.1194 = phi ptr [ %.1, %.lr.ph195 ], [ %.1192, %.preheader182 ]
  tail call void @qh_memfree(ptr noundef %0, ptr noundef nonnull %19, i32 noundef 72) #4
  %.1 = getelementptr inbounds i8, ptr %.1194, i64 8
  %20 = load ptr, ptr %.1, align 8, !tbaa !17
  %.not148 = icmp eq ptr %20, null
  br i1 %.not148, label %.loopexit183, label %.lr.ph195, !llvm.loop !21

.loopexit183:                                     ; preds = %.lr.ph195, %.preheader182, %.loopexit185
  %21 = getelementptr inbounds i8, ptr %0, i64 2816
  %22 = load ptr, ptr %21, align 8, !tbaa !22
  %.not149 = icmp eq ptr %22, null
  br i1 %.not149, label %.loopexit181, label %.preheader180

.preheader180:                                    ; preds = %.loopexit183
  %.2196 = getelementptr inbounds i8, ptr %22, i64 8
  %23 = load ptr, ptr %.2196, align 8, !tbaa !17
  %.not151197 = icmp eq ptr %23, null
  br i1 %.not151197, label %.loopexit181, label %.lr.ph199

.lr.ph199:                                        ; preds = %.preheader180, %.lr.ph199
  %24 = phi ptr [ %25, %.lr.ph199 ], [ %23, %.preheader180 ]
  %.2198 = phi ptr [ %.2, %.lr.ph199 ], [ %.2196, %.preheader180 ]
  tail call void @qh_memfree(ptr noundef %0, ptr noundef nonnull %24, i32 noundef 72) #4
  %.2 = getelementptr inbounds i8, ptr %.2198, i64 8
  %25 = load ptr, ptr %.2, align 8, !tbaa !17
  %.not151 = icmp eq ptr %25, null
  br i1 %.not151, label %.loopexit181, label %.lr.ph199, !llvm.loop !23

.loopexit181:                                     ; preds = %.lr.ph199, %.preheader180, %.loopexit183
  %26 = getelementptr inbounds i8, ptr %0, i64 2824
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, i8 0, i64 24, i1 false)
  tail call void @qh_setfree(ptr noundef %0, ptr noundef nonnull %26) #4
  %27 = load i32, ptr %4, align 8, !tbaa !5
  %28 = icmp sgt i32 %27, 4
  br i1 %28, label %29, label %32

29:                                               ; preds = %.loopexit181
  %30 = getelementptr inbounds i8, ptr %0, i64 2424
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %31, i32 noundef 5003, ptr noundef nonnull @.str.8) #4
  br label %32

32:                                               ; preds = %29, %.loopexit181
  tail call void @qh_settempfree_all(ptr noundef nonnull %0) #4
  %33 = load i32, ptr %4, align 8, !tbaa !5
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %35, label %38

35:                                               ; preds = %32
  %36 = getelementptr inbounds i8, ptr %0, i64 2424
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %37, i32 noundef 1005, ptr noundef nonnull @.str.9) #4
  br label %38

38:                                               ; preds = %35, %32
  %39 = getelementptr inbounds i8, ptr %0, i64 2840
  %40 = load ptr, ptr %39, align 8, !tbaa !24
  %.not152 = icmp eq ptr %40, null
  br i1 %.not152, label %42, label %41

41:                                               ; preds = %38
  tail call void @qh_settruncate(ptr noundef nonnull %0, ptr noundef nonnull %40, i32 noundef 0) #4
  br label %42

42:                                               ; preds = %41, %38
  %.not153 = icmp eq i32 %1, 0
  br i1 %.not153, label %53, label %.preheader178

.preheader178:                                    ; preds = %42
  %43 = getelementptr inbounds i8, ptr %0, i64 2544
  %44 = load ptr, ptr %43, align 8, !tbaa !25
  %.not157200 = icmp eq ptr %44, null
  br i1 %.not157200, label %.critedge.thread233, label %.lr.ph201

.critedge.thread233:                              ; preds = %.preheader178
  %45 = getelementptr inbounds i8, ptr %0, i64 1720
  store i32 0, ptr %45, align 8, !tbaa !26
  %46 = getelementptr inbounds i8, ptr %0, i64 2632
  store ptr null, ptr %46, align 8, !tbaa !27
  br label %64

.lr.ph201:                                        ; preds = %.preheader178, %49
  %47 = phi ptr [ %50, %49 ], [ %44, %.preheader178 ]
  %48 = load ptr, ptr %47, align 8, !tbaa !28
  %.not158 = icmp eq ptr %48, null
  br i1 %.not158, label %51, label %49

49:                                               ; preds = %.lr.ph201
  tail call void @qh_delvertex(ptr noundef nonnull %0, ptr noundef nonnull %47) #4
  %50 = load ptr, ptr %43, align 8, !tbaa !25
  %.not157 = icmp eq ptr %50, null
  br i1 %.not157, label %.critedge, label %.lr.ph201, !llvm.loop !30

51:                                               ; preds = %.lr.ph201
  tail call void @qh_memfree(ptr noundef nonnull %0, ptr noundef nonnull %47, i32 noundef 48) #4
  store ptr null, ptr %43, align 8, !tbaa !25
  %52 = getelementptr inbounds i8, ptr %0, i64 2560
  store ptr null, ptr %52, align 8, !tbaa !31
  br label %.critedge

53:                                               ; preds = %42
  %54 = getelementptr inbounds i8, ptr %0, i64 1720
  %55 = load i32, ptr %54, align 8, !tbaa !26
  %.not154 = icmp eq i32 %55, 0
  br i1 %.not154, label %.sink.split, label %56

56:                                               ; preds = %53
  %57 = getelementptr inbounds i8, ptr %0, i64 2544
  %.0129202 = load ptr, ptr %57, align 8, !tbaa !17
  %.not155203 = icmp eq ptr %.0129202, null
  br i1 %.not155203, label %.critedge.thread232, label %.lr.ph205

.critedge.thread232:                              ; preds = %56
  %58 = getelementptr inbounds i8, ptr %0, i64 1720
  store i32 0, ptr %58, align 8, !tbaa !26
  br label %.sink.split

.lr.ph205:                                        ; preds = %56, %60
  %.0129204 = phi ptr [ %.0129, %60 ], [ %.0129202, %56 ]
  %59 = load ptr, ptr %.0129204, align 8, !tbaa !28
  %.not156 = icmp eq ptr %59, null
  br i1 %.not156, label %.critedge, label %60

60:                                               ; preds = %.lr.ph205
  %61 = getelementptr inbounds i8, ptr %.0129204, i64 24
  tail call void @qh_setfreelong(ptr noundef %0, ptr noundef nonnull %61) #4
  %.0129 = load ptr, ptr %.0129204, align 8, !tbaa !17
  %.not155 = icmp eq ptr %.0129, null
  br i1 %.not155, label %.critedge, label %.lr.ph205, !llvm.loop !32

.critedge:                                        ; preds = %49, %.lr.ph205, %60, %51
  %62 = getelementptr inbounds i8, ptr %0, i64 1720
  store i32 0, ptr %62, align 8, !tbaa !26
  %63 = getelementptr inbounds i8, ptr %0, i64 2632
  store ptr null, ptr %63, align 8, !tbaa !27
  br i1 %.not153, label %121, label %64

64:                                               ; preds = %.critedge.thread233, %.critedge
  %65 = getelementptr inbounds i8, ptr %0, i64 2456
  %.0130211 = load ptr, ptr %65, align 8, !tbaa !17
  %.not162212 = icmp eq ptr %.0130211, null
  br i1 %.not162212, label %.critedge4, label %.lr.ph214

.lr.ph214:                                        ; preds = %64, %.loopexit177
  %.0130213 = phi ptr [ %.0130, %.loopexit177 ], [ %.0130211, %64 ]
  %66 = getelementptr inbounds i8, ptr %.0130213, i64 56
  %67 = load ptr, ptr %66, align 8, !tbaa !17
  %.not163 = icmp eq ptr %67, null
  br i1 %.not163, label %.critedge2, label %68

68:                                               ; preds = %.lr.ph214
  %69 = getelementptr inbounds i8, ptr %.0130213, i64 72
  %70 = load ptr, ptr %69, align 8, !tbaa !33
  %.not172 = icmp eq ptr %70, null
  br i1 %.not172, label %.loopexit177, label %.preheader176

.preheader176:                                    ; preds = %68
  %.0127207 = getelementptr inbounds i8, ptr %70, i64 8
  %71 = load ptr, ptr %.0127207, align 8, !tbaa !17
  %.not174208 = icmp eq ptr %71, null
  br i1 %.not174208, label %.loopexit177, label %.lr.ph210

.lr.ph210:                                        ; preds = %.preheader176, %.lr.ph210
  %72 = phi ptr [ %76, %.lr.ph210 ], [ %71, %.preheader176 ]
  %.0127209 = phi ptr [ %.0127, %.lr.ph210 ], [ %.0127207, %.preheader176 ]
  %73 = getelementptr inbounds i8, ptr %72, i64 28
  %74 = load i8, ptr %73, align 4
  %75 = and i8 %74, -2
  store i8 %75, ptr %73, align 4
  %.0127 = getelementptr inbounds i8, ptr %.0127209, i64 8
  %76 = load ptr, ptr %.0127, align 8, !tbaa !17
  %.not174 = icmp eq ptr %76, null
  br i1 %.not174, label %.loopexit177.loopexit, label %.lr.ph210, !llvm.loop !35

.loopexit177.loopexit:                            ; preds = %.lr.ph210
  %.0130.pre = load ptr, ptr %66, align 8, !tbaa !17
  br label %.loopexit177

.loopexit177:                                     ; preds = %.loopexit177.loopexit, %.preheader176, %68
  %.0130 = phi ptr [ %.0130.pre, %.loopexit177.loopexit ], [ %67, %.preheader176 ], [ %67, %68 ]
  %.not162 = icmp eq ptr %.0130, null
  br i1 %.not162, label %.critedge2, label %.lr.ph214, !llvm.loop !36

.critedge2:                                       ; preds = %.lr.ph214, %.loopexit177
  %.pre = load ptr, ptr %65, align 8, !tbaa !37
  %.not164220 = icmp eq ptr %.pre, null
  br i1 %.not164220, label %.critedge4, label %.lr.ph221

.lr.ph221:                                        ; preds = %.critedge2
  %77 = getelementptr inbounds i8, ptr %0, i64 2708
  %78 = getelementptr inbounds i8, ptr %0, i64 2424
  %79 = getelementptr inbounds i8, ptr %0, i64 2480
  br label %80

80:                                               ; preds = %.lr.ph221, %119
  %81 = phi ptr [ %.pre, %.lr.ph221 ], [ %.pre231, %119 ]
  %82 = getelementptr inbounds i8, ptr %81, i64 112
  %83 = load i32, ptr %82, align 8
  %84 = and i32 %83, 1024
  %.not165 = icmp eq i32 %84, 0
  br i1 %.not165, label %92, label %85

85:                                               ; preds = %80
  %86 = load i32, ptr %77, align 4, !tbaa !38
  %.not166 = icmp eq i32 %86, 0
  br i1 %.not166, label %92, label %87

87:                                               ; preds = %85
  %88 = getelementptr inbounds i8, ptr %81, i64 72
  %89 = load ptr, ptr %88, align 8, !tbaa !33
  %90 = tail call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef %89) #4
  %91 = icmp sgt i32 %90, 1
  br i1 %91, label %92, label %.loopexit

92:                                               ; preds = %87, %85, %80
  %93 = load i32, ptr %4, align 8, !tbaa !5
  %94 = icmp sgt i32 %93, 3
  br i1 %94, label %95, label %99

95:                                               ; preds = %92
  %96 = load ptr, ptr %78, align 8, !tbaa !15
  %97 = getelementptr inbounds i8, ptr %81, i64 108
  %98 = load i32, ptr %97, align 4, !tbaa !39
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %96, i32 noundef 4095, ptr noundef nonnull @.str.10, i32 noundef %98) #4
  br label %99

99:                                               ; preds = %95, %92
  %100 = getelementptr inbounds i8, ptr %81, i64 72
  %101 = load ptr, ptr %100, align 8, !tbaa !33
  %.not167 = icmp eq ptr %101, null
  br i1 %.not167, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %99
  %.1128216 = getelementptr inbounds i8, ptr %101, i64 8
  %102 = load ptr, ptr %.1128216, align 8, !tbaa !17
  %.not169217 = icmp eq ptr %102, null
  br i1 %.not169217, label %.loopexit, label %.lr.ph219

.lr.ph219:                                        ; preds = %.preheader, %110
  %103 = phi ptr [ %111, %110 ], [ %102, %.preheader ]
  %.1128218 = phi ptr [ %.1128, %110 ], [ %.1128216, %.preheader ]
  %104 = getelementptr inbounds i8, ptr %103, i64 28
  %105 = load i8, ptr %104, align 4
  %106 = and i8 %105, 1
  %.not171 = icmp eq i8 %106, 0
  br i1 %.not171, label %108, label %107

107:                                              ; preds = %.lr.ph219
  tail call void @qh_delridge(ptr noundef %0, ptr noundef nonnull %103) #4
  br label %110

108:                                              ; preds = %.lr.ph219
  %109 = or disjoint i8 %105, 1
  store i8 %109, ptr %104, align 4
  br label %110

110:                                              ; preds = %108, %107
  %.1128 = getelementptr inbounds i8, ptr %.1128218, i64 8
  %111 = load ptr, ptr %.1128, align 8, !tbaa !17
  %.not169 = icmp eq ptr %111, null
  br i1 %.not169, label %.loopexit, label %.lr.ph219, !llvm.loop !40

.loopexit:                                        ; preds = %110, %.preheader, %99, %87
  %112 = getelementptr inbounds i8, ptr %81, i64 88
  tail call void @qh_setfree(ptr noundef %0, ptr noundef nonnull %112) #4
  %113 = getelementptr inbounds i8, ptr %81, i64 96
  tail call void @qh_setfree(ptr noundef %0, ptr noundef nonnull %113) #4
  %114 = getelementptr inbounds i8, ptr %81, i64 80
  tail call void @qh_setfree(ptr noundef %0, ptr noundef nonnull %114) #4
  %115 = getelementptr inbounds i8, ptr %81, i64 72
  tail call void @qh_setfree(ptr noundef %0, ptr noundef nonnull %115) #4
  %116 = getelementptr inbounds i8, ptr %81, i64 64
  tail call void @qh_setfree(ptr noundef %0, ptr noundef nonnull %116) #4
  %117 = getelementptr inbounds i8, ptr %81, i64 56
  %118 = load ptr, ptr %117, align 8, !tbaa !41
  %.not170 = icmp eq ptr %118, null
  br i1 %.not170, label %.thread, label %119

.thread:                                          ; preds = %.loopexit
  tail call void @qh_memfree(ptr noundef %0, ptr noundef nonnull %81, i32 noundef 120) #4
  store ptr null, ptr %65, align 8, !tbaa !37
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %79, i8 0, i64 16, i1 false)
  br label %.critedge4

119:                                              ; preds = %.loopexit
  tail call void @qh_delfacet(ptr noundef %0, ptr noundef nonnull %81) #4
  %.pre231 = load ptr, ptr %65, align 8, !tbaa !37
  %.not164 = icmp eq ptr %.pre231, null
  br i1 %.not164, label %.critedge4, label %80, !llvm.loop !42

.sink.split:                                      ; preds = %53, %.critedge.thread232
  %120 = getelementptr inbounds i8, ptr %0, i64 2632
  store ptr null, ptr %120, align 8, !tbaa !27
  br label %121

121:                                              ; preds = %.sink.split, %.critedge
  %122 = getelementptr inbounds i8, ptr %0, i64 632
  %123 = load i32, ptr %122, align 8, !tbaa !43
  %124 = add nsw i32 %123, 1
  %125 = call i32 @qh_setlarger_quick(ptr noundef nonnull %0, i32 noundef %124, ptr noundef nonnull %3) #4
  %.not159 = icmp eq i32 %125, 0
  %126 = getelementptr inbounds i8, ptr %0, i64 2456
  %.1131222 = load ptr, ptr %126, align 8, !tbaa !17
  %.not160223 = icmp eq ptr %.1131222, null
  br i1 %.not160223, label %.critedge4, label %.lr.ph225

.lr.ph225:                                        ; preds = %121, %140
  %.1131224 = phi ptr [ %.1131, %140 ], [ %.1131222, %121 ]
  %127 = getelementptr inbounds i8, ptr %.1131224, i64 56
  %128 = load ptr, ptr %127, align 8, !tbaa !41
  %.not161 = icmp eq ptr %128, null
  br i1 %.not161, label %.critedge4, label %129

129:                                              ; preds = %.lr.ph225
  %130 = getelementptr inbounds i8, ptr %.1131224, i64 88
  call void @qh_setfreelong(ptr noundef %0, ptr noundef nonnull %130) #4
  %131 = getelementptr inbounds i8, ptr %.1131224, i64 96
  call void @qh_setfreelong(ptr noundef %0, ptr noundef nonnull %131) #4
  %132 = getelementptr inbounds i8, ptr %.1131224, i64 112
  %133 = load i32, ptr %132, align 8
  %134 = and i32 %133, 8192
  %135 = icmp eq i32 %134, 0
  %or.cond = or i1 %.not159, %135
  br i1 %or.cond, label %136, label %140

136:                                              ; preds = %129
  %137 = getelementptr inbounds i8, ptr %.1131224, i64 80
  call void @qh_setfreelong(ptr noundef %0, ptr noundef nonnull %137) #4
  %138 = getelementptr inbounds i8, ptr %.1131224, i64 72
  call void @qh_setfreelong(ptr noundef %0, ptr noundef nonnull %138) #4
  %139 = getelementptr inbounds i8, ptr %.1131224, i64 64
  call void @qh_setfreelong(ptr noundef %0, ptr noundef nonnull %139) #4
  br label %140

140:                                              ; preds = %136, %129
  %.1131 = load ptr, ptr %127, align 8, !tbaa !17
  %.not160 = icmp eq ptr %.1131, null
  br i1 %.not160, label %.critedge4, label %.lr.ph225, !llvm.loop !44

.critedge4:                                       ; preds = %119, %140, %.lr.ph225, %64, %.thread, %.critedge2, %121
  %141 = getelementptr inbounds i8, ptr %0, i64 2432
  %142 = load ptr, ptr %141, align 8, !tbaa !45
  %143 = getelementptr inbounds i8, ptr %0, i64 2440
  %144 = load i32, ptr %143, align 8, !tbaa !46
  call void @qh_memfree(ptr noundef %0, ptr noundef %142, i32 noundef %144) #4
  store ptr null, ptr %141, align 8, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  ret void
}

declare void @qh_settempfree_all(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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


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