; 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.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }
%struct.mergeT = type { double, double, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }

@.str.127 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [130 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [59 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

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

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

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

17:                                               ; preds = %2
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.qhT, ptr %18, i32 0, i32 166
  %20 = load ptr, ptr %19, align 8, !tbaa !17
  %21 = icmp ne ptr %20, null
  br i1 %21, label %27, label %22

22:                                               ; preds = %17
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.qhT, ptr %23, i32 0, i32 177
  %25 = load ptr, ptr %24, align 8, !tbaa !18
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %72

27:                                               ; preds = %22, %17, %2
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.qhT, ptr %29, i32 0, i32 158
  %31 = load ptr, ptr %30, align 8, !tbaa !19
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.qhT, ptr %32, i32 0, i32 167
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %42

36:                                               ; preds = %27
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.qhT, ptr %37, i32 0, i32 167
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = getelementptr inbounds %struct.facetT, ptr %39, i32 0, i32 14
  %41 = load i32, ptr %40, align 4, !tbaa !20
  br label %43

42:                                               ; preds = %27
  br label %43

43:                                               ; preds = %42, %36
  %44 = phi i32 [ %41, %36 ], [ -1, %42 ]
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.qhT, ptr %45, i32 0, i32 166
  %47 = load ptr, ptr %46, align 8, !tbaa !17
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %55

49:                                               ; preds = %43
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.qhT, ptr %50, i32 0, i32 166
  %52 = load ptr, ptr %51, align 8, !tbaa !17
  %53 = getelementptr inbounds %struct.facetT, ptr %52, i32 0, i32 14
  %54 = load i32, ptr %53, align 4, !tbaa !20
  br label %56

55:                                               ; preds = %43
  br label %56

56:                                               ; preds = %55, %49
  %57 = phi i32 [ %54, %49 ], [ -1, %55 ]
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.qhT, ptr %58, i32 0, i32 177
  %60 = load ptr, ptr %59, align 8, !tbaa !18
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %68

62:                                               ; preds = %56
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.qhT, ptr %63, i32 0, i32 177
  %65 = load ptr, ptr %64, align 8, !tbaa !18
  %66 = getelementptr inbounds %struct.vertexT, ptr %65, i32 0, i32 4
  %67 = load i32, ptr %66, align 8, !tbaa !22
  br label %69

68:                                               ; preds = %56
  br label %69

69:                                               ; preds = %68, %62
  %70 = phi i32 [ %67, %62 ], [ -1, %68 ]
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %28, ptr noundef %31, i32 noundef 6402, ptr noundef @.str.127, i32 noundef %44, i32 noundef %57, i32 noundef %70)
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %71, i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %72

72:                                               ; preds = %69, %22
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.qhT, ptr %73, i32 0, i32 164
  %75 = load ptr, ptr %74, align 8, !tbaa !24
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.qhT, ptr %76, i32 0, i32 166
  store ptr %75, ptr %77, align 8, !tbaa !17
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.qhT, ptr %78, i32 0, i32 167
  store ptr %75, ptr %79, align 8, !tbaa !11
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.qhT, ptr %80, i32 0, i32 176
  %82 = load ptr, ptr %81, align 8, !tbaa !25
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.qhT, ptr %83, i32 0, i32 177
  store ptr %82, ptr %84, align 8, !tbaa !18
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.qhT, ptr %85, i32 0, i32 196
  store i32 1, ptr %86, align 8, !tbaa !26
  br label %87

87:                                               ; preds = %244, %72
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = call ptr @qh_next_vertexmerge(ptr noundef %88)
  store ptr %89, ptr %5, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %247

91:                                               ; preds = %87
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.qhT, ptr %92, i32 0, i32 96
  %94 = load i32, ptr %93, align 8, !tbaa !27
  %95 = sub nsw i32 %94, 1
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.qhT, ptr %96, i32 0, i32 258
  %98 = getelementptr inbounds %struct.qhstatT, ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds [249 x %union.intrealT], ptr %98, i64 0, i64 216
  %100 = load i32, ptr %99, align 8, !tbaa !28
  %101 = icmp eq i32 %95, %100
  br i1 %101, label %102, label %111

102:                                              ; preds = %91
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.qhT, ptr %103, i32 0, i32 92
  %105 = load i32, ptr %104, align 8, !tbaa !29
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.qhT, ptr %106, i32 0, i32 29
  store i32 %105, ptr %107, align 8, !tbaa !30
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.qhT, ptr %108, i32 0, i32 257
  %110 = getelementptr inbounds %struct.qhmemT, ptr %109, i32 0, i32 14
  store i32 %105, ptr %110, align 8, !tbaa !31
  br label %111

111:                                              ; preds = %102, %91
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.mergeT, ptr %112, i32 0, i32 8
  %114 = load i32, ptr %113, align 8, !tbaa !32
  %115 = icmp eq i32 %114, 8
  br i1 %115, label %116, label %144

116:                                              ; preds = %111
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.qhT, ptr %117, i32 0, i32 258
  %119 = getelementptr inbounds %struct.qhstatT, ptr %118, i32 0, i32 0
  %120 = getelementptr inbounds [249 x %union.intrealT], ptr %119, i64 0, i64 184
  %121 = load i32, ptr %120, align 8, !tbaa !28
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %120, align 8, !tbaa !28
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.qhT, ptr %123, i32 0, i32 29
  %125 = load i32, ptr %124, align 8, !tbaa !30
  %126 = icmp sge i32 %125, 1
  br i1 %126, label %127, label %139

127:                                              ; preds = %116
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.qhT, ptr %129, i32 0, i32 158
  %131 = load ptr, ptr %130, align 8, !tbaa !19
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.qhT, ptr %133, i32 0, i32 223
  %135 = load ptr, ptr %134, align 8, !tbaa !34
  %136 = call i32 @qh_setsize(ptr noundef %132, ptr noundef %135)
  %137 = add nsw i32 %136, 1
  %138 = load i32, ptr %4, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %128, ptr noundef %131, i32 noundef 1050, ptr noundef @.str.128, i32 noundef %137, i32 noundef %138)
  br label %139

