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

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

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

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.90 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [61 x i8], align 1

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

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

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

declare i32 @qh_setsize(ptr noundef) #1

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

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

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

declare void @qh_setfree(ptr noundef) #1

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

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

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

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

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

20:                                               ; preds = %3
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.facetT, ptr %21, i32 0, i32 15
  %23 = load i32, ptr %22, align 8
  %24 = lshr i32 %23, 10
  %25 = and i32 %24, 1
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %31, label %27

27:                                               ; preds = %20
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.facetT, ptr %28, i32 0, i32 8
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  call void @qh_newvertices(ptr noundef %30)
  br label %31

31:                                               ; preds = %27, %20
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.facetT, ptr %32, i32 0, i32 8
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = getelementptr inbounds %struct.setT, ptr %34, i32 0, i32 1
  %36 = getelementptr inbounds [1 x %union.setelemT], ptr %35, i64 0, i64 0
  %37 = load ptr, ptr %36, align 8, !tbaa !14
  store ptr %37, ptr %9, align 8, !tbaa !5
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.facetT, ptr %38, i32 0, i32 8
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = getelementptr inbounds %struct.setT, ptr %40, i32 0, i32 1
  %42 = getelementptr inbounds [1 x %union.setelemT], ptr %41, i64 0, i64 0
  %43 = load ptr, ptr %42, align 8, !tbaa !14
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = icmp ne ptr %43, %44
  br i1 %45, label %46, label %50

46:                                               ; preds = %31
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.facetT, ptr %47, i32 0, i32 8
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_setaddnth(ptr noundef %48, i32 noundef 0, ptr noundef %49)
  br label %51

50:                                               ; preds = %31
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %50, %46
  br label %266

52:                                               ; preds = %3
  %53 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 131), align 8, !tbaa !14
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 131), align 8, !tbaa !14
  store ptr null, ptr %7, align 8, !tbaa !5
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.facetT, ptr %55, i32 0, i32 8
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %77

59:                                               ; preds = %52
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.facetT, ptr %60, i32 0, i32 8
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = getelementptr inbounds %struct.setT, ptr %62, i32 0, i32 1
  %64 = getelementptr inbounds [1 x %union.setelemT], ptr %63, i64 0, i64 0
  store ptr %64, ptr %8, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %70, %59
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds ptr, ptr %66, i32 1
  store ptr %67, ptr %8, align 8, !tbaa !5
  %68 = load ptr, ptr %66, align 8, !tbaa !5
  store ptr %68, ptr %7, align 8, !tbaa !5
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %76

70:                                               ; preds = %65
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.vertexT, ptr %71, i32 0, i32 6
  %73 = load i8, ptr %72, align 8
  %74 = and i8 %73, -2
  %75 = or i8 %74, 0
  store i8 %75, ptr %72, align 8
  br label %65, !llvm.loop !15

76:                                               ; preds = %65
  br label %77

77:                                               ; preds = %76, %52
  store ptr null, ptr %10, align 8, !tbaa !5
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.facetT, ptr %78, i32 0, i32 9
  %80 = load ptr, ptr %79, align 8, !tbaa !17
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %142

82:                                               ; preds = %77
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.facetT, ptr %83, i32 0, i32 9
  %85 = load ptr, ptr %84, align 8, !tbaa !17
  %86 = getelementptr inbounds %struct.setT, ptr %85, i32 0, i32 1
  %87 = getelementptr inbounds [1 x %union.setelemT], ptr %86, i64 0, i64 0
  store ptr %87, ptr %11, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %140, %82
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds ptr, ptr %89, i32 1
  store ptr %90, ptr %11, align 8, !tbaa !5
  %91 = load ptr, ptr %89, align 8, !tbaa !5
  store ptr %91, ptr %10, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %141

93:                                               ; preds = %88
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ridgeT, ptr %94, i32 0, i32 1
  %96 = load ptr, ptr %95, align 8, !tbaa !18
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = icmp eq ptr %96, %97
  br i1 %98, label %99, label %103

99:                                               ; preds = %93
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.ridgeT, ptr %100, i32 0, i32 2
  %102 = load ptr, ptr %101, align 8, !tbaa !20
  br label %107

103:                                              ; preds = %93
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ridgeT, ptr %104, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !18
  br label %107

107:                                              ; preds = %103, %99
  %108 = phi ptr [ %102, %99 ], [ %106, %103 ]
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = icmp eq ptr %108, %109
  br i1 %110, label %111, label %140

111:                                              ; preds = %107
  store ptr null, ptr %7, align 8, !tbaa !5
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.ridgeT, ptr %112, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8, !tbaa !21
  %115 = icmp ne ptr %114, null
  br i1 %115, label %116, label %139

116:                                              ; preds = %111
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.ridgeT, ptr %117, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !21
  %120 = getelementptr inbounds %struct.setT, ptr %119, i32 0, i32 1
  %121 = getelementptr inbounds [1 x %union.setelemT], ptr %120, i64 0, i64 0
  store ptr %121, ptr %8, align 8, !tbaa !5
  br label %122

122:                                              ; preds = %127, %116
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = getelementptr inbounds ptr, ptr %123, i32 1
  store ptr %124, ptr %8, align 8, !tbaa !5
  %125 = load ptr, ptr %123, align 8, !tbaa !5
  store ptr %125, ptr %7, align 8, !tbaa !5
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %138

127:                                              ; preds = %122
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.vertexT, ptr %128, i32 0, i32 6
  %130 = load i8, ptr %129, align 8
  %131 = and i8 %130, -2
  %132 = or i8 %131, 1
  store i8 %132, ptr %129, align 8
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.vertexT, ptr %133, i32 0, i32 6
  %135 = load i8, ptr %134, align 8
  %136 = and i8 %135, -5
  %137 = or i8 %136, 4
  store i8 %137, ptr %134, align 8
  br label %122, !llvm.loop !22

138:                                              ; preds = %122
  br label %139

139:                                              ; preds = %138, %111
  br label %141

140:                                              ; preds = %107
  br label %88, !llvm.loop !23

141:                                              ; preds = %139, %88
  br label %142

142:                                              ; preds = %141, %77
  store ptr null, ptr %7, align 8, !tbaa !5
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.facetT, ptr %143, i32 0, i32 8
  %145 = load ptr, ptr %144, align 8, !tbaa !11
  %146 = icmp ne ptr %145, null
  br i1 %146, label %147, label %168

147:                                              ; preds = %142
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.facetT, ptr %148, i32 0, i32 8
  %150 = load ptr, ptr %149, align 8, !tbaa !11
  %151 = getelementptr inbounds %struct.setT, ptr %150, i32 0, i32 1
  %152 = getelementptr inbounds [1 x %union.setelemT], ptr %151, i64 0, i64 0
  store ptr %152, ptr %8, align 8, !tbaa !5
  br label %153

