; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (merge_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.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.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.ridgeT = type { ptr, ptr, ptr, i32, i8 }

@.str.212 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [112 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [115 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.217 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [66 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, 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, ptr noundef) #1

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

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

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

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

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

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

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

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

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

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

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

24:                                               ; preds = %6
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.vertexT, ptr %25, i32 0, i32 4
  %27 = load i32, ptr %26, align 8, !tbaa !17
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.qhT, ptr %28, i32 0, i32 173
  %30 = load i32, ptr %29, align 8, !tbaa !19
  %31 = icmp eq i32 %27, %30
  br i1 %31, label %40, label %32

32:                                               ; preds = %24
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.vertexT, ptr %33, i32 0, i32 4
  %35 = load i32, ptr %34, align 8, !tbaa !17
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.qhT, ptr %36, i32 0, i32 173
  %38 = load i32, ptr %37, align 8, !tbaa !19
  %39 = icmp eq i32 %35, %38
  br i1 %39, label %40, label %72

40:                                               ; preds = %32, %24, %6
  store i32 1, ptr %19, align 4, !tbaa !9
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.qhT, ptr %42, i32 0, i32 158
  %44 = load ptr, ptr %43, align 8, !tbaa !20
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.vertexT, ptr %45, i32 0, i32 4
  %47 = load i32, ptr %46, align 8, !tbaa !17
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.vertexT, ptr %48, i32 0, i32 4
  %50 = load i32, ptr %49, align 8, !tbaa !17
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = call i32 @qh_setsize(ptr noundef %51, ptr noundef %52)
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %60

56:                                               ; preds = %40
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.facetT, ptr %57, i32 0, i32 14
  %59 = load i32, ptr %58, align 4, !tbaa !21
  br label %61

60:                                               ; preds = %40
  br label %61

61:                                               ; preds = %60, %56
  %62 = phi i32 [ %59, %56 ], [ -1, %60 ]
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %69

65:                                               ; preds = %61
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.facetT, ptr %66, i32 0, i32 14
  %68 = load i32, ptr %67, align 4, !tbaa !21
  br label %70

69:                                               ; preds = %61
  br label %70

70:                                               ; preds = %69, %65
  %71 = phi i32 [ %68, %65 ], [ -1, %69 ]
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %41, ptr noundef %44, i32 noundef 2086, ptr noundef @.str.212, i32 noundef %47, i32 noundef %50, i32 noundef %53, i32 noundef %62, i32 noundef %71)
  br label %72

72:                                               ; preds = %70, %32
  store ptr null, ptr %15, align 8, !tbaa !5
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = icmp ne ptr %73, null
  br i1 %74, label %75, label %224

75:                                               ; preds = %72
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.setT, ptr %76, i32 0, i32 1
  %78 = getelementptr inbounds [1 x %union.setelemT], ptr %77, i64 0, i64 0
  store ptr %78, ptr %16, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %222, %75
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = getelementptr inbounds ptr, ptr %80, i32 1
  store ptr %81, ptr %16, align 8, !tbaa !5
  %82 = load ptr, ptr %80, align 8, !tbaa !5
  store ptr %82, ptr %15, align 8, !tbaa !5
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %223

84:                                               ; preds = %79
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = load ptr, ptr %15, align 8, !tbaa !5
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = call i32 @qh_renameridgevertex(ptr noundef %85, ptr noundef %86, ptr noundef %87, ptr noundef %88)
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %222

91:                                               ; preds = %84
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.ridgeT, ptr %93, i32 0, i32 1
  %95 = load ptr, ptr %94, align 8, !tbaa !23
  %96 = getelementptr inbounds %struct.facetT, ptr %95, i32 0, i32 8
  %97 = load ptr, ptr %96, align 8, !tbaa !25
  %98 = call i32 @qh_setsize(ptr noundef %92, ptr noundef %97)
  store i32 %98, ptr %17, align 4, !tbaa !9
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.ridgeT, ptr %100, i32 0, i32 2
  %102 = load ptr, ptr %101, align 8, !tbaa !26
  %103 = getelementptr inbounds %struct.facetT, ptr %102, i32 0, i32 8
  %104 = load ptr, ptr %103, align 8, !tbaa !25
  %105 = call i32 @qh_setsize(ptr noundef %99, ptr noundef %104)
  store i32 %105, ptr %18, align 4, !tbaa !9
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.qhT, ptr %107, i32 0, i32 110
  %109 = load i32, ptr %108, align 8, !tbaa !27
  %110 = icmp slt i32 %106, %109
  br i1 %110, label %135, label %111

111:                                              ; preds = %91
  %112 = load i32, ptr %17, align 4, !tbaa !9
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.qhT, ptr %113, i32 0, i32 110
  %115 = load i32, ptr %114, align 8, !tbaa !27
  %116 = icmp eq i32 %112, %115
  br i1 %116, label %117, label %161

117:                                              ; preds = %111
  %118 = load ptr, ptr %15, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ridgeT, ptr %118, i32 0, i32 1
  %120 = load ptr, ptr %119, align 8, !tbaa !23
  %121 = getelementptr inbounds %struct.facetT, ptr %120, i32 0, i32 15
  %122 = load i32, ptr %121, align 8
  %123 = lshr i32 %122, 13
  %124 = and i32 %123, 1
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %161, label %126

126:                                              ; preds = %117
  %127 = load ptr, ptr %15, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.ridgeT, ptr %127, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8, !tbaa !23
  %130 = getelementptr inbounds %struct.facetT, ptr %129, i32 0, i32 8
  %131 = load ptr, ptr %130, align 8, !tbaa !25
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = call i32 @qh_setin(ptr noundef %131, ptr noundef %132)
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %161

135:                                              ; preds = %126, %91
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.qhT, ptr %136, i32 0, i32 29
  %138 = load i32, ptr %137, align 8, !tbaa !11
  %139 = icmp sge i32 %138, 4
  br i1 %139, label %140, label %160

140:                                              ; preds = %135
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.qhT, ptr %142, i32 0, i32 158
  %144 = load ptr, ptr %143, align 8, !tbaa !20
  %145 = load ptr, ptr %15, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.ridgeT, ptr %145, i32 0, i32 3
  %147 = load i32, ptr %146, align 8, !tbaa !28
  %148 = load ptr, ptr %15, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.ridgeT, ptr %148, i32 0, i32 1
  %150 = load ptr, ptr %149, align 8, !tbaa !23
  %151 = getelementptr inbounds %struct.facetT, ptr %150, i32 0, i32 14
  %152 = load i32, ptr %151, align 4, !tbaa !21
  %153 = load i32, ptr %17, align 4, !tbaa !9
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.vertexT, ptr %154, i32 0, i32 4
  %156 = load i32, ptr %155, align 8, !tbaa !17
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.vertexT, ptr %157, i32 0, i32 4
  %159 = load i32, ptr %158, align 8, !tbaa !17
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %141, ptr noundef %144, i32 noundef 4070, ptr noundef @.str.213, i32 noundef %147, i32 noundef %152, i32 noundef %153, i32 noundef %156, i32 noundef %159)
  br label %160

160:                                              ; preds = %140, %135
  br label %221

161:                                              ; preds = %126, %117, %111
  %162 = load i32, ptr %18, align 4, !tbaa !9
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.qhT, ptr %163, i32 0, i32 110
  %165 = load i32, ptr %164, align 8, !tbaa !27
  %166 = icmp slt i32 %162, %165
  br i1 %166, label %191, label %167

167:                                              ; preds = %161
  %168 = load i32, ptr %18, align 4, !tbaa !9
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.qhT, ptr %169, i32 0, i32 110
  %171 = load i32, ptr %170, align 8, !tbaa !27
  %172 = icmp eq i32 %168, %171
  br i1 %172, label %173, label %217

173:                                              ; preds = %167
  %174 = load ptr, ptr %15, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.ridgeT, ptr %174, i32 0, i32 2
  %176 = load ptr, ptr %175, align 8, !tbaa !26
  %177 = getelementptr inbounds %struct.facetT, ptr %176, i32 0, i32 15
  %178 = load i32, ptr %177, align 8
  %179 = lshr i32 %178, 13
  %180 = and i32 %179, 1
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %217, label %182

182:                                              ; preds = %173
  %183 = load ptr, ptr %15, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.ridgeT, ptr %183, i32 0, i32 2
  %185 = load ptr, ptr %184, align 8, !tbaa !26
  %186 = getelementptr inbounds %struct.facetT, ptr %185, i32 0, i32 8
  %187 = load ptr, ptr %186, align 8, !tbaa !25
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = call i32 @qh_setin(ptr noundef %187, ptr noundef %188)
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %191, label %217

191:                                              ; preds = %182, %161
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.qhT, ptr %192, i32 0, i32 29
  %194 = load i32, ptr %193, align 8, !tbaa !11
  %195 = icmp sge i32 %194, 4
  br i1 %195, label %196, label %216

196:                                              ; preds = %191
  %197 = load ptr, ptr %7, align 8, !tbaa !5
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.qhT, ptr %198, i32 0, i32 158
  %200 = load ptr, ptr %199, align 8, !tbaa !20
  %201 = load ptr, ptr %15, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.ridgeT, ptr %201, i32 0, i32 3
  %203 = load i32, ptr %202, align 8, !tbaa !28
  %204 = load ptr, ptr %15, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.ridgeT, ptr %204, i32 0, i32 2
  %206 = load ptr, ptr %205, align 8, !tbaa !26
  %207 = getelementptr inbounds %struct.facetT, ptr %206, i32 0, i32 14
  %208 = load i32, ptr %207, align 4, !tbaa !21
  %209 = load i32, ptr %18, align 4, !tbaa !9
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.vertexT, ptr %210, i32 0, i32 4
  %212 = load i32, ptr %211, align 8, !tbaa !17
  %213 = load ptr, ptr %9, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.vertexT, ptr %213, i32 0, i32 4
  %215 = load i32, ptr %214, align 8, !tbaa !17
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %197, ptr noundef %200, i32 noundef 4071, ptr noundef @.str.214, i32 noundef %203, i32 noundef %208, i32 noundef %209, i32 noundef %212, i32 noundef %215)
  br label %216