139:                                              ; preds = %127, %116
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.qhT, ptr %141, i32 0, i32 223
  %143 = load ptr, ptr %142, align 8, !tbaa !34
  call void @qh_remove_mergetype(ptr noundef %140, ptr noundef %143, i32 noundef 8)
  br label %172

144:                                              ; preds = %111
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.qhT, ptr %145, i32 0, i32 258
  %147 = getelementptr inbounds %struct.qhstatT, ptr %146, i32 0, i32 0
  %148 = getelementptr inbounds [249 x %union.intrealT], ptr %147, i64 0, i64 182
  %149 = load i32, ptr %148, align 8, !tbaa !28
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %148, align 8, !tbaa !28
  %151 = load i32, ptr %11, align 4, !tbaa !9
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %171

153:                                              ; preds = %144
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.qhT, ptr %154, i32 0, i32 29
  %156 = load i32, ptr %155, align 8, !tbaa !30
  %157 = icmp sge i32 %156, 1
  br i1 %157, label %158, label %170

158:                                              ; preds = %153
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.qhT, ptr %160, i32 0, i32 158
  %162 = load ptr, ptr %161, align 8, !tbaa !19
  %163 = load ptr, ptr %3, align 8, !tbaa !5
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.qhT, ptr %164, i32 0, i32 223
  %166 = load ptr, ptr %165, align 8, !tbaa !34
  %167 = call i32 @qh_setsize(ptr noundef %163, ptr noundef %166)
  %168 = add nsw i32 %167, 1
  %169 = load i32, ptr %4, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %159, ptr noundef %162, i32 noundef 1056, ptr noundef @.str.129, i32 noundef %168, i32 noundef %169)
  br label %170

170:                                              ; preds = %158, %153
  br label %171