153:                                              ; preds = %166, %147
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = getelementptr inbounds ptr, ptr %154, i32 1
  store ptr %155, ptr %8, align 8, !tbaa !5
  %156 = load ptr, ptr %154, align 8, !tbaa !5
  store ptr %156, ptr %7, align 8, !tbaa !5
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %167

158:                                              ; preds = %153
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.vertexT, ptr %159, i32 0, i32 6
  %161 = load i8, ptr %160, align 8
  %162 = and i8 %161, 1
  %163 = zext i8 %162 to i32
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %166, label %165

165:                                              ; preds = %158
  br label %167

166:                                              ; preds = %158
  br label %153, !llvm.loop !24

167:                                              ; preds = %165, %153
  br label %168

168:                                              ; preds = %167, %142
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %169, ptr %9, align 8, !tbaa !5
  %170 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !25
  %171 = icmp sge i32 %170, 4
  br i1 %171, label %172, label %183

172:                                              ; preds = %168
  %173 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !28
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.vertexT, ptr %174, i32 0, i32 4
  %176 = load i32, ptr %175, align 8, !tbaa !29
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.facetT, ptr %177, i32 0, i32 14
  %179 = load i32, ptr %178, align 4, !tbaa !31
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.facetT, ptr %180, i32 0, i32 14
  %182 = load i32, ptr %181, align 4, !tbaa !31
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %173, i32 noundef 4039, ptr noundef @.str.90, i32 noundef %176, i32 noundef %179, i32 noundef %182)
  br label %183

183:                                              ; preds = %172, %168
  store ptr null, ptr %7, align 8, !tbaa !5
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.facetT, ptr %184, i32 0, i32 8
  %186 = load ptr, ptr %185, align 8, !tbaa !11
  %187 = icmp ne ptr %186, null
  br i1 %187, label %188, label %234

188:                                              ; preds = %183
  store i32 0, ptr %13, align 4, !tbaa !9
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.facetT, ptr %189, i32 0, i32 8
  %191 = load ptr, ptr %190, align 8, !tbaa !11
  %192 = getelementptr inbounds %struct.setT, ptr %191, i32 0, i32 1
  %193 = getelementptr inbounds [1 x %union.setelemT], ptr %192, i64 0, i64 0
  %194 = load ptr, ptr %193, align 8, !tbaa !14
  store ptr %194, ptr %7, align 8, !tbaa !5
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.facetT, ptr %195, i32 0, i32 8
  %197 = load ptr, ptr %196, align 8, !tbaa !11
  %198 = call i32 @qh_setsize(ptr noundef %197)
  store i32 %198, ptr %14, align 4, !tbaa !9
  br label %199

199:                                              ; preds = %223, %188
  %200 = load i32, ptr %13, align 4, !tbaa !9
  %201 = load i32, ptr %14, align 4, !tbaa !9
  %202 = icmp slt i32 %200, %201
  br i1 %202, label %203, label %233

203:                                              ; preds = %199
  %204 = load ptr, ptr %7, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.vertexT, ptr %204, i32 0, i32 4
  %206 = load i32, ptr %205, align 8, !tbaa !29
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.vertexT, ptr %207, i32 0, i32 4
  %209 = load i32, ptr %208, align 8, !tbaa !29
  %210 = icmp ult i32 %206, %209
  br i1 %210, label %211, label %212

211:                                              ; preds = %203
  br label %233

212:                                              ; preds = %203
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.vertexT, ptr %213, i32 0, i32 4
  %215 = load i32, ptr %214, align 8, !tbaa !29
  %216 = load ptr, ptr %9, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.vertexT, ptr %216, i32 0, i32 4
  %218 = load i32, ptr %217, align 8, !tbaa !29
  %219 = icmp eq i32 %215, %218
  br i1 %219, label %220, label %221

220:                                              ; preds = %212
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %233

221:                                              ; preds = %212
  br label %222

222:                                              ; preds = %221
  br label %223

223:                                              ; preds = %222
  %224 = load ptr, ptr %5, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.facetT, ptr %224, i32 0, i32 8
  %226 = load ptr, ptr %225, align 8, !tbaa !11
  %227 = getelementptr inbounds %struct.setT, ptr %226, i32 0, i32 1
  %228 = load i32, ptr %13, align 4, !tbaa !9
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %13, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [1 x %union.setelemT], ptr %227, i64 0, i64 %230
  %232 = load ptr, ptr %231, align 8, !tbaa !14
  store ptr %232, ptr %7, align 8, !tbaa !5
  br label %199, !llvm.loop !32

233:                                              ; preds = %220, %211, %199
  br label %234

234:                                              ; preds = %233, %183
  %235 = load i32, ptr %12, align 4, !tbaa !9
  %236 = icmp ne i32 %235, 0
  br i1 %236, label %242, label %237

237:                                              ; preds = %234
  %238 = load ptr, ptr %5, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.facetT, ptr %238, i32 0, i32 8
  %240 = load i32, ptr %13, align 4, !tbaa !9
  %241 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_setaddnth(ptr noundef %239, i32 noundef %240, ptr noundef %241)
  br label %242

242:                                              ; preds = %237, %234
  %243 = load ptr, ptr %5, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.facetT, ptr %243, i32 0, i32 15
  %245 = load i32, ptr %244, align 8
  %246 = lshr i32 %245, 10
  %247 = and i32 %246, 1
  %248 = icmp ne i32 %247, 0
  br i1 %248, label %253, label %249

249:                                              ; preds = %242
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.facetT, ptr %250, i32 0, i32 8
  %252 = load ptr, ptr %251, align 8, !tbaa !11
  call void @qh_newvertices(ptr noundef %252)
  br label %265

253:                                              ; preds = %242
  %254 = load ptr, ptr %9, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.vertexT, ptr %254, i32 0, i32 6
  %256 = load i8, ptr %255, align 8
  %257 = lshr i8 %256, 4
  %258 = and i8 %257, 1
  %259 = zext i8 %258 to i32
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %264, label %261

261:                                              ; preds = %253
  %262 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_removevertex(ptr noundef %262)
  %263 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_appendvertex(ptr noundef %263)
  br label %264

264:                                              ; preds = %261, %253
  br label %265

265:                                              ; preds = %264, %249
  br label %266

266:                                              ; preds = %265, %51
  %267 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !25
  %268 = icmp sge i32 %267, 4
  br i1 %268, label %269, label %274