216:                                              ; preds = %196, %191
  br label %220

217:                                              ; preds = %182, %173, %167
  %218 = load ptr, ptr %7, align 8, !tbaa !5
  %219 = load ptr, ptr %15, align 8, !tbaa !5
  call void @qh_maybe_duplicateridge(ptr noundef %218, ptr noundef %219)
  br label %220

220:                                              ; preds = %217, %216
  br label %221

221:                                              ; preds = %220, %160
  br label %222

222:                                              ; preds = %221, %84
  br label %79, !llvm.loop !29

223:                                              ; preds = %79
  br label %224

224:                                              ; preds = %223, %72
  %225 = load ptr, ptr %11, align 8, !tbaa !5
  %226 = icmp ne ptr %225, null
  br i1 %226, label %324, label %227

227:                                              ; preds = %224
  %228 = load i32, ptr %19, align 4, !tbaa !9
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %241

230:                                              ; preds = %227
  %231 = load ptr, ptr %7, align 8, !tbaa !5
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.qhT, ptr %232, i32 0, i32 158
  %234 = load ptr, ptr %233, align 8, !tbaa !20
  %235 = load ptr, ptr %8, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.vertexT, ptr %235, i32 0, i32 4
  %237 = load i32, ptr %236, align 8, !tbaa !17
  %238 = load ptr, ptr %9, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.vertexT, ptr %238, i32 0, i32 4
  %240 = load i32, ptr %239, align 8, !tbaa !17
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %231, ptr noundef %234, i32 noundef 2087, ptr noundef @.str.215, i32 noundef %237, i32 noundef %240)
  br label %241

241:                                              ; preds = %230, %227
  store ptr null, ptr %13, align 8, !tbaa !5
  %242 = load ptr, ptr %8, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.vertexT, ptr %242, i32 0, i32 3
  %244 = load ptr, ptr %243, align 8, !tbaa !31
  %245 = icmp ne ptr %244, null
  br i1 %245, label %246, label %305

246:                                              ; preds = %241
  %247 = load ptr, ptr %8, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.vertexT, ptr %247, i32 0, i32 3
  %249 = load ptr, ptr %248, align 8, !tbaa !31
  %250 = getelementptr inbounds %struct.setT, ptr %249, i32 0, i32 1
  %251 = getelementptr inbounds [1 x %union.setelemT], ptr %250, i64 0, i64 0
  store ptr %251, ptr %14, align 8, !tbaa !5
  br label %252