171:                                              ; preds = %170, %144
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %171, %139
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.mergeT, ptr %173, i32 0, i32 4
  %175 = load ptr, ptr %174, align 8, !tbaa !35
  store ptr %175, ptr %8, align 8, !tbaa !5
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.mergeT, ptr %176, i32 0, i32 5
  %178 = load ptr, ptr %177, align 8, !tbaa !36
  store ptr %178, ptr %9, align 8, !tbaa !5
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.mergeT, ptr %179, i32 0, i32 1
  %181 = load double, ptr %180, align 8, !tbaa !37
  store double %181, ptr %10, align 8, !tbaa !38
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_memfree(ptr noundef %182, ptr noundef %183, i32 noundef 72)
  %184 = load ptr, ptr %3, align 8, !tbaa !5
  %185 = load ptr, ptr %8, align 8, !tbaa !5
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = load double, ptr %10, align 8, !tbaa !38
  call void @qh_rename_adjacentvertex(ptr noundef %184, ptr noundef %185, ptr noundef %186, double noundef %187)
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.qhT, ptr %188, i32 0, i32 29
  %190 = load i32, ptr %189, align 8, !tbaa !30
  %191 = icmp sge i32 %190, 2
  br i1 %191, label %192, label %244

192:                                              ; preds = %172
  store ptr null, ptr %6, align 8, !tbaa !5
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.qhT, ptr %193, i32 0, i32 222
  %195 = load ptr, ptr %194, align 8, !tbaa !39
  %196 = icmp ne ptr %195, null
  br i1 %196, label %197, label %243

197:                                              ; preds = %192
  %198 = load ptr, ptr %3, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.qhT, ptr %198, i32 0, i32 222
  %200 = load ptr, ptr %199, align 8, !tbaa !39
  %201 = getelementptr inbounds %struct.setT, ptr %200, i32 0, i32 1
  %202 = getelementptr inbounds [1 x %union.setelemT], ptr %201, i64 0, i64 0
  store ptr %202, ptr %7, align 8, !tbaa !5
  br label %203

203:                                              ; preds = %241, %197
  %204 = load ptr, ptr %7, align 8, !tbaa !5
  %205 = getelementptr inbounds ptr, ptr %204, i32 1
  store ptr %205, ptr %7, align 8, !tbaa !5
  %206 = load ptr, ptr %204, align 8, !tbaa !5
  store ptr %206, ptr %6, align 8, !tbaa !5
  %207 = icmp ne ptr %206, null
  br i1 %207, label %208, label %242

208:                                              ; preds = %203
  %209 = load ptr, ptr %6, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.mergeT, ptr %209, i32 0, i32 8
  %211 = load i32, ptr %210, align 8, !tbaa !32
  %212 = icmp eq i32 %211, 10
  br i1 %212, label %213, label %223

213:                                              ; preds = %208
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  %215 = load ptr, ptr %3, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.qhT, ptr %215, i32 0, i32 158
  %217 = load ptr, ptr %216, align 8, !tbaa !19
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.mergeT, ptr %218, i32 0, i32 2
  %220 = load ptr, ptr %219, align 8, !tbaa !40
  %221 = getelementptr inbounds %struct.facetT, ptr %220, i32 0, i32 14
  %222 = load i32, ptr %221, align 4, !tbaa !20
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %214, ptr noundef %217, i32 noundef 2072, ptr noundef @.str.130, i32 noundef %222)
  br label %241

223:                                              ; preds = %208
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  %225 = load ptr, ptr %3, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.qhT, ptr %225, i32 0, i32 158
  %227 = load ptr, ptr %226, align 8, !tbaa !19
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.mergeT, ptr %228, i32 0, i32 2
  %230 = load ptr, ptr %229, align 8, !tbaa !40
  %231 = getelementptr inbounds %struct.facetT, ptr %230, i32 0, i32 14
  %232 = load i32, ptr %231, align 4, !tbaa !20
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.mergeT, ptr %233, i32 0, i32 3
  %235 = load ptr, ptr %234, align 8, !tbaa !41
  %236 = getelementptr inbounds %struct.facetT, ptr %235, i32 0, i32 14
  %237 = load i32, ptr %236, align 4, !tbaa !20
  %238 = load ptr, ptr %6, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.mergeT, ptr %238, i32 0, i32 8
  %240 = load i32, ptr %239, align 8, !tbaa !32
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %224, ptr noundef %227, i32 noundef 2084, ptr noundef @.str.131, i32 noundef %232, i32 noundef %237, i32 noundef %240)
  br label %241