269:                                              ; preds = %266
  %270 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !28
  %271 = load ptr, ptr %4, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.facetT, ptr %271, i32 0, i32 14
  %273 = load i32, ptr %272, align 4, !tbaa !31
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %270, i32 noundef 4040, ptr noundef @.str.91, i32 noundef %273)
  br label %274

274:                                              ; preds = %269, %266
  store ptr null, ptr %7, align 8, !tbaa !5
  %275 = load ptr, ptr %4, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.facetT, ptr %275, i32 0, i32 8
  %277 = load ptr, ptr %276, align 8, !tbaa !11
  %278 = icmp ne ptr %277, null
  br i1 %278, label %279, label %323

279:                                              ; preds = %274
  %280 = load ptr, ptr %4, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.facetT, ptr %280, i32 0, i32 8
  %282 = load ptr, ptr %281, align 8, !tbaa !11
  %283 = getelementptr inbounds %struct.setT, ptr %282, i32 0, i32 1
  %284 = getelementptr inbounds [1 x %union.setelemT], ptr %283, i64 0, i64 0
  store ptr %284, ptr %8, align 8, !tbaa !5
  br label %285

285:                                              ; preds = %321, %279
  %286 = load ptr, ptr %8, align 8, !tbaa !5
  %287 = getelementptr inbounds ptr, ptr %286, i32 1
  store ptr %287, ptr %8, align 8, !tbaa !5
  %288 = load ptr, ptr %286, align 8, !tbaa !5
  store ptr %288, ptr %7, align 8, !tbaa !5
  %289 = icmp ne ptr %288, null
  br i1 %289, label %290, label %322

290:                                              ; preds = %285
  %291 = load ptr, ptr %7, align 8, !tbaa !5
  %292 = load ptr, ptr %9, align 8, !tbaa !5
  %293 = icmp eq ptr %291, %292
  br i1 %293, label %294, label %303

294:                                              ; preds = %290
  %295 = load i32, ptr %12, align 4, !tbaa !9
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %303, label %297

297:                                              ; preds = %294
  %298 = load ptr, ptr %7, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.vertexT, ptr %298, i32 0, i32 3
  %300 = load ptr, ptr %299, align 8, !tbaa !33
  %301 = load ptr, ptr %4, align 8, !tbaa !5
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setreplace(ptr noundef %300, ptr noundef %301, ptr noundef %302)
  br label %321

303:                                              ; preds = %294, %290
  %304 = load ptr, ptr %7, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.vertexT, ptr %304, i32 0, i32 3
  %306 = load ptr, ptr %305, align 8, !tbaa !33
  %307 = load ptr, ptr %4, align 8, !tbaa !5
  %308 = call ptr @qh_setdel(ptr noundef %306, ptr noundef %307)
  %309 = load ptr, ptr %7, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.vertexT, ptr %309, i32 0, i32 3
  %311 = load ptr, ptr %310, align 8, !tbaa !33
  %312 = getelementptr inbounds %struct.setT, ptr %311, i32 0, i32 1
  %313 = getelementptr inbounds [1 x %union.setelemT], ptr %312, i64 0, i64 1
  %314 = load ptr, ptr %313, align 8, !tbaa !14
  %315 = icmp ne ptr %314, null
  br i1 %315, label %320, label %316

316:                                              ; preds = %303
  %317 = load ptr, ptr %7, align 8, !tbaa !5
  %318 = load ptr, ptr %4, align 8, !tbaa !5
  %319 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_mergevertex_del(ptr noundef %317, ptr noundef %318, ptr noundef %319)
  br label %320

320:                                              ; preds = %316, %303
  br label %321

321:                                              ; preds = %320, %297
  br label %285, !llvm.loop !34

322:                                              ; preds = %285
  br label %323

323:                                              ; preds = %322, %274
  %324 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !25
  %325 = icmp sge i32 %324, 4
  br i1 %325, label %326, label %334

326:                                              ; preds = %323
  %327 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !28
  %328 = load ptr, ptr %4, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.facetT, ptr %328, i32 0, i32 14
  %330 = load i32, ptr %329, align 4, !tbaa !31
  %331 = load ptr, ptr %5, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.facetT, ptr %331, i32 0, i32 14
  %333 = load i32, ptr %332, align 4, !tbaa !31
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %327, i32 noundef 4041, ptr noundef @.str.92, i32 noundef %330, i32 noundef %333)
  br label %334

334:                                              ; preds = %326, %323
  %335 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !35
  %336 = add i32 %335, 1
  store i32 %336, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !35
  store ptr null, ptr %15, align 8, !tbaa !5
  %337 = load ptr, ptr %5, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.facetT, ptr %337, i32 0, i32 10
  %339 = load ptr, ptr %338, align 8, !tbaa !36
  %340 = icmp ne ptr %339, null
  br i1 %340, label %341, label %357

341:                                              ; preds = %334
  %342 = load ptr, ptr %5, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.facetT, ptr %342, i32 0, i32 10
  %344 = load ptr, ptr %343, align 8, !tbaa !36
  %345 = getelementptr inbounds %struct.setT, ptr %344, i32 0, i32 1
  %346 = getelementptr inbounds [1 x %union.setelemT], ptr %345, i64 0, i64 0
  store ptr %346, ptr %16, align 8, !tbaa !5
  br label %347

347:                                              ; preds = %352, %341
  %348 = load ptr, ptr %16, align 8, !tbaa !5
  %349 = getelementptr inbounds ptr, ptr %348, i32 1
  store ptr %349, ptr %16, align 8, !tbaa !5
  %350 = load ptr, ptr %348, align 8, !tbaa !5
  store ptr %350, ptr %15, align 8, !tbaa !5
  %351 = icmp ne ptr %350, null
  br i1 %351, label %352, label %356

352:                                              ; preds = %347
  %353 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !35
  %354 = load ptr, ptr %15, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.facetT, ptr %354, i32 0, i32 13
  store i32 %353, ptr %355, align 8, !tbaa !37
  br label %347, !llvm.loop !38

356:                                              ; preds = %347
  br label %357

357:                                              ; preds = %356, %334
  store ptr null, ptr %10, align 8, !tbaa !5
  %358 = load ptr, ptr %4, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.facetT, ptr %358, i32 0, i32 9
  %360 = load ptr, ptr %359, align 8, !tbaa !17
  %361 = icmp ne ptr %360, null
  br i1 %361, label %362, label %480

362:                                              ; preds = %357
  %363 = load ptr, ptr %4, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.facetT, ptr %363, i32 0, i32 9
  %365 = load ptr, ptr %364, align 8, !tbaa !17
  %366 = getelementptr inbounds %struct.setT, ptr %365, i32 0, i32 1
  %367 = getelementptr inbounds [1 x %union.setelemT], ptr %366, i64 0, i64 0
  store ptr %367, ptr %11, align 8, !tbaa !5
  br label %368