252:                                              ; preds = %303, %246
  %253 = load ptr, ptr %14, align 8, !tbaa !5
  %254 = getelementptr inbounds ptr, ptr %253, i32 1
  store ptr %254, ptr %14, align 8, !tbaa !5
  %255 = load ptr, ptr %253, align 8, !tbaa !5
  store ptr %255, ptr %13, align 8, !tbaa !5
  %256 = icmp ne ptr %255, null
  br i1 %256, label %257, label %304

257:                                              ; preds = %252
  %258 = load ptr, ptr %13, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.facetT, ptr %258, i32 0, i32 15
  %260 = load i32, ptr %259, align 8
  %261 = lshr i32 %260, 13
  %262 = and i32 %261, 1
  %263 = icmp ne i32 %262, 0
  br i1 %263, label %264, label %267

264:                                              ; preds = %257
  %265 = load ptr, ptr %7, align 8, !tbaa !5
  %266 = load ptr, ptr %13, align 8, !tbaa !5
  call void @qh_degen_redundant_facet(ptr noundef %265, ptr noundef %266)
  br label %303

267:                                              ; preds = %257
  %268 = load i32, ptr %19, align 4, !tbaa !9
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %270, label %281

270:                                              ; preds = %267
  %271 = load ptr, ptr %7, align 8, !tbaa !5
  %272 = load ptr, ptr %7, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.qhT, ptr %272, i32 0, i32 158
  %274 = load ptr, ptr %273, align 8, !tbaa !20
  %275 = load ptr, ptr %13, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.facetT, ptr %275, i32 0, i32 14
  %277 = load i32, ptr %276, align 4, !tbaa !21
  %278 = load ptr, ptr %8, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.vertexT, ptr %278, i32 0, i32 4
  %280 = load i32, ptr %279, align 8, !tbaa !17
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %271, ptr noundef %274, i32 noundef 4080, ptr noundef @.str.216, i32 noundef %277, i32 noundef %280)
  br label %281

281:                                              ; preds = %270, %267
  %282 = load ptr, ptr %7, align 8, !tbaa !5
  %283 = load ptr, ptr %13, align 8, !tbaa !5
  call void @qh_maydropneighbor(ptr noundef %282, ptr noundef %283)
  %284 = load ptr, ptr %13, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.facetT, ptr %284, i32 0, i32 8
  %286 = load ptr, ptr %285, align 8, !tbaa !25
  %287 = load ptr, ptr %8, align 8, !tbaa !5
  %288 = call ptr @qh_setdelsorted(ptr noundef %286, ptr noundef %287)
  %289 = load ptr, ptr %7, align 8, !tbaa !5
  %290 = load ptr, ptr %13, align 8, !tbaa !5
  %291 = call i32 @qh_remove_extravertices(ptr noundef %289, ptr noundef %290)
  %292 = icmp ne i32 %291, 0
  br i1 %292, label %293, label %296

293:                                              ; preds = %281
  %294 = load ptr, ptr %14, align 8, !tbaa !5
  %295 = getelementptr inbounds ptr, ptr %294, i32 -1
  store ptr %295, ptr %14, align 8, !tbaa !5
  br label %296

296:                                              ; preds = %293, %281
  %297 = load ptr, ptr %7, align 8, !tbaa !5
  %298 = load ptr, ptr %13, align 8, !tbaa !5
  call void @qh_degen_redundant_facet(ptr noundef %297, ptr noundef %298)
  %299 = load ptr, ptr %7, align 8, !tbaa !5
  %300 = load ptr, ptr %13, align 8, !tbaa !5
  call void @qh_test_redundant_neighbors(ptr noundef %299, ptr noundef %300)
  %301 = load ptr, ptr %7, align 8, !tbaa !5
  %302 = load ptr, ptr %13, align 8, !tbaa !5
  call void @qh_test_degen_neighbors(ptr noundef %301, ptr noundef %302)
  br label %303

303:                                              ; preds = %296, %264
  br label %252, !llvm.loop !32

304:                                              ; preds = %252
  br label %305

305:                                              ; preds = %304, %241
  %306 = load ptr, ptr %8, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.vertexT, ptr %306, i32 0, i32 6
  %308 = load i8, ptr %307, align 8
  %309 = lshr i8 %308, 2
  %310 = and i8 %309, 1
  %311 = zext i8 %310 to i32
  %312 = icmp ne i32 %311, 0
  br i1 %312, label %323, label %313

313:                                              ; preds = %305
  %314 = load ptr, ptr %8, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.vertexT, ptr %314, i32 0, i32 6
  %316 = load i8, ptr %315, align 8
  %317 = and i8 %316, -5
  %318 = or i8 %317, 4
  store i8 %318, ptr %315, align 8
  %319 = load ptr, ptr %7, align 8, !tbaa !5
  %320 = load ptr, ptr %7, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.qhT, ptr %320, i32 0, i32 226
  %322 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %319, ptr noundef %321, ptr noundef %322)
  br label %323

323:                                              ; preds = %313, %305
  br label %440

324:                                              ; preds = %224
  %325 = load ptr, ptr %7, align 8, !tbaa !5
  %326 = load ptr, ptr %8, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.vertexT, ptr %326, i32 0, i32 3
  %328 = load ptr, ptr %327, align 8, !tbaa !31
  %329 = call i32 @qh_setsize(ptr noundef %325, ptr noundef %328)
  %330 = icmp eq i32 %329, 2
  br i1 %330, label %331, label %389

331:                                              ; preds = %324
  %332 = load ptr, ptr %7, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.qhT, ptr %332, i32 0, i32 258
  %334 = getelementptr inbounds %struct.qhstatT, ptr %333, i32 0, i32 0
  %335 = getelementptr inbounds [249 x %union.intrealT], ptr %334, i64 0, i64 193
  %336 = load i32, ptr %335, align 8, !tbaa !33
  %337 = add nsw i32 %336, 1
  store i32 %337, ptr %335, align 8, !tbaa !33
  %338 = load i32, ptr %19, align 4, !tbaa !9
  %339 = icmp ne i32 %338, 0
  br i1 %339, label %340, label %354