241:                                              ; preds = %223, %213
  br label %203, !llvm.loop !42

242:                                              ; preds = %203
  br label %243

243:                                              ; preds = %242, %192
  br label %244

244:                                              ; preds = %243, %172
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  %246 = call i32 @qh_merge_degenredundant(ptr noundef %245)
  br label %87, !llvm.loop !44

247:                                              ; preds = %87
  %248 = load ptr, ptr %3, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.qhT, ptr %248, i32 0, i32 196
  store i32 0, ptr %249, align 8, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

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

declare void @qh_vertexneighbors(ptr noundef) #1

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

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

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


; 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.127 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [130 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [59 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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_merge_pinchedvertices(ptr noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  tail call void @qh_vertexneighbors(ptr noundef %0) #2
  %3 = getelementptr inbounds i8, ptr %0, i64 2488
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %5, label %.thread

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 2480
  %7 = load ptr, ptr %6, align 8, !tbaa !15
  %.not74 = icmp eq ptr %7, null
  br i1 %.not74, label %9, label %.thread.thread91

.thread.thread91:                                 ; preds = %5
  %.in92 = getelementptr inbounds i8, ptr %0, i64 2424
  %8 = load ptr, ptr %.in92, align 8, !tbaa !16
  br label %16

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %0, i64 2560
  %11 = load ptr, ptr %10, align 8, !tbaa !17
  %.not75 = icmp eq ptr %11, null
  br i1 %.not75, label %33, label %.thread.thread

.thread.thread:                                   ; preds = %9
  %.in89 = getelementptr inbounds i8, ptr %0, i64 2424
  %12 = load ptr, ptr %.in89, align 8, !tbaa !16
  br label %22

.thread:                                          ; preds = %2
  %13 = getelementptr inbounds i8, ptr %4, i64 108
  %14 = load i32, ptr %13, align 4, !tbaa !18
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 2480
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !15
  %.in = getelementptr inbounds i8, ptr %0, i64 2424
  %15 = load ptr, ptr %.in, align 8, !tbaa !16
  %.not77 = icmp eq ptr %.pre, null
  br i1 %.not77, label %22, label %16

16:                                               ; preds = %.thread.thread91, %.thread
  %17 = phi ptr [ %8, %.thread.thread91 ], [ %15, %.thread ]
  %18 = phi i32 [ -1, %.thread.thread91 ], [ %14, %.thread ]
  %19 = phi ptr [ %7, %.thread.thread91 ], [ %.pre, %.thread ]
  %20 = getelementptr inbounds i8, ptr %19, i64 108
  %21 = load i32, ptr %20, align 4, !tbaa !18
  br label %22

22:                                               ; preds = %.thread.thread, %.thread, %16
  %23 = phi ptr [ %17, %16 ], [ %15, %.thread ], [ %12, %.thread.thread ]
  %24 = phi i32 [ %18, %16 ], [ %14, %.thread ], [ -1, %.thread.thread ]
  %25 = phi i32 [ %21, %16 ], [ -1, %.thread ], [ -1, %.thread.thread ]
  %26 = getelementptr inbounds i8, ptr %0, i64 2560
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %.not78 = icmp eq ptr %27, null
  br i1 %.not78, label %31, label %28

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %27, i64 32
  %30 = load i32, ptr %29, align 8, !tbaa !20
  br label %31

31:                                               ; preds = %22, %28
  %32 = phi i32 [ %30, %28 ], [ -1, %22 ]
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %23, i32 noundef 6402, ptr noundef nonnull @.str.127, i32 noundef %24, i32 noundef %25, i32 noundef %32) #2
  tail call void @qh_errexit(ptr noundef nonnull %0, i32 noundef 5, ptr noundef null, ptr noundef null) #2
  br label %33

33:                                               ; preds = %31, %9
  %34 = getelementptr inbounds i8, ptr %0, i64 2464
  %35 = load ptr, ptr %34, align 8, !tbaa !22
  %36 = getelementptr inbounds i8, ptr %0, i64 2480
  store ptr %35, ptr %36, align 8, !tbaa !15
  store ptr %35, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %0, i64 2552
  %38 = load ptr, ptr %37, align 8, !tbaa !23
  %39 = getelementptr inbounds i8, ptr %0, i64 2560
  store ptr %38, ptr %39, align 8, !tbaa !17
  %40 = getelementptr inbounds i8, ptr %0, i64 2656
  store i32 1, ptr %40, align 8, !tbaa !24
  %41 = tail call ptr @qh_next_vertexmerge(ptr noundef nonnull %0)
  %.not7986 = icmp eq ptr %41, null
  br i1 %.not7986, label %._crit_edge, label %.lr.ph88

.lr.ph88:                                         ; preds = %33
  %42 = getelementptr inbounds i8, ptr %0, i64 560
  %43 = getelementptr inbounds i8, ptr %0, i64 5152
  %44 = getelementptr inbounds i8, ptr %0, i64 536
  %45 = getelementptr inbounds i8, ptr %0, i64 136
  %46 = getelementptr inbounds i8, ptr %0, i64 3360
  %47 = getelementptr inbounds i8, ptr %0, i64 4880
  %48 = getelementptr inbounds i8, ptr %0, i64 2424
  %49 = getelementptr inbounds i8, ptr %0, i64 2816
  %50 = getelementptr inbounds i8, ptr %0, i64 4896
  %51 = getelementptr inbounds i8, ptr %0, i64 2808
  br label %52

52:                                               ; preds = %.lr.ph88, %.loopexit
  %53 = phi ptr [ %41, %.lr.ph88 ], [ %117, %.loopexit ]
  %.087 = phi i32 [ 1, %.lr.ph88 ], [ %.1, %.loopexit ]
  %54 = load i32, ptr %42, align 8, !tbaa !25
  %55 = add nsw i32 %54, -1
  %56 = load i32, ptr %43, align 8, !tbaa !26
  %57 = icmp eq i32 %55, %56
  br i1 %57, label %58, label %60

58:                                               ; preds = %52
  %59 = load i32, ptr %44, align 8, !tbaa !27
  store i32 %59, ptr %45, align 8, !tbaa !28
  store i32 %59, ptr %46, align 8, !tbaa !29
  br label %60

60:                                               ; preds = %58, %52
  %61 = getelementptr inbounds i8, ptr %53, i64 64
  %62 = load i32, ptr %61, align 8, !tbaa !30
  %63 = icmp eq i32 %62, 8
  br i1 %63, label %64, label %76

64:                                               ; preds = %60
  %65 = load i32, ptr %50, align 8, !tbaa !26
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %50, align 8, !tbaa !26
  %67 = load i32, ptr %45, align 8, !tbaa !28
  %68 = icmp sgt i32 %67, 0
  br i1 %68, label %69, label %74

69:                                               ; preds = %64
  %70 = load ptr, ptr %48, align 8, !tbaa !16
  %71 = load ptr, ptr %49, align 8, !tbaa !32
  %72 = tail call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef %71) #2
  %73 = add nsw i32 %72, 1
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %70, i32 noundef 1050, ptr noundef nonnull @.str.128, i32 noundef %73, i32 noundef %1) #2
  br label %74