368:                                              ; preds = %478, %362
  %369 = load ptr, ptr %11, align 8, !tbaa !5
  %370 = getelementptr inbounds ptr, ptr %369, i32 1
  store ptr %370, ptr %11, align 8, !tbaa !5
  %371 = load ptr, ptr %369, align 8, !tbaa !5
  store ptr %371, ptr %10, align 8, !tbaa !5
  %372 = icmp ne ptr %371, null
  br i1 %372, label %373, label %479

373:                                              ; preds = %368
  %374 = load ptr, ptr %10, align 8, !tbaa !5
  %375 = getelementptr inbounds %struct.ridgeT, ptr %374, i32 0, i32 1
  %376 = load ptr, ptr %375, align 8, !tbaa !18
  %377 = load ptr, ptr %4, align 8, !tbaa !5
  %378 = icmp eq ptr %376, %377
  br i1 %378, label %379, label %383

379:                                              ; preds = %373
  %380 = load ptr, ptr %10, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.ridgeT, ptr %380, i32 0, i32 2
  %382 = load ptr, ptr %381, align 8, !tbaa !20
  br label %387

383:                                              ; preds = %373
  %384 = load ptr, ptr %10, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct.ridgeT, ptr %384, i32 0, i32 1
  %386 = load ptr, ptr %385, align 8, !tbaa !18
  br label %387

387:                                              ; preds = %383, %379
  %388 = phi ptr [ %382, %379 ], [ %386, %383 ]
  store ptr %388, ptr %17, align 8, !tbaa !5
  %389 = load ptr, ptr %17, align 8, !tbaa !5
  %390 = load ptr, ptr %5, align 8, !tbaa !5
  %391 = icmp eq ptr %389, %390
  br i1 %391, label %392, label %406

392:                                              ; preds = %387
  %393 = load ptr, ptr %5, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.facetT, ptr %393, i32 0, i32 9
  %395 = load ptr, ptr %394, align 8, !tbaa !17
  %396 = load ptr, ptr %10, align 8, !tbaa !5
  %397 = call ptr @qh_setdel(ptr noundef %395, ptr noundef %396)
  %398 = load ptr, ptr %10, align 8, !tbaa !5
  %399 = getelementptr inbounds %struct.ridgeT, ptr %398, i32 0, i32 0
  call void @qh_setfree(ptr noundef %399)
  %400 = load ptr, ptr %10, align 8, !tbaa !5
  call void @qh_memfree(ptr noundef %400, i32 noundef 32)
  %401 = load ptr, ptr %5, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.facetT, ptr %401, i32 0, i32 10
  %403 = load ptr, ptr %402, align 8, !tbaa !36
  %404 = load ptr, ptr %4, align 8, !tbaa !5
  %405 = call ptr @qh_setdel(ptr noundef %403, ptr noundef %404)
  br label %478

406:                                              ; preds = %387
  %407 = load ptr, ptr %5, align 8, !tbaa !5
  %408 = getelementptr inbounds %struct.facetT, ptr %407, i32 0, i32 9
  %409 = load ptr, ptr %10, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %408, ptr noundef %409)
  %410 = load ptr, ptr %17, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.facetT, ptr %410, i32 0, i32 13
  %412 = load i32, ptr %411, align 8, !tbaa !37
  %413 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !35
  %414 = icmp ne i32 %412, %413
  br i1 %414, label %415, label %427

415:                                              ; preds = %406
  %416 = load ptr, ptr %5, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.facetT, ptr %416, i32 0, i32 10
  %418 = load ptr, ptr %17, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %417, ptr noundef %418)
  %419 = load ptr, ptr %17, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.facetT, ptr %419, i32 0, i32 10
  %421 = load ptr, ptr %420, align 8, !tbaa !36
  %422 = load ptr, ptr %4, align 8, !tbaa !5
  %423 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setreplace(ptr noundef %421, ptr noundef %422, ptr noundef %423)
  %424 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !35
  %425 = load ptr, ptr %17, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.facetT, ptr %425, i32 0, i32 13
  store i32 %424, ptr %426, align 8, !tbaa !37
  br label %463

427:                                              ; preds = %406
  %428 = load ptr, ptr %17, align 8, !tbaa !5
  %429 = getelementptr inbounds %struct.facetT, ptr %428, i32 0, i32 15
  %430 = load i32, ptr %429, align 8
  %431 = lshr i32 %430, 13
  %432 = and i32 %431, 1
  %433 = icmp ne i32 %432, 0
  br i1 %433, label %434, label %436

434:                                              ; preds = %427
  %435 = load ptr, ptr %17, align 8, !tbaa !5
  call void @qh_makeridges(ptr noundef %435)
  br label %436

436:                                              ; preds = %434, %427
  %437 = load ptr, ptr %17, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.facetT, ptr %437, i32 0, i32 10
  %439 = load ptr, ptr %438, align 8, !tbaa !36
  %440 = getelementptr inbounds %struct.setT, ptr %439, i32 0, i32 1
  %441 = getelementptr inbounds [1 x %union.setelemT], ptr %440, i64 0, i64 0
  %442 = load ptr, ptr %441, align 8, !tbaa !14
  %443 = load ptr, ptr %4, align 8, !tbaa !5
  %444 = icmp ne ptr %442, %443
  br i1 %444, label %445, label %451

445:                                              ; preds = %436
  %446 = load ptr, ptr %17, align 8, !tbaa !5
  %447 = getelementptr inbounds %struct.facetT, ptr %446, i32 0, i32 10
  %448 = load ptr, ptr %447, align 8, !tbaa !36
  %449 = load ptr, ptr %4, align 8, !tbaa !5
  %450 = call ptr @qh_setdel(ptr noundef %448, ptr noundef %449)
  br label %462

451:                                              ; preds = %436
  %452 = load ptr, ptr %17, align 8, !tbaa !5
  %453 = getelementptr inbounds %struct.facetT, ptr %452, i32 0, i32 10
  %454 = load ptr, ptr %453, align 8, !tbaa !36
  %455 = load ptr, ptr %5, align 8, !tbaa !5
  %456 = call ptr @qh_setdel(ptr noundef %454, ptr noundef %455)
  %457 = load ptr, ptr %17, align 8, !tbaa !5
  %458 = getelementptr inbounds %struct.facetT, ptr %457, i32 0, i32 10
  %459 = load ptr, ptr %458, align 8, !tbaa !36
  %460 = load ptr, ptr %4, align 8, !tbaa !5
  %461 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setreplace(ptr noundef %459, ptr noundef %460, ptr noundef %461)
  br label %462