340:                                              ; preds = %331
  %341 = load ptr, ptr %7, align 8, !tbaa !5
  %342 = load ptr, ptr %7, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.qhT, ptr %342, i32 0, i32 158
  %344 = load ptr, ptr %343, align 8, !tbaa !20
  %345 = load ptr, ptr %8, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.vertexT, ptr %345, i32 0, i32 4
  %347 = load i32, ptr %346, align 8, !tbaa !17
  %348 = load ptr, ptr %9, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.vertexT, ptr %348, i32 0, i32 4
  %350 = load i32, ptr %349, align 8, !tbaa !17
  %351 = load ptr, ptr %11, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.facetT, ptr %351, i32 0, i32 14
  %353 = load i32, ptr %352, align 4, !tbaa !21
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %341, ptr noundef %344, i32 noundef 3039, ptr noundef @.str.217, i32 noundef %347, i32 noundef %350, i32 noundef %353)
  br label %354

354:                                              ; preds = %340, %331
  store ptr null, ptr %13, align 8, !tbaa !5
  %355 = load ptr, ptr %8, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.vertexT, ptr %355, i32 0, i32 3
  %357 = load ptr, ptr %356, align 8, !tbaa !31
  %358 = icmp ne ptr %357, null
  br i1 %358, label %359, label %379

359:                                              ; preds = %354
  %360 = load ptr, ptr %8, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.vertexT, ptr %360, i32 0, i32 3
  %362 = load ptr, ptr %361, align 8, !tbaa !31
  %363 = getelementptr inbounds %struct.setT, ptr %362, i32 0, i32 1
  %364 = getelementptr inbounds [1 x %union.setelemT], ptr %363, i64 0, i64 0
  store ptr %364, ptr %14, align 8, !tbaa !5
  br label %365

365:                                              ; preds = %370, %359
  %366 = load ptr, ptr %14, align 8, !tbaa !5
  %367 = getelementptr inbounds ptr, ptr %366, i32 1
  store ptr %367, ptr %14, align 8, !tbaa !5
  %368 = load ptr, ptr %366, align 8, !tbaa !5
  store ptr %368, ptr %13, align 8, !tbaa !5
  %369 = icmp ne ptr %368, null
  br i1 %369, label %370, label %378

370:                                              ; preds = %365
  %371 = load ptr, ptr %13, align 8, !tbaa !5
  %372 = getelementptr inbounds %struct.facetT, ptr %371, i32 0, i32 8
  %373 = load ptr, ptr %372, align 8, !tbaa !25
  %374 = load ptr, ptr %8, align 8, !tbaa !5
  %375 = call ptr @qh_setdelsorted(ptr noundef %373, ptr noundef %374)
  %376 = load ptr, ptr %7, align 8, !tbaa !5
  %377 = load ptr, ptr %13, align 8, !tbaa !5
  call void @qh_degen_redundant_facet(ptr noundef %376, ptr noundef %377)
  br label %365, !llvm.loop !34

378:                                              ; preds = %365
  br label %379

379:                                              ; preds = %378, %354
  %380 = load ptr, ptr %8, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.vertexT, ptr %380, i32 0, i32 6
  %382 = load i8, ptr %381, align 8
  %383 = and i8 %382, -5
  %384 = or i8 %383, 4
  store i8 %384, ptr %381, align 8
  %385 = load ptr, ptr %7, align 8, !tbaa !5
  %386 = load ptr, ptr %7, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.qhT, ptr %386, i32 0, i32 226
  %388 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %385, ptr noundef %387, ptr noundef %388)
  br label %439

389:                                              ; preds = %324
  %390 = load ptr, ptr %7, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.qhT, ptr %390, i32 0, i32 258
  %392 = getelementptr inbounds %struct.qhstatT, ptr %391, i32 0, i32 0
  %393 = getelementptr inbounds [249 x %union.intrealT], ptr %392, i64 0, i64 192
  %394 = load i32, ptr %393, align 8, !tbaa !33
  %395 = add nsw i32 %394, 1
  store i32 %395, ptr %393, align 8, !tbaa !33
  %396 = load i32, ptr %19, align 4, !tbaa !9
  %397 = icmp ne i32 %396, 0
  br i1 %397, label %403, label %398

398:                                              ; preds = %389
  %399 = load ptr, ptr %7, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.qhT, ptr %399, i32 0, i32 29
  %401 = load i32, ptr %400, align 8, !tbaa !11
  %402 = icmp sge i32 %401, 1
  br i1 %402, label %403, label %420

403:                                              ; preds = %398, %389
  %404 = load ptr, ptr %7, align 8, !tbaa !5
  %405 = load ptr, ptr %7, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.qhT, ptr %405, i32 0, i32 158
  %407 = load ptr, ptr %406, align 8, !tbaa !20
  %408 = load ptr, ptr %8, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.vertexT, ptr %408, i32 0, i32 4
  %410 = load i32, ptr %409, align 8, !tbaa !17
  %411 = load ptr, ptr %9, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.vertexT, ptr %411, i32 0, i32 4
  %413 = load i32, ptr %412, align 8, !tbaa !17
  %414 = load ptr, ptr %11, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.facetT, ptr %414, i32 0, i32 14
  %416 = load i32, ptr %415, align 4, !tbaa !21
  %417 = load ptr, ptr %12, align 8, !tbaa !5
  %418 = getelementptr inbounds %struct.facetT, ptr %417, i32 0, i32 14
  %419 = load i32, ptr %418, align 4, !tbaa !21
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %404, ptr noundef %407, i32 noundef 3040, ptr noundef @.str.218, i32 noundef %410, i32 noundef %413, i32 noundef %416, i32 noundef %419)
  br label %420