74:                                               ; preds = %69, %64
  %75 = load ptr, ptr %49, align 8, !tbaa !32
  tail call void @qh_remove_mergetype(ptr noundef nonnull %0, ptr noundef %75, i32 noundef 8)
  br label %87

76:                                               ; preds = %60
  %77 = load i32, ptr %47, align 8, !tbaa !26
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %47, align 8, !tbaa !26
  %.not80 = icmp eq i32 %.087, 0
  br i1 %.not80, label %87, label %79

79:                                               ; preds = %76
  %80 = load i32, ptr %45, align 8, !tbaa !28
  %81 = icmp sgt i32 %80, 0
  br i1 %81, label %82, label %87

82:                                               ; preds = %79
  %83 = load ptr, ptr %48, align 8, !tbaa !16
  %84 = load ptr, ptr %49, align 8, !tbaa !32
  %85 = tail call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef %84) #2
  %86 = add nsw i32 %85, 1
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %83, i32 noundef 1056, ptr noundef nonnull @.str.129, i32 noundef %86, i32 noundef %1) #2
  br label %87

87:                                               ; preds = %76, %82, %79, %74
  %.1 = phi i32 [ %.087, %74 ], [ 0, %79 ], [ 0, %82 ], [ 0, %76 ]
  %88 = getelementptr inbounds i8, ptr %53, i64 32
  %89 = load ptr, ptr %88, align 8, !tbaa !33
  %90 = getelementptr inbounds i8, ptr %53, i64 40
  %91 = load ptr, ptr %90, align 8, !tbaa !34
  %92 = getelementptr inbounds i8, ptr %53, i64 8
  %93 = load double, ptr %92, align 8, !tbaa !35
  tail call void @qh_memfree(ptr noundef nonnull %0, ptr noundef nonnull %53, i32 noundef 72) #2
  tail call void @qh_rename_adjacentvertex(ptr noundef nonnull %0, ptr noundef %89, ptr noundef %91, double noundef %93)
  %94 = load i32, ptr %45, align 8, !tbaa !28
  %95 = icmp sgt i32 %94, 1
  br i1 %95, label %96, label %.loopexit