462:                                              ; preds = %451, %445
  br label %463

463:                                              ; preds = %462, %415
  %464 = load ptr, ptr %10, align 8, !tbaa !5
  %465 = getelementptr inbounds %struct.ridgeT, ptr %464, i32 0, i32 1
  %466 = load ptr, ptr %465, align 8, !tbaa !18
  %467 = load ptr, ptr %4, align 8, !tbaa !5
  %468 = icmp eq ptr %466, %467
  br i1 %468, label %469, label %473

469:                                              ; preds = %463
  %470 = load ptr, ptr %5, align 8, !tbaa !5
  %471 = load ptr, ptr %10, align 8, !tbaa !5
  %472 = getelementptr inbounds %struct.ridgeT, ptr %471, i32 0, i32 1
  store ptr %470, ptr %472, align 8, !tbaa !18
  br label %477

473:                                              ; preds = %463
  %474 = load ptr, ptr %5, align 8, !tbaa !5
  %475 = load ptr, ptr %10, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.ridgeT, ptr %475, i32 0, i32 2
  store ptr %474, ptr %476, align 8, !tbaa !20
  br label %477

477:                                              ; preds = %473, %469
  br label %478

478:                                              ; preds = %477, %392
  br label %368, !llvm.loop !39

479:                                              ; preds = %368
  br label %480

480:                                              ; preds = %479, %357
  %481 = load ptr, ptr %4, align 8, !tbaa !5
  %482 = getelementptr inbounds %struct.facetT, ptr %481, i32 0, i32 9
  %483 = load ptr, ptr %482, align 8, !tbaa !17
  %484 = getelementptr inbounds %struct.setT, ptr %483, i32 0, i32 1
  %485 = getelementptr inbounds [1 x %union.setelemT], ptr %484, i64 0, i64 0
  store ptr null, ptr %485, align 8, !tbaa !14
  %486 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !25
  %487 = icmp sge i32 %486, 3
  br i1 %487, label %488, label %505

488:                                              ; preds = %480
  %489 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !28
  %490 = load ptr, ptr %4, align 8, !tbaa !5
  %491 = getelementptr inbounds %struct.facetT, ptr %490, i32 0, i32 14
  %492 = load i32, ptr %491, align 4, !tbaa !31
  %493 = load ptr, ptr %9, align 8, !tbaa !5
  %494 = icmp ne ptr %493, null
  br i1 %494, label %495, label %499

495:                                              ; preds = %488
  %496 = load ptr, ptr %9, align 8, !tbaa !5
  %497 = getelementptr inbounds %struct.vertexT, ptr %496, i32 0, i32 4
  %498 = load i32, ptr %497, align 8, !tbaa !29
  br label %500

499:                                              ; preds = %488
  br label %500

500:                                              ; preds = %499, %495
  %501 = phi i32 [ %498, %495 ], [ -1, %499 ]
  %502 = load ptr, ptr %5, align 8, !tbaa !5
  %503 = getelementptr inbounds %struct.facetT, ptr %502, i32 0, i32 14
  %504 = load i32, ptr %503, align 4, !tbaa !31
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %489, i32 noundef 3006, ptr noundef @.str.93, i32 noundef %492, i32 noundef %501, i32 noundef %504)
  br label %505

505:                                              ; preds = %500, %480
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  ret void
}

declare void @qh_removevertex(ptr noundef) #1

declare void @qh_appendvertex(ptr noundef) #1

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

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


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

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

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.90 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [61 x i8], align 1

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

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #0

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

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