420:                                              ; preds = %403, %398
  %421 = load ptr, ptr %11, align 8, !tbaa !5
  %422 = getelementptr inbounds %struct.facetT, ptr %421, i32 0, i32 8
  %423 = load ptr, ptr %422, align 8, !tbaa !25
  %424 = load ptr, ptr %8, align 8, !tbaa !5
  %425 = call ptr @qh_setdelsorted(ptr noundef %423, ptr noundef %424)
  %426 = load ptr, ptr %8, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.vertexT, ptr %426, i32 0, i32 3
  %428 = load ptr, ptr %427, align 8, !tbaa !31
  %429 = load ptr, ptr %11, align 8, !tbaa !5
  %430 = call ptr @qh_setdel(ptr noundef %428, ptr noundef %429)
  %431 = load ptr, ptr %7, align 8, !tbaa !5
  %432 = load ptr, ptr %12, align 8, !tbaa !5
  %433 = call i32 @qh_remove_extravertices(ptr noundef %431, ptr noundef %432)
  %434 = icmp ne i32 %433, 0
  br i1 %434, label %435, label %438

435:                                              ; preds = %420
  %436 = load ptr, ptr %7, align 8, !tbaa !5
  %437 = load ptr, ptr %12, align 8, !tbaa !5
  call void @qh_degen_redundant_facet(ptr noundef %436, ptr noundef %437)
  br label %438

438:                                              ; preds = %435, %420
  br label %439

439:                                              ; preds = %438, %379
  br label %440

440:                                              ; preds = %439, %323
  %441 = load ptr, ptr %11, align 8, !tbaa !5
  %442 = icmp ne ptr %441, null
  br i1 %442, label %443, label %446

443:                                              ; preds = %440
  %444 = load ptr, ptr %7, align 8, !tbaa !5
  %445 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_degen_redundant_facet(ptr noundef %444, ptr noundef %445)
  br label %446

446:                                              ; preds = %443, %440
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_renameridgevertex(ptr noundef, 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, !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 = !{!18, !10, i64 32}
!18 = !{!"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}
!19 = !{!12, !10, i64 2528}
!20 = !{!12, !6, i64 2424}
!21 = !{!22, !10, i64 108}
!22 = !{!"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}
!23 = !{!24, !6, i64 8}
!24 = !{!"ridgeT", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28}
!25 = !{!22, !6, i64 64}
!26 = !{!24, !6, i64 16}
!27 = !{!12, !10, i64 632}
!28 = !{!24, !10, i64 24}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!18, !6, i64 24}
!32 = distinct !{!32, !30}
!33 = !{!7, !7, i64 0}
!34 = distinct !{!34, !30}


; 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.212 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [112 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [115 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.217 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [66 x i8], align 1

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

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

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

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

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

declare i32 @qh_setin(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_renamevertex(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = getelementptr inbounds i8, ptr %0, i64 136
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = icmp sgt i32 %8, 1
  %.phi.trans.insert = getelementptr inbounds i8, ptr %1, i64 32
  %.pre = load i32, ptr %.phi.trans.insert, align 8, !tbaa !15
  br i1 %9, label %._crit_edge, label %10

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %0, i64 2528
  %12 = load i32, ptr %11, align 8, !tbaa !17
  %13 = icmp eq i32 %.pre, %12
  br i1 %13, label %._crit_edge, label %14

14:                                               ; preds = %10
  %15 = getelementptr inbounds i8, ptr %2, i64 32
  %16 = load i32, ptr %15, align 8, !tbaa !15
  %17 = icmp eq i32 %16, %12
  br i1 %17, label %._crit_edge, label %33

._crit_edge:                                      ; preds = %6, %14, %10
  %18 = getelementptr inbounds i8, ptr %0, i64 2424
  %19 = load ptr, ptr %18, align 8, !tbaa !18
  %20 = getelementptr inbounds i8, ptr %2, i64 32
  %21 = load i32, ptr %20, align 8, !tbaa !15
  %22 = tail call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef %3) #2
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %26, label %23

23:                                               ; preds = %._crit_edge
  %24 = getelementptr inbounds i8, ptr %4, i64 108
  %25 = load i32, ptr %24, align 4, !tbaa !19
  br label %26

26:                                               ; preds = %._crit_edge, %23
  %27 = phi i32 [ %25, %23 ], [ -1, %._crit_edge ]
  %.not149 = icmp eq ptr %5, null
  br i1 %.not149, label %31, label %28

28:                                               ; preds = %26
  %29 = getelementptr inbounds i8, ptr %5, i64 108
  %30 = load i32, ptr %29, align 4, !tbaa !19
  br label %31

31:                                               ; preds = %26, %28
  %32 = phi i32 [ %30, %28 ], [ -1, %26 ]
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %19, i32 noundef 2086, ptr noundef nonnull @.str.212, i32 noundef %.pre, i32 noundef %21, i32 noundef %22, i32 noundef %27, i32 noundef %32) #2
  br label %33

33:                                               ; preds = %31, %14
  %.not153 = phi i1 [ false, %31 ], [ true, %14 ]
  %.not150 = icmp eq ptr %3, null
  br i1 %.not150, label %.loopexit172, label %.preheader171

.preheader171:                                    ; preds = %33
  %.0133173 = getelementptr inbounds i8, ptr %3, i64 8
  %34 = load ptr, ptr %.0133173, align 8, !tbaa !21
  %.not151174 = icmp eq ptr %34, null
  br i1 %.not151174, label %.loopexit172, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader171
  %35 = getelementptr inbounds i8, ptr %0, i64 632
  %36 = getelementptr inbounds i8, ptr %0, i64 2424
  %37 = getelementptr inbounds i8, ptr %1, i64 32
  %38 = getelementptr inbounds i8, ptr %2, i64 32
  br label %39

39:                                               ; preds = %.lr.ph, %105
  %40 = phi ptr [ %34, %.lr.ph ], [ %106, %105 ]
  %.0133175 = phi ptr [ %.0133173, %.lr.ph ], [ %.0133, %105 ]
  %41 = tail call i32 @qh_renameridgevertex(ptr noundef %0, ptr noundef nonnull %40, ptr noundef %1, ptr noundef %2)
  %.not165 = icmp eq i32 %41, 0
  br i1 %.not165, label %105, label %42

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %40, i64 8
  %44 = load ptr, ptr %43, align 8, !tbaa !22
  %45 = getelementptr inbounds i8, ptr %44, i64 64
  %46 = load ptr, ptr %45, align 8, !tbaa !24
  %47 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %46) #2
  %48 = getelementptr inbounds i8, ptr %40, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !25
  %50 = getelementptr inbounds i8, ptr %49, i64 64
  %51 = load ptr, ptr %50, align 8, !tbaa !24
  %52 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %51) #2
  %53 = load i32, ptr %35, align 8, !tbaa !26
  %54 = icmp slt i32 %47, %53
  br i1 %54, label %66, label %55

55:                                               ; preds = %42
  %56 = icmp eq i32 %47, %53
  br i1 %56, label %57, label %78

57:                                               ; preds = %55
  %58 = load ptr, ptr %43, align 8, !tbaa !22
  %59 = getelementptr inbounds i8, ptr %58, i64 112
  %60 = load i32, ptr %59, align 8
  %61 = and i32 %60, 8192
  %.not166 = icmp eq i32 %61, 0
  br i1 %.not166, label %62, label %78

62:                                               ; preds = %57
  %63 = getelementptr inbounds i8, ptr %58, i64 64
  %64 = load ptr, ptr %63, align 8, !tbaa !24
  %65 = tail call i32 @qh_setin(ptr noundef %64, ptr noundef %2) #2
  %.not167 = icmp eq i32 %65, 0
  br i1 %.not167, label %._crit_edge184, label %66

._crit_edge184:                                   ; preds = %62
  %.pre185 = load i32, ptr %35, align 8, !tbaa !26
  br label %78

66:                                               ; preds = %62, %42
  %67 = load i32, ptr %7, align 8, !tbaa !5
  %68 = icmp sgt i32 %67, 3
  br i1 %68, label %69, label %105

69:                                               ; preds = %66
  %70 = load ptr, ptr %36, align 8, !tbaa !18
  %71 = getelementptr inbounds i8, ptr %40, i64 24
  %72 = load i32, ptr %71, align 8, !tbaa !27
  %73 = load ptr, ptr %43, align 8, !tbaa !22
  %74 = getelementptr inbounds i8, ptr %73, i64 108
  %75 = load i32, ptr %74, align 4, !tbaa !19
  %76 = load i32, ptr %37, align 8, !tbaa !15
  %77 = load i32, ptr %38, align 8, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %70, i32 noundef 4070, ptr noundef nonnull @.str.213, i32 noundef %72, i32 noundef %75, i32 noundef %47, i32 noundef %76, i32 noundef %77) #2
  br label %105

78:                                               ; preds = %._crit_edge184, %57, %55
  %79 = phi i32 [ %.pre185, %._crit_edge184 ], [ %47, %57 ], [ %53, %55 ]
  %80 = icmp slt i32 %52, %79
  br i1 %80, label %92, label %81

81:                                               ; preds = %78
  %82 = icmp eq i32 %52, %79
  br i1 %82, label %83, label %104

83:                                               ; preds = %81
  %84 = load ptr, ptr %48, align 8, !tbaa !25
  %85 = getelementptr inbounds i8, ptr %84, i64 112
  %86 = load i32, ptr %85, align 8
  %87 = and i32 %86, 8192
  %.not168 = icmp eq i32 %87, 0
  br i1 %.not168, label %88, label %104

88:                                               ; preds = %83
  %89 = getelementptr inbounds i8, ptr %84, i64 64
  %90 = load ptr, ptr %89, align 8, !tbaa !24
  %91 = tail call i32 @qh_setin(ptr noundef %90, ptr noundef %2) #2
  %.not169 = icmp eq i32 %91, 0
  br i1 %.not169, label %104, label %92

92:                                               ; preds = %88, %78
  %93 = load i32, ptr %7, align 8, !tbaa !5
  %94 = icmp sgt i32 %93, 3
  br i1 %94, label %95, label %105

95:                                               ; preds = %92
  %96 = load ptr, ptr %36, align 8, !tbaa !18
  %97 = getelementptr inbounds i8, ptr %40, i64 24
  %98 = load i32, ptr %97, align 8, !tbaa !27
  %99 = load ptr, ptr %48, align 8, !tbaa !25
  %100 = getelementptr inbounds i8, ptr %99, i64 108
  %101 = load i32, ptr %100, align 4, !tbaa !19
  %102 = load i32, ptr %37, align 8, !tbaa !15
  %103 = load i32, ptr %38, align 8, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %96, i32 noundef 4071, ptr noundef nonnull @.str.214, i32 noundef %98, i32 noundef %101, i32 noundef %52, i32 noundef %102, i32 noundef %103) #2
  br label %105