96:                                               ; preds = %87
  %97 = load ptr, ptr %51, align 8, !tbaa !36
  %.not81 = icmp eq ptr %97, null
  br i1 %.not81, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %96
  %.06683 = getelementptr inbounds i8, ptr %97, i64 8
  %98 = load ptr, ptr %.06683, align 8, !tbaa !37
  %.not8284 = icmp eq ptr %98, null
  br i1 %.not8284, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %114
  %99 = phi ptr [ %115, %114 ], [ %98, %.preheader ]
  %.06685 = phi ptr [ %.066, %114 ], [ %.06683, %.preheader ]
  %100 = getelementptr inbounds i8, ptr %99, i64 64
  %101 = load i32, ptr %100, align 8, !tbaa !30
  %102 = icmp eq i32 %101, 10
  %103 = load ptr, ptr %48, align 8, !tbaa !16
  %104 = getelementptr inbounds i8, ptr %99, i64 16
  %105 = load ptr, ptr %104, align 8, !tbaa !38
  %106 = getelementptr inbounds i8, ptr %105, i64 108
  %107 = load i32, ptr %106, align 4, !tbaa !18
  br i1 %102, label %108, label %109

108:                                              ; preds = %.lr.ph
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %103, i32 noundef 2072, ptr noundef nonnull @.str.130, i32 noundef %107) #2
  br label %114

109:                                              ; preds = %.lr.ph
  %110 = getelementptr inbounds i8, ptr %99, i64 24
  %111 = load ptr, ptr %110, align 8, !tbaa !39
  %112 = getelementptr inbounds i8, ptr %111, i64 108
  %113 = load i32, ptr %112, align 4, !tbaa !18
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %103, i32 noundef 2084, ptr noundef nonnull @.str.131, i32 noundef %107, i32 noundef %113, i32 noundef %101) #2
  br label %114

114:                                              ; preds = %109, %108
  %.066 = getelementptr inbounds i8, ptr %.06685, i64 8
  %115 = load ptr, ptr %.066, align 8, !tbaa !37
  %.not82 = icmp eq ptr %115, null
  br i1 %.not82, label %.loopexit, label %.lr.ph, !llvm.loop !40

.loopexit:                                        ; preds = %114, %.preheader, %96, %87
  %116 = tail call i32 @qh_merge_degenredundant(ptr noundef nonnull %0)
  %117 = tail call ptr @qh_next_vertexmerge(ptr noundef nonnull %0)
  %.not79 = icmp eq ptr %117, null
  br i1 %.not79, label %._crit_edge, label %52, !llvm.loop !42

._crit_edge:                                      ; preds = %.loopexit, %33
  store i32 0, ptr %40, align 8, !tbaa !24
  ret void
}

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

declare void @qh_vertexneighbors(ptr noundef) local_unnamed_addr #0

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

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

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


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