declare void @qh_setaddnth(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare void @qh_setfree(ptr noundef) local_unnamed_addr #0

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

declare ptr @qh_setdel(ptr noundef, ptr noundef) local_unnamed_addr #0

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

declare void @qh_setreplace(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @qh_mergesimplex(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %21, label %4

4:                                                ; preds = %3
  %5 = getelementptr inbounds i8, ptr %1, i64 112
  %6 = load i32, ptr %5, align 8
  %7 = and i32 %6, 1024
  %.not174 = icmp eq i32 %7, 0
  br i1 %.not174, label %8, label %11

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %1, i64 64
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  tail call void @qh_newvertices(ptr noundef %10)
  br label %11

11:                                               ; preds = %8, %4
  %12 = getelementptr inbounds i8, ptr %0, i64 64
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !12
  %16 = getelementptr inbounds i8, ptr %1, i64 64
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !12
  %.not175 = icmp eq ptr %19, %15
  br i1 %.not175, label %101, label %20

20:                                               ; preds = %11
  tail call void @qh_setaddnth(ptr noundef nonnull %16, i32 noundef 0, ptr noundef %15) #2
  br label %101

21:                                               ; preds = %3
  %22 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1048), align 8, !tbaa !12
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1048), align 8, !tbaa !12
  %24 = getelementptr inbounds i8, ptr %0, i64 64
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %.not158 = icmp eq ptr %25, null
  br i1 %.not158, label %.loopexit209, label %.preheader208

.preheader208:                                    ; preds = %21
  %.0122212 = getelementptr inbounds i8, ptr %25, i64 8
  %26 = load ptr, ptr %.0122212, align 8, !tbaa !13
  %.not159213 = icmp eq ptr %26, null
  br i1 %.not159213, label %.loopexit209, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader208, %.lr.ph
  %27 = phi ptr [ %31, %.lr.ph ], [ %26, %.preheader208 ]
  %.0122214 = phi ptr [ %.0122, %.lr.ph ], [ %.0122212, %.preheader208 ]
  %28 = getelementptr inbounds i8, ptr %27, i64 40
  %29 = load i8, ptr %28, align 8
  %30 = and i8 %29, -2
  store i8 %30, ptr %28, align 8
  %.0122 = getelementptr inbounds i8, ptr %.0122214, i64 8
  %31 = load ptr, ptr %.0122, align 8, !tbaa !13
  %.not159 = icmp eq ptr %31, null
  br i1 %.not159, label %.loopexit209, label %.lr.ph, !llvm.loop !14

.loopexit209:                                     ; preds = %.lr.ph, %.preheader208, %21
  %32 = getelementptr inbounds i8, ptr %0, i64 72
  %33 = load ptr, ptr %32, align 8, !tbaa !16
  %.not160 = icmp eq ptr %33, null
  br i1 %.not160, label %.loopexit205, label %.preheader206

.preheader206:                                    ; preds = %.loopexit209, %42
  %.pn161 = phi ptr [ %.0128, %42 ], [ %33, %.loopexit209 ]
  %.0128 = getelementptr inbounds i8, ptr %.pn161, i64 8
  %34 = load ptr, ptr %.0128, align 8, !tbaa !13
  %.not162 = icmp eq ptr %34, null
  br i1 %.not162, label %.loopexit205, label %35

35:                                               ; preds = %.preheader206
  %36 = getelementptr inbounds i8, ptr %34, i64 8
  %37 = load ptr, ptr %36, align 8, !tbaa !17
  %38 = icmp eq ptr %37, %0
  br i1 %38, label %39, label %42

39:                                               ; preds = %35
  %40 = getelementptr inbounds i8, ptr %34, i64 16
  %41 = load ptr, ptr %40, align 8, !tbaa !19
  br label %42

42:                                               ; preds = %35, %39
  %43 = phi ptr [ %41, %39 ], [ %37, %35 ]
  %44 = icmp eq ptr %43, %1
  br i1 %44, label %45, label %.preheader206, !llvm.loop !20

45:                                               ; preds = %42
  %46 = load ptr, ptr %34, align 8, !tbaa !21
  %.not163 = icmp eq ptr %46, null
  br i1 %.not163, label %.loopexit205, label %.preheader204

.preheader204:                                    ; preds = %45
  %.1123215 = getelementptr inbounds i8, ptr %46, i64 8
  %47 = load ptr, ptr %.1123215, align 8, !tbaa !13
  %.not165216 = icmp eq ptr %47, null
  br i1 %.not165216, label %.loopexit205, label %.lr.ph218

.lr.ph218:                                        ; preds = %.preheader204, %.lr.ph218
  %48 = phi ptr [ %52, %.lr.ph218 ], [ %47, %.preheader204 ]
  %.1123217 = phi ptr [ %.1123, %.lr.ph218 ], [ %.1123215, %.preheader204 ]
  %49 = getelementptr inbounds i8, ptr %48, i64 40
  %50 = load i8, ptr %49, align 8
  %51 = or i8 %50, 5
  store i8 %51, ptr %49, align 8
  %.1123 = getelementptr inbounds i8, ptr %.1123217, i64 8
  %52 = load ptr, ptr %.1123, align 8, !tbaa !13
  %.not165 = icmp eq ptr %52, null
  br i1 %.not165, label %.loopexit205, label %.lr.ph218, !llvm.loop !22

.loopexit205:                                     ; preds = %.preheader206, %.lr.ph218, %.preheader204, %45, %.loopexit209
  %53 = load ptr, ptr %24, align 8, !tbaa !5
  %.not166 = icmp eq ptr %53, null
  br i1 %.not166, label %.loopexit203, label %.preheader202

.preheader202:                                    ; preds = %.loopexit205, %55
  %.pn167 = phi ptr [ %.2, %55 ], [ %53, %.loopexit205 ]
  %.2 = getelementptr inbounds i8, ptr %.pn167, i64 8
  %54 = load ptr, ptr %.2, align 8, !tbaa !13
  %.not168 = icmp eq ptr %54, null
  br i1 %.not168, label %.loopexit203, label %55

55:                                               ; preds = %.preheader202
  %56 = getelementptr inbounds i8, ptr %54, i64 40
  %57 = load i8, ptr %56, align 8
  %58 = and i8 %57, 1
  %.not169 = icmp eq i8 %58, 0
  br i1 %.not169, label %.loopexit203, label %.preheader202, !llvm.loop !23

.loopexit203:                                     ; preds = %.preheader202, %55, %.loopexit205
  %.0 = phi ptr [ null, %.loopexit205 ], [ null, %.preheader202 ], [ %54, %55 ]
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !24
  %60 = icmp sgt i32 %59, 3
  br i1 %60, label %61, label %69

61:                                               ; preds = %.loopexit203
  %62 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !27
  %63 = getelementptr inbounds i8, ptr %.0, i64 32
  %64 = load i32, ptr %63, align 8, !tbaa !28
  %65 = getelementptr inbounds i8, ptr %0, i64 108
  %66 = load i32, ptr %65, align 4, !tbaa !30
  %67 = getelementptr inbounds i8, ptr %1, i64 108
  %68 = load i32, ptr %67, align 4, !tbaa !30
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %62, i32 noundef 4039, ptr noundef nonnull @.str.90, i32 noundef %64, i32 noundef %66, i32 noundef %68) #2
  br label %69

69:                                               ; preds = %61, %.loopexit203
  %70 = getelementptr inbounds i8, ptr %1, i64 64
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %.not170 = icmp eq ptr %71, null
  br i1 %.not170, label %.loopexit200, label %72

72:                                               ; preds = %69
  %73 = getelementptr inbounds i8, ptr %71, i64 8
  %74 = load ptr, ptr %73, align 8, !tbaa !12
  %75 = tail call i32 @qh_setsize(ptr noundef nonnull %71) #2
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %.lr.ph221, label %.loopexit200

.lr.ph221:                                        ; preds = %72
  %77 = getelementptr inbounds i8, ptr %.0, i64 32
  %78 = load i32, ptr %77, align 8, !tbaa !28
  %wide.trip.count = zext nneg i32 %75 to i64
  br label %79

79:                                               ; preds = %.lr.ph221, %85
  %indvars.iv = phi i64 [ 0, %.lr.ph221 ], [ %indvars.iv.next, %85 ]
  %.1220 = phi ptr [ %74, %.lr.ph221 ], [ %89, %85 ]
  %80 = getelementptr inbounds i8, ptr %.1220, i64 32
  %81 = load i32, ptr %80, align 8, !tbaa !28
  %82 = icmp ult i32 %81, %78
  br i1 %82, label %.loopexit200.loopexit.split.loop.exit, label %83

83:                                               ; preds = %79
  %84 = icmp eq i32 %81, %78
  br i1 %84, label %.loopexit201, label %85

85:                                               ; preds = %83
  %86 = load ptr, ptr %70, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i64 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %88 = getelementptr inbounds [1 x %union.setelemT], ptr %87, i64 0, i64 %indvars.iv.next
  %89 = load ptr, ptr %88, align 8, !tbaa !12
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit200, label %79, !llvm.loop !31

.loopexit200.loopexit.split.loop.exit:            ; preds = %79
  %90 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.loopexit200

.loopexit200:                                     ; preds = %85, %.loopexit200.loopexit.split.loop.exit, %72, %69
  %.1125.ph = phi i32 [ -1, %69 ], [ 0, %72 ], [ %90, %.loopexit200.loopexit.split.loop.exit ], [ %75, %85 ]
  tail call void @qh_setaddnth(ptr noundef nonnull %70, i32 noundef %.1125.ph, ptr noundef %.0) #2
  br label %.loopexit201