104:                                              ; preds = %88, %83, %81
  tail call void @qh_maybe_duplicateridge(ptr noundef nonnull %0, ptr noundef nonnull %40)
  br label %105

105:                                              ; preds = %69, %66, %92, %95, %104, %39
  %.0133 = getelementptr inbounds i8, ptr %.0133175, i64 8
  %106 = load ptr, ptr %.0133, align 8, !tbaa !21
  %.not151 = icmp eq ptr %106, null
  br i1 %.not151, label %.loopexit172, label %39, !llvm.loop !28

.loopexit172:                                     ; preds = %105, %.preheader171, %33
  %.not152 = icmp eq ptr %4, null
  br i1 %.not152, label %107, label %162

107:                                              ; preds = %.loopexit172
  br i1 %.not153, label %115, label %108

108:                                              ; preds = %107
  %109 = getelementptr inbounds i8, ptr %0, i64 2424
  %110 = load ptr, ptr %109, align 8, !tbaa !18
  %111 = getelementptr inbounds i8, ptr %1, i64 32
  %112 = load i32, ptr %111, align 8, !tbaa !15
  %113 = getelementptr inbounds i8, ptr %2, i64 32
  %114 = load i32, ptr %113, align 8, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %110, i32 noundef 2087, ptr noundef nonnull @.str.215, i32 noundef %112, i32 noundef %114) #2
  br label %115

115:                                              ; preds = %108, %107
  %116 = getelementptr inbounds i8, ptr %1, i64 24
  %117 = load ptr, ptr %116, align 8, !tbaa !30
  %.not154 = icmp eq ptr %117, null
  br i1 %.not154, label %.loopexit, label %118

118:                                              ; preds = %115
  %119 = getelementptr inbounds i8, ptr %117, i64 8
  %120 = load ptr, ptr %119, align 8, !tbaa !21
  %.not155180 = icmp eq ptr %120, null
  br i1 %.not155180, label %.loopexit, label %.lr.ph182

.lr.ph182:                                        ; preds = %118
  %121 = getelementptr inbounds i8, ptr %117, i64 16
  %122 = getelementptr inbounds i8, ptr %0, i64 2424
  %123 = getelementptr inbounds i8, ptr %1, i64 32
  br i1 %.not153, label %.lr.ph182.split.us, label %.lr.ph182.split

.lr.ph182.split.us:                               ; preds = %.lr.ph182, %135
  %124 = phi ptr [ %137, %135 ], [ %120, %.lr.ph182 ]
  %125 = phi ptr [ %136, %135 ], [ %121, %.lr.ph182 ]
  %.0132181.us = phi ptr [ %.2.us, %135 ], [ %119, %.lr.ph182 ]
  %126 = getelementptr inbounds i8, ptr %124, i64 112
  %127 = load i32, ptr %126, align 8
  %128 = and i32 %127, 8192
  %.not157.us = icmp eq i32 %128, 0
  br i1 %.not157.us, label %130, label %129

129:                                              ; preds = %.lr.ph182.split.us
  tail call void @qh_degen_redundant_facet(ptr noundef %0, ptr noundef nonnull %124)
  br label %135

130:                                              ; preds = %.lr.ph182.split.us
  tail call void @qh_maydropneighbor(ptr noundef %0, ptr noundef nonnull %124)
  %131 = getelementptr inbounds i8, ptr %124, i64 64
  %132 = load ptr, ptr %131, align 8, !tbaa !24
  %133 = tail call ptr @qh_setdelsorted(ptr noundef %132, ptr noundef %1) #2
  %134 = tail call i32 @qh_remove_extravertices(ptr noundef %0, ptr noundef nonnull %124)
  %.not158.us = icmp eq i32 %134, 0
  %spec.select.us = select i1 %.not158.us, ptr %125, ptr %.0132181.us
  tail call void @qh_degen_redundant_facet(ptr noundef %0, ptr noundef nonnull %124)
  tail call void @qh_test_redundant_neighbors(ptr noundef %0, ptr noundef nonnull %124)
  tail call void @qh_test_degen_neighbors(ptr noundef %0, ptr noundef nonnull %124)
  br label %135

135:                                              ; preds = %130, %129
  %.2.us = phi ptr [ %125, %129 ], [ %spec.select.us, %130 ]
  %136 = getelementptr inbounds i8, ptr %.2.us, i64 8
  %137 = load ptr, ptr %.2.us, align 8, !tbaa !21
  %.not155.us = icmp eq ptr %137, null
  br i1 %.not155.us, label %.loopexit, label %.lr.ph182.split.us, !llvm.loop !31

.lr.ph182.split:                                  ; preds = %.lr.ph182, %153
  %138 = phi ptr [ %155, %153 ], [ %120, %.lr.ph182 ]
  %139 = phi ptr [ %154, %153 ], [ %121, %.lr.ph182 ]
  %.0132181 = phi ptr [ %.2, %153 ], [ %119, %.lr.ph182 ]
  %140 = getelementptr inbounds i8, ptr %138, i64 112
  %141 = load i32, ptr %140, align 8
  %142 = and i32 %141, 8192
  %.not157 = icmp eq i32 %142, 0
  br i1 %.not157, label %144, label %143

143:                                              ; preds = %.lr.ph182.split
  tail call void @qh_degen_redundant_facet(ptr noundef %0, ptr noundef nonnull %138)
  br label %153

144:                                              ; preds = %.lr.ph182.split
  %145 = load ptr, ptr %122, align 8, !tbaa !18
  %146 = getelementptr inbounds i8, ptr %138, i64 108
  %147 = load i32, ptr %146, align 4, !tbaa !19
  %148 = load i32, ptr %123, align 8, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %145, i32 noundef 4080, ptr noundef nonnull @.str.216, i32 noundef %147, i32 noundef %148) #2
  tail call void @qh_maydropneighbor(ptr noundef %0, ptr noundef nonnull %138)
  %149 = getelementptr inbounds i8, ptr %138, i64 64
  %150 = load ptr, ptr %149, align 8, !tbaa !24
  %151 = tail call ptr @qh_setdelsorted(ptr noundef %150, ptr noundef %1) #2
  %152 = tail call i32 @qh_remove_extravertices(ptr noundef %0, ptr noundef nonnull %138)
  %.not158 = icmp eq i32 %152, 0
  %spec.select = select i1 %.not158, ptr %139, ptr %.0132181
  tail call void @qh_degen_redundant_facet(ptr noundef %0, ptr noundef nonnull %138)
  tail call void @qh_test_redundant_neighbors(ptr noundef %0, ptr noundef nonnull %138)
  tail call void @qh_test_degen_neighbors(ptr noundef %0, ptr noundef nonnull %138)
  br label %153

153:                                              ; preds = %144, %143
  %.2 = phi ptr [ %139, %143 ], [ %spec.select, %144 ]
  %154 = getelementptr inbounds i8, ptr %.2, i64 8
  %155 = load ptr, ptr %.2, align 8, !tbaa !21
  %.not155 = icmp eq ptr %155, null
  br i1 %.not155, label %.loopexit, label %.lr.ph182.split, !llvm.loop !31

.loopexit:                                        ; preds = %153, %135, %118, %115
  %156 = getelementptr inbounds i8, ptr %1, i64 40
  %157 = load i8, ptr %156, align 8
  %158 = and i8 %157, 4
  %.not156 = icmp eq i8 %158, 0
  br i1 %.not156, label %159, label %218

159:                                              ; preds = %.loopexit
  %160 = or disjoint i8 %157, 4
  store i8 %160, ptr %156, align 8
  %161 = getelementptr inbounds i8, ptr %0, i64 2840
  tail call void @qh_setappend(ptr noundef %0, ptr noundef nonnull %161, ptr noundef nonnull %1) #2
  br label %218

162:                                              ; preds = %.loopexit172
  %163 = getelementptr inbounds i8, ptr %1, i64 24
  %164 = load ptr, ptr %163, align 8, !tbaa !30
  %165 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %164) #2
  %166 = icmp eq i32 %165, 2
  br i1 %166, label %167, label %192