.loopexit201:                                     ; preds = %83, %.loopexit200
  %.0126193 = phi i32 [ 0, %.loopexit200 ], [ 1, %83 ]
  %91 = getelementptr inbounds i8, ptr %1, i64 112
  %92 = load i32, ptr %91, align 8
  %93 = and i32 %92, 1024
  %.not172 = icmp eq i32 %93, 0
  br i1 %.not172, label %94, label %96

94:                                               ; preds = %.loopexit201
  %95 = load ptr, ptr %70, align 8, !tbaa !5
  tail call void @qh_newvertices(ptr noundef %95)
  br label %101

96:                                               ; preds = %.loopexit201
  %97 = getelementptr inbounds i8, ptr %.0, i64 40
  %98 = load i8, ptr %97, align 8
  %99 = and i8 %98, 16
  %.not173 = icmp eq i8 %99, 0
  br i1 %.not173, label %100, label %101

100:                                              ; preds = %96
  tail call void @qh_removevertex(ptr noundef nonnull %.0) #2
  tail call void @qh_appendvertex(ptr noundef nonnull %.0) #2
  br label %101

101:                                              ; preds = %11, %94, %100, %96, %20
  %.0130 = phi ptr [ %15, %20 ], [ %.0, %96 ], [ %.0, %100 ], [ %.0, %94 ], [ %15, %11 ]
  %.1127 = phi i32 [ 0, %20 ], [ %.0126193, %96 ], [ %.0126193, %100 ], [ %.0126193, %94 ], [ 1, %11 ]
  %102 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !24
  %103 = icmp sgt i32 %102, 3
  br i1 %103, label %104, label %108

104:                                              ; preds = %101
  %105 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !27
  %106 = getelementptr inbounds i8, ptr %0, i64 108
  %107 = load i32, ptr %106, align 4, !tbaa !30
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %105, i32 noundef 4040, ptr noundef nonnull @.str.91, i32 noundef %107) #2
  br label %108

108:                                              ; preds = %104, %101
  %109 = getelementptr inbounds i8, ptr %0, i64 64
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %.not176 = icmp eq ptr %110, null
  br i1 %.not176, label %.loopexit199, label %.preheader198

.preheader198:                                    ; preds = %108
  %.3224 = getelementptr inbounds i8, ptr %110, i64 8
  %111 = load ptr, ptr %.3224, align 8, !tbaa !13
  %.not178225 = icmp eq ptr %111, null
  br i1 %.not178225, label %.loopexit199, label %.lr.ph227

.lr.ph227:                                        ; preds = %.preheader198
  %112 = icmp ne i32 %.1127, 0
  br label %113

113:                                              ; preds = %.lr.ph227, %125
  %114 = phi ptr [ %111, %.lr.ph227 ], [ %126, %125 ]
  %.3226 = phi ptr [ %.3224, %.lr.ph227 ], [ %.3, %125 ]
  %115 = icmp ne ptr %114, %.0130
  %or.cond = or i1 %112, %115
  %116 = getelementptr inbounds i8, ptr %114, i64 24
  %117 = load ptr, ptr %116, align 8, !tbaa !32
  br i1 %or.cond, label %119, label %118

118:                                              ; preds = %113
  tail call void @qh_setreplace(ptr noundef %117, ptr noundef %0, ptr noundef %1) #2
  br label %125

119:                                              ; preds = %113
  %120 = tail call ptr @qh_setdel(ptr noundef %117, ptr noundef %0) #2
  %121 = load ptr, ptr %116, align 8, !tbaa !32
  %122 = getelementptr inbounds i8, ptr %121, i64 16
  %123 = load ptr, ptr %122, align 8, !tbaa !12
  %.not189 = icmp eq ptr %123, null
  br i1 %.not189, label %124, label %125

124:                                              ; preds = %119
  tail call void @qh_mergevertex_del(ptr noundef nonnull %114, ptr noundef %0, ptr noundef %1)
  br label %125

125:                                              ; preds = %119, %124, %118
  %.3 = getelementptr inbounds i8, ptr %.3226, i64 8
  %126 = load ptr, ptr %.3, align 8, !tbaa !13
  %.not178 = icmp eq ptr %126, null
  br i1 %.not178, label %.loopexit199, label %113, !llvm.loop !33

.loopexit199:                                     ; preds = %125, %.preheader198, %108
  %127 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !24
  %128 = icmp sgt i32 %127, 3
  br i1 %128, label %129, label %135

129:                                              ; preds = %.loopexit199
  %130 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !27
  %131 = getelementptr inbounds i8, ptr %0, i64 108
  %132 = load i32, ptr %131, align 4, !tbaa !30
  %133 = getelementptr inbounds i8, ptr %1, i64 108
  %134 = load i32, ptr %133, align 4, !tbaa !30
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %130, i32 noundef 4041, ptr noundef nonnull @.str.92, i32 noundef %132, i32 noundef %134) #2
  br label %135

135:                                              ; preds = %129, %.loopexit199
  %136 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !34
  %137 = add i32 %136, 1
  store i32 %137, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !34
  %138 = getelementptr inbounds i8, ptr %1, i64 80
  %139 = load ptr, ptr %138, align 8, !tbaa !35
  %.not179 = icmp eq ptr %139, null
  br i1 %.not179, label %.loopexit197, label %.preheader196

.preheader196:                                    ; preds = %135
  %.0121228 = getelementptr inbounds i8, ptr %139, i64 8
  %140 = load ptr, ptr %.0121228, align 8, !tbaa !13
  %.not181229 = icmp eq ptr %140, null
  br i1 %.not181229, label %.loopexit197, label %.lr.ph231

.lr.ph231:                                        ; preds = %.preheader196, %.lr.ph231
  %141 = phi ptr [ %143, %.lr.ph231 ], [ %140, %.preheader196 ]
  %.0121230 = phi ptr [ %.0121, %.lr.ph231 ], [ %.0121228, %.preheader196 ]
  %142 = getelementptr inbounds i8, ptr %141, i64 104
  store i32 %137, ptr %142, align 8, !tbaa !36
  %.0121 = getelementptr inbounds i8, ptr %.0121230, i64 8
  %143 = load ptr, ptr %.0121, align 8, !tbaa !13
  %.not181 = icmp eq ptr %143, null
  br i1 %.not181, label %.loopexit197, label %.lr.ph231, !llvm.loop !37

.loopexit197:                                     ; preds = %.lr.ph231, %.preheader196, %135
  %144 = getelementptr inbounds i8, ptr %0, i64 72
  %145 = load ptr, ptr %144, align 8, !tbaa !16, !nonnull !38, !noundef !38
  %.1129232 = getelementptr inbounds i8, ptr %145, i64 8
  %146 = load ptr, ptr %.1129232, align 8, !tbaa !13
  %.not184233 = icmp eq ptr %146, null
  br i1 %.not184233, label %.loopexit, label %.lr.ph235

.lr.ph235:                                        ; preds = %.loopexit197
  %147 = getelementptr inbounds i8, ptr %1, i64 72
  br label %148

148:                                              ; preds = %.lr.ph235, %193
  %149 = phi ptr [ %146, %.lr.ph235 ], [ %194, %193 ]
  %.1129234 = phi ptr [ %.1129232, %.lr.ph235 ], [ %.1129, %193 ]
  %150 = getelementptr inbounds i8, ptr %149, i64 8
  %151 = load ptr, ptr %150, align 8, !tbaa !17
  %152 = icmp eq ptr %151, %0
  br i1 %152, label %153, label %156

153:                                              ; preds = %148
  %154 = getelementptr inbounds i8, ptr %149, i64 16
  %155 = load ptr, ptr %154, align 8, !tbaa !19
  br label %156

156:                                              ; preds = %148, %153
  %157 = phi ptr [ %155, %153 ], [ %151, %148 ]
  %158 = icmp eq ptr %157, %1
  br i1 %158, label %159, label %164

159:                                              ; preds = %156
  %160 = load ptr, ptr %147, align 8, !tbaa !16
  %161 = tail call ptr @qh_setdel(ptr noundef %160, ptr noundef nonnull %149) #2
  tail call void @qh_setfree(ptr noundef nonnull %149) #2
  tail call void @qh_memfree(ptr noundef nonnull %149, i32 noundef 32) #2
  %162 = load ptr, ptr %138, align 8, !tbaa !35
  %163 = tail call ptr @qh_setdel(ptr noundef %162, ptr noundef %0) #2
  br label %193

164:                                              ; preds = %156
  tail call void @qh_setappend(ptr noundef nonnull %147, ptr noundef nonnull %149) #2
  %165 = getelementptr inbounds i8, ptr %157, i64 104
  %166 = load i32, ptr %165, align 8, !tbaa !36
  %167 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !34
  %.not186 = icmp eq i32 %166, %167
  br i1 %.not186, label %172, label %168

168:                                              ; preds = %164
  tail call void @qh_setappend(ptr noundef nonnull %138, ptr noundef nonnull %157) #2
  %169 = getelementptr inbounds i8, ptr %157, i64 80
  %170 = load ptr, ptr %169, align 8, !tbaa !35
  tail call void @qh_setreplace(ptr noundef %170, ptr noundef %0, ptr noundef %1) #2
  %171 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !34
  store i32 %171, ptr %165, align 8, !tbaa !36
  br label %187

172:                                              ; preds = %164
  %173 = getelementptr inbounds i8, ptr %157, i64 112
  %174 = load i32, ptr %173, align 8
  %175 = and i32 %174, 8192
  %.not187 = icmp eq i32 %175, 0
  br i1 %.not187, label %177, label %176

176:                                              ; preds = %172
  tail call void @qh_makeridges(ptr noundef nonnull %157)
  br label %177

177:                                              ; preds = %176, %172
  %178 = getelementptr inbounds i8, ptr %157, i64 80
  %179 = load ptr, ptr %178, align 8, !tbaa !35
  %180 = getelementptr inbounds i8, ptr %179, i64 8
  %181 = load ptr, ptr %180, align 8, !tbaa !12
  %.not188 = icmp eq ptr %181, %0
  br i1 %.not188, label %184, label %182

182:                                              ; preds = %177
  %183 = tail call ptr @qh_setdel(ptr noundef nonnull %179, ptr noundef %0) #2
  br label %187

184:                                              ; preds = %177
  %185 = tail call ptr @qh_setdel(ptr noundef nonnull %179, ptr noundef %1) #2
  %186 = load ptr, ptr %178, align 8, !tbaa !35
  tail call void @qh_setreplace(ptr noundef %186, ptr noundef %0, ptr noundef %1) #2
  br label %187

187:                                              ; preds = %182, %184, %168
  %188 = load ptr, ptr %150, align 8, !tbaa !17
  %189 = icmp eq ptr %188, %0
  br i1 %189, label %190, label %191

190:                                              ; preds = %187
  store ptr %1, ptr %150, align 8, !tbaa !17
  br label %193

191:                                              ; preds = %187
  %192 = getelementptr inbounds i8, ptr %149, i64 16
  store ptr %1, ptr %192, align 8, !tbaa !19
  br label %193

193:                                              ; preds = %190, %191, %159
  %.1129 = getelementptr inbounds i8, ptr %.1129234, i64 8
  %194 = load ptr, ptr %.1129, align 8, !tbaa !13
  %.not184 = icmp eq ptr %194, null
  br i1 %.not184, label %.loopexit.loopexit, label %148, !llvm.loop !39

.loopexit.loopexit:                               ; preds = %193
  %.pre = load ptr, ptr %144, align 8, !tbaa !16
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.loopexit197
  %195 = phi ptr [ %.pre, %.loopexit.loopexit ], [ %145, %.loopexit197 ]
  %196 = getelementptr inbounds i8, ptr %195, i64 8
  store ptr null, ptr %196, align 8, !tbaa !12
  %197 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !24
  %198 = icmp sgt i32 %197, 2
  br i1 %198, label %199, label %210

199:                                              ; preds = %.loopexit
  %200 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !27
  %201 = getelementptr inbounds i8, ptr %0, i64 108
  %202 = load i32, ptr %201, align 4, !tbaa !30
  %.not185 = icmp eq ptr %.0130, null
  br i1 %.not185, label %206, label %203

203:                                              ; preds = %199
  %204 = getelementptr inbounds i8, ptr %.0130, i64 32
  %205 = load i32, ptr %204, align 8, !tbaa !28
  br label %206

206:                                              ; preds = %199, %203
  %207 = phi i32 [ %205, %203 ], [ -1, %199 ]
  %208 = getelementptr inbounds i8, ptr %1, i64 108
  %209 = load i32, ptr %208, align 4, !tbaa !30
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %200, i32 noundef 3006, ptr noundef nonnull @.str.93, i32 noundef %202, i32 noundef %207, i32 noundef %209) #2
  br label %210

210:                                              ; preds = %206, %.loopexit
  ret void
}

declare void @qh_removevertex(ptr noundef) local_unnamed_addr #0

declare void @qh_appendvertex(ptr noundef) local_unnamed_addr #0

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

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


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