167:                                              ; preds = %162
  %168 = getelementptr inbounds i8, ptr %0, i64 4968
  %169 = load i32, ptr %168, align 8, !tbaa !32
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %168, align 8, !tbaa !32
  br i1 %.not153, label %180, label %171

171:                                              ; preds = %167
  %172 = getelementptr inbounds i8, ptr %0, i64 2424
  %173 = load ptr, ptr %172, align 8, !tbaa !18
  %174 = getelementptr inbounds i8, ptr %1, i64 32
  %175 = load i32, ptr %174, align 8, !tbaa !15
  %176 = getelementptr inbounds i8, ptr %2, i64 32
  %177 = load i32, ptr %176, align 8, !tbaa !15
  %178 = getelementptr inbounds i8, ptr %4, i64 108
  %179 = load i32, ptr %178, align 4, !tbaa !19
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %173, i32 noundef 3039, ptr noundef nonnull @.str.217, i32 noundef %175, i32 noundef %177, i32 noundef %179) #2
  br label %180

180:                                              ; preds = %171, %167
  %181 = load ptr, ptr %163, align 8, !tbaa !30
  %.not162 = icmp eq ptr %181, null
  br i1 %.not162, label %.loopexit170, label %.preheader

.preheader:                                       ; preds = %180
  %.3176 = getelementptr inbounds i8, ptr %181, i64 8
  %182 = load ptr, ptr %.3176, align 8, !tbaa !21
  %.not164177 = icmp eq ptr %182, null
  br i1 %.not164177, label %.loopexit170, label %.lr.ph179

.lr.ph179:                                        ; preds = %.preheader, %.lr.ph179
  %183 = phi ptr [ %187, %.lr.ph179 ], [ %182, %.preheader ]
  %.3178 = phi ptr [ %.3, %.lr.ph179 ], [ %.3176, %.preheader ]
  %184 = getelementptr inbounds i8, ptr %183, i64 64
  %185 = load ptr, ptr %184, align 8, !tbaa !24
  %186 = tail call ptr @qh_setdelsorted(ptr noundef %185, ptr noundef %1) #2
  tail call void @qh_degen_redundant_facet(ptr noundef %0, ptr noundef nonnull %183)
  %.3 = getelementptr inbounds i8, ptr %.3178, i64 8
  %187 = load ptr, ptr %.3, align 8, !tbaa !21
  %.not164 = icmp eq ptr %187, null
  br i1 %.not164, label %.loopexit170, label %.lr.ph179, !llvm.loop !33

.loopexit170:                                     ; preds = %.lr.ph179, %.preheader, %180
  %188 = getelementptr inbounds i8, ptr %1, i64 40
  %189 = load i8, ptr %188, align 8
  %190 = or i8 %189, 4
  store i8 %190, ptr %188, align 8
  %191 = getelementptr inbounds i8, ptr %0, i64 2840
  tail call void @qh_setappend(ptr noundef %0, ptr noundef nonnull %191, ptr noundef %1) #2
  br label %218

192:                                              ; preds = %162
  %193 = getelementptr inbounds i8, ptr %0, i64 4960
  %194 = load i32, ptr %193, align 8, !tbaa !32
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %193, align 8, !tbaa !32
  br i1 %.not153, label %196, label %199

196:                                              ; preds = %192
  %197 = load i32, ptr %7, align 8, !tbaa !5
  %198 = icmp sgt i32 %197, 0
  br i1 %198, label %199, label %210

199:                                              ; preds = %196, %192
  %200 = getelementptr inbounds i8, ptr %0, i64 2424
  %201 = load ptr, ptr %200, align 8, !tbaa !18
  %202 = getelementptr inbounds i8, ptr %1, i64 32
  %203 = load i32, ptr %202, align 8, !tbaa !15
  %204 = getelementptr inbounds i8, ptr %2, i64 32
  %205 = load i32, ptr %204, align 8, !tbaa !15
  %206 = getelementptr inbounds i8, ptr %4, i64 108
  %207 = load i32, ptr %206, align 4, !tbaa !19
  %208 = getelementptr inbounds i8, ptr %5, i64 108
  %209 = load i32, ptr %208, align 4, !tbaa !19
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %201, i32 noundef 3040, ptr noundef nonnull @.str.218, i32 noundef %203, i32 noundef %205, i32 noundef %207, i32 noundef %209) #2
  br label %210

210:                                              ; preds = %199, %196
  %211 = getelementptr inbounds i8, ptr %4, i64 64
  %212 = load ptr, ptr %211, align 8, !tbaa !24
  %213 = tail call ptr @qh_setdelsorted(ptr noundef %212, ptr noundef nonnull %1) #2
  %214 = load ptr, ptr %163, align 8, !tbaa !30
  %215 = tail call ptr @qh_setdel(ptr noundef %214, ptr noundef nonnull %4) #2
  %216 = tail call i32 @qh_remove_extravertices(ptr noundef nonnull %0, ptr noundef %5)
  %.not160 = icmp eq i32 %216, 0
  br i1 %.not160, label %.thread, label %217

217:                                              ; preds = %210
  tail call void @qh_degen_redundant_facet(ptr noundef nonnull %0, ptr noundef %5)
  br label %.thread

218:                                              ; preds = %.loopexit170, %.loopexit, %159
  br i1 %.not152, label %219, label %.thread

.thread:                                          ; preds = %210, %217, %218
  tail call void @qh_degen_redundant_facet(ptr noundef %0, ptr noundef nonnull %4)
  br label %219

219:                                              ; preds = %.thread, %218
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_renameridgevertex(ptr noundef, 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, !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 = !{!16, !7, i64 32}
!16 = !{!"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}
!17 = !{!6, !7, i64 2528}
!18 = !{!6, !11, i64 2424}
!19 = !{!20, !7, i64 108}
!20 = !{!"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}
!21 = !{!11, !11, i64 0}
!22 = !{!23, !11, i64 8}
!23 = !{!"ridgeT", !11, i64 0, !11, i64 8, !11, i64 16, !7, i64 24, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28}
!24 = !{!20, !11, i64 64}
!25 = !{!23, !11, i64 16}
!26 = !{!6, !7, i64 632}
!27 = !{!23, !7, i64 24}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!16, !11, i64 24}
!31 = distinct !{!31, !29}
!32 = !{!8, !8, i64 0}
!33 = distinct !{!33, !29}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass