; 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.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }

@.str.67 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [35 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 void @qh_errexit(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

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

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

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

declare void @qh_vertexneighbors(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_mergecycle(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.qhT, ptr %11, i32 0, i32 258
  %13 = getelementptr inbounds %struct.qhstatT, ptr %12, i32 0, i32 0
  %14 = getelementptr inbounds [249 x %union.intrealT], ptr %13, i64 0, i64 216
  %15 = load i32, ptr %14, align 8, !tbaa !11
  %16 = add nsw i32 %15, 1
  store i32 %16, ptr %14, align 8, !tbaa !11
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.qhT, ptr %17, i32 0, i32 78
  %19 = load i32, ptr %18, align 8, !tbaa !12
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %43

21:                                               ; preds = %3
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.qhT, ptr %22, i32 0, i32 209
  %24 = load i32, ptr %23, align 8, !tbaa !18
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %43

26:                                               ; preds = %21
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.qhT, ptr %27, i32 0, i32 258
  %29 = getelementptr inbounds %struct.qhstatT, ptr %28, i32 0, i32 0
  %30 = getelementptr inbounds [249 x %union.intrealT], ptr %29, i64 0, i64 216
  %31 = load i32, ptr %30, align 8, !tbaa !11
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.qhT, ptr %32, i32 0, i32 246
  %34 = load i32, ptr %33, align 4, !tbaa !19
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.qhT, ptr %35, i32 0, i32 78
  %37 = load i32, ptr %36, align 8, !tbaa !12
  %38 = add nsw i32 %34, %37
  %39 = icmp sgt i32 %31, %38
  br i1 %39, label %40, label %42

40:                                               ; preds = %26
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_tracemerging(ptr noundef %41)
  br label %42

42:                                               ; preds = %40, %26
  br label %43

43:                                               ; preds = %42, %21, %3
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.qhT, ptr %44, i32 0, i32 96
  %46 = load i32, ptr %45, align 8, !tbaa !20
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.qhT, ptr %47, i32 0, i32 258
  %49 = getelementptr inbounds %struct.qhstatT, ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds [249 x %union.intrealT], ptr %49, i64 0, i64 216
  %51 = load i32, ptr %50, align 8, !tbaa !11
  %52 = icmp eq i32 %46, %51
  br i1 %52, label %53, label %62

53:                                               ; preds = %43
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.qhT, ptr %54, i32 0, i32 92
  %56 = load i32, ptr %55, align 8, !tbaa !21
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.qhT, ptr %57, i32 0, i32 29
  store i32 %56, ptr %58, align 8, !tbaa !22
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.qhT, ptr %59, i32 0, i32 257
  %61 = getelementptr inbounds %struct.qhmemT, ptr %60, i32 0, i32 14
  store i32 %56, ptr %61, align 8, !tbaa !23
  br label %62

62:                                               ; preds = %53, %43
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.qhT, ptr %63, i32 0, i32 29
  %65 = load i32, ptr %64, align 8, !tbaa !22
  %66 = icmp sge i32 %65, 2
  br i1 %66, label %67, label %83

67:                                               ; preds = %62
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.qhT, ptr %69, i32 0, i32 158
  %71 = load ptr, ptr %70, align 8, !tbaa !24
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.qhT, ptr %72, i32 0, i32 258
  %74 = getelementptr inbounds %struct.qhstatT, ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds [249 x %union.intrealT], ptr %74, i64 0, i64 216
  %76 = load i32, ptr %75, align 8, !tbaa !11
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.facetT, ptr %77, i32 0, i32 14
  %79 = load i32, ptr %78, align 4, !tbaa !25
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.facetT, ptr %80, i32 0, i32 14
  %82 = load i32, ptr %81, align 4, !tbaa !25
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %68, ptr noundef %71, i32 noundef 2030, ptr noundef @.str.135, i32 noundef %76, i32 noundef %79, i32 noundef %82)
  br label %83

83:                                               ; preds = %67, %62
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.qhT, ptr %85, i32 0, i32 170
  %87 = load ptr, ptr %86, align 8, !tbaa !27
  %88 = icmp eq ptr %84, %87
  br i1 %88, label %89, label %113

89:                                               ; preds = %83
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.qhT, ptr %90, i32 0, i32 29
  %92 = load i32, ptr %91, align 8, !tbaa !22
  store i32 %92, ptr %8, align 4, !tbaa !9
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.qhT, ptr %93, i32 0, i32 29
  store i32 4, ptr %94, align 8, !tbaa !22
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.qhT, ptr %96, i32 0, i32 158
  %98 = load ptr, ptr %97, align 8, !tbaa !24
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.qhT, ptr %99, i32 0, i32 258
  %101 = getelementptr inbounds %struct.qhstatT, ptr %100, i32 0, i32 0
  %102 = getelementptr inbounds [249 x %union.intrealT], ptr %101, i64 0, i64 216
  %103 = load i32, ptr %102, align 8, !tbaa !11
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.facetT, ptr %104, i32 0, i32 14
  %106 = load i32, ptr %105, align 4, !tbaa !25
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.facetT, ptr %107, i32 0, i32 14
  %109 = load i32, ptr %108, align 4, !tbaa !25
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.qhT, ptr %110, i32 0, i32 190
  %112 = load i32, ptr %111, align 4, !tbaa !28
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %95, ptr noundef %98, i32 noundef 8068, ptr noundef @.str.136, i32 noundef %103, i32 noundef %106, i32 noundef %109, i32 noundef %112)
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %89, %83
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.qhT, ptr %114, i32 0, i32 29
  %116 = load i32, ptr %115, align 8, !tbaa !22
  %117 = icmp sge i32 %116, 4
  br i1 %117, label %118, label %153

118:                                              ; preds = %113
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.qhT, ptr %120, i32 0, i32 158
  %122 = load ptr, ptr %121, align 8, !tbaa !24
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %119, ptr noundef %122, i32 noundef 8069, ptr noundef @.str.137)
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.facetT, ptr %123, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !11
  store ptr %125, ptr %10, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %146, %118
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = icmp ne ptr %127, null
  br i1 %128, label %129, label %148

129:                                              ; preds = %126
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.qhT, ptr %131, i32 0, i32 158
  %133 = load ptr, ptr %132, align 8, !tbaa !24
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.facetT, ptr %134, i32 0, i32 14
  %136 = load i32, ptr %135, align 4, !tbaa !25
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %130, ptr noundef %133, i32 noundef 8070, ptr noundef @.str.138, i32 noundef %136)
  br label %137

137:                                              ; preds = %129
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = icmp eq ptr %138, %139
  br i1 %140, label %141, label %142

141:                                              ; preds = %137
  br label %146

142:                                              ; preds = %137
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.facetT, ptr %143, i32 0, i32 4
  %145 = load ptr, ptr %144, align 8, !tbaa !11
  br label %146

146:                                              ; preds = %142, %141
  %147 = phi ptr [ null, %141 ], [ %145, %142 ]
  store ptr %147, ptr %10, align 8, !tbaa !5
  br label %126, !llvm.loop !29

148:                                              ; preds = %126
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.qhT, ptr %150, i32 0, i32 158
  %152 = load ptr, ptr %151, align 8, !tbaa !24
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %149, ptr noundef %152, i32 noundef 8071, ptr noundef @.str.67)
  br label %153

153:                                              ; preds = %148, %113
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.qhT, ptr %154, i32 0, i32 29
  %156 = load i32, ptr %155, align 8, !tbaa !22
  %157 = icmp sge i32 %156, 4
  br i1 %157, label %158, label %162

158:                                              ; preds = %153
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_errprint(ptr noundef %159, ptr noundef @.str.139, ptr noundef %160, ptr noundef %161, ptr noundef null, ptr noundef null)
  br label %162

162:                                              ; preds = %158, %153
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.facetT, ptr %163, i32 0, i32 15
  %165 = load i32, ptr %164, align 8
  %166 = lshr i32 %165, 9
  %167 = and i32 %166, 1
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %192

169:                                              ; preds = %162
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.qhT, ptr %170, i32 0, i32 98
  %172 = load i32, ptr %171, align 8, !tbaa !31
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %181, label %174

174:                                              ; preds = %169
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.qhT, ptr %176, i32 0, i32 158
  %178 = load ptr, ptr %177, align 8, !tbaa !24
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %175, ptr noundef %178, i32 noundef 6224, ptr noundef @.str.140)
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %179, i32 noundef 5, ptr noundef %180, ptr noundef null)
  br label %181

181:                                              ; preds = %174, %169
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.facetT, ptr %182, i32 0, i32 15
  %184 = load i32, ptr %183, align 8
  %185 = and i32 %184, -513
  %186 = or i32 %185, 0
  store i32 %186, ptr %183, align 8
  %187 = load ptr, ptr %6, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.facetT, ptr %187, i32 0, i32 15
  %189 = load i32, ptr %188, align 8
  %190 = and i32 %189, -268435457
  %191 = or i32 %190, 0
  store i32 %191, ptr %188, align 8
  br label %192

192:                                              ; preds = %181, %162
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.qhT, ptr %193, i32 0, i32 14
  %195 = load i32, ptr %194, align 4, !tbaa !32
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %197, label %199

197:                                              ; preds = %192
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_checkdelridge(ptr noundef %198)
  br label %199

199:                                              ; preds = %197, %192
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.qhT, ptr %200, i32 0, i32 125
  %202 = load i32, ptr %201, align 8, !tbaa !33
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %206, label %204

204:                                              ; preds = %199
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_vertexneighbors(ptr noundef %205)
  br label %206

206:                                              ; preds = %204, %199
  %207 = load ptr, ptr %5, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.facetT, ptr %207, i32 0, i32 8
  %209 = load ptr, ptr %208, align 8, !tbaa !34
  %210 = getelementptr inbounds %struct.setT, ptr %209, i32 0, i32 1
  %211 = getelementptr inbounds [1 x %union.setelemT], ptr %210, i64 0, i64 0
  %212 = load ptr, ptr %211, align 8, !tbaa !11
  store ptr %212, ptr %9, align 8, !tbaa !5
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_makeridges(ptr noundef %213, ptr noundef %214)
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_mergecycle_neighbors(ptr noundef %215, ptr noundef %216, ptr noundef %217)
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_mergecycle_ridges(ptr noundef %218, ptr noundef %219, ptr noundef %220)
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_mergecycle_vneighbors(ptr noundef %221, ptr noundef %222, ptr noundef %223)
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.facetT, ptr %224, i32 0, i32 8
  %226 = load ptr, ptr %225, align 8, !tbaa !34
  %227 = getelementptr inbounds %struct.setT, ptr %226, i32 0, i32 1
  %228 = getelementptr inbounds [1 x %union.setelemT], ptr %227, i64 0, i64 0
  %229 = load ptr, ptr %228, align 8, !tbaa !11
  %230 = load ptr, ptr %9, align 8, !tbaa !5
  %231 = icmp ne ptr %229, %230
  br i1 %231, label %232, label %237

232:                                              ; preds = %206
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.facetT, ptr %234, i32 0, i32 8
  %236 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_setaddnth(ptr noundef %233, ptr noundef %235, i32 noundef 0, ptr noundef %236)
  br label %237

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

244:                                              ; preds = %237
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.facetT, ptr %246, i32 0, i32 8
  %248 = load ptr, ptr %247, align 8, !tbaa !34
  call void @qh_newvertices(ptr noundef %245, ptr noundef %248)
  br label %249

249:                                              ; preds = %244, %237
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_mergecycle_facets(ptr noundef %250, ptr noundef %251, ptr noundef %252)
  %253 = load ptr, ptr %4, align 8, !tbaa !5
  %254 = load ptr, ptr %5, align 8, !tbaa !5
  %255 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_tracemerge(ptr noundef %253, ptr noundef %254, ptr noundef %255, i32 noundef 13)
  %256 = load i32, ptr %7, align 4, !tbaa !9
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %258, label %266

258:                                              ; preds = %249
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = load ptr, ptr %4, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.qhT, ptr %260, i32 0, i32 158
  %262 = load ptr, ptr %261, align 8, !tbaa !24
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %259, ptr noundef %262, i32 noundef 8072, ptr noundef @.str.141)
  %263 = load i32, ptr %8, align 4, !tbaa !9
  %264 = load ptr, ptr %4, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.qhT, ptr %264, i32 0, i32 29
  store i32 %263, ptr %265, align 8, !tbaa !22
  br label %266

266:                                              ; preds = %258, %249
  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 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret void
}

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_tracemerge(ptr noundef, ptr noundef, ptr noundef, i32 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 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 480}
!13 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !14, 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, !14, i64 64, !14, 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, !14, i64 160, !14, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !14, i64 192, !14, i64 200, !10, i64 208, !10, i64 212, !14, 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, !14, i64 448, !14, i64 456, !14, 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, !14, 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, !14, 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, !14, i64 1760, !14, i64 1768, !14, i64 1776, !14, i64 1784, !14, i64 1792, !14, i64 1800, !14, i64 1808, !14, i64 1816, !14, i64 1824, !14, i64 1832, !14, i64 1840, !14, i64 1848, !14, i64 1856, !14, i64 1864, !6, i64 1872, !14, i64 1880, !14, i64 1888, !14, i64 1896, !14, 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, !15, 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, !14, i64 2664, !10, i64 2672, !14, i64 2680, !14, i64 2688, !14, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !14, i64 2728, !14, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !14, i64 2768, !14, 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, !14, i64 2920, !14, i64 2928, !14, i64 2936, !14, 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, !14, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !16, i64 3272, !17, i64 3424}
!14 = !{!"double", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"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}
!17 = !{!"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, !14, i64 5336}
!18 = !{!13, !10, i64 2744}
!19 = !{!13, !10, i64 2972}
!20 = !{!13, !10, i64 560}
!21 = !{!13, !10, i64 536}
!22 = !{!13, !10, i64 136}
!23 = !{!13, !10, i64 3360}
!24 = !{!13, !6, i64 2424}
!25 = !{!26, !10, i64 108}
!26 = !{!"facetT", !14, i64 0, !14, i64 8, !14, 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}
!27 = !{!13, !6, i64 2504}
!28 = !{!13, !10, i64 2620}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!13, !10, i64 568}
!32 = !{!13, !10, i64 60}
!33 = !{!13, !10, i64 1720}
!34 = !{!26, !6, i64 64}


; 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.67 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [35 x i8], align 1

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

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

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

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

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

declare void @qh_vertexneighbors(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @qh_mergecycle(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = getelementptr inbounds i8, ptr %0, i64 5152
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add nsw i32 %5, 1
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 480
  %8 = load i32, ptr %7, align 8, !tbaa !8
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %17, label %9

9:                                                ; preds = %3
  %10 = getelementptr inbounds i8, ptr %0, i64 2744
  %11 = load i32, ptr %10, align 8, !tbaa !16
  %.not92 = icmp eq i32 %11, 0
  br i1 %.not92, label %17, label %12

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 2972
  %14 = load i32, ptr %13, align 4, !tbaa !17
  %15 = add nsw i32 %14, %8
  %.not93 = icmp slt i32 %5, %15
  br i1 %.not93, label %17, label %16

16:                                               ; preds = %12
  tail call void @qh_tracemerging(ptr noundef nonnull %0)
  %.pre = load i32, ptr %4, align 8, !tbaa !5
  br label %17

17:                                               ; preds = %12, %16, %9, %3
  %18 = phi i32 [ %6, %12 ], [ %.pre, %16 ], [ %6, %9 ], [ %6, %3 ]
  %19 = getelementptr inbounds i8, ptr %0, i64 560
  %20 = load i32, ptr %19, align 8, !tbaa !18
  %21 = icmp eq i32 %20, %18
  br i1 %21, label %22, label %._crit_edge105

._crit_edge105:                                   ; preds = %17
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 136
  %.pre106 = load i32, ptr %.phi.trans.insert, align 8, !tbaa !19
  br label %27

22:                                               ; preds = %17
  %23 = getelementptr inbounds i8, ptr %0, i64 536
  %24 = load i32, ptr %23, align 8, !tbaa !20
  %25 = getelementptr inbounds i8, ptr %0, i64 136
  store i32 %24, ptr %25, align 8, !tbaa !19
  %26 = getelementptr inbounds i8, ptr %0, i64 3360
  store i32 %24, ptr %26, align 8, !tbaa !21
  br label %27

27:                                               ; preds = %._crit_edge105, %22
  %28 = phi i32 [ %.pre106, %._crit_edge105 ], [ %24, %22 ]
  %29 = getelementptr inbounds i8, ptr %0, i64 136
  %30 = icmp sgt i32 %28, 1
  br i1 %30, label %31, label %38

31:                                               ; preds = %27
  %32 = getelementptr inbounds i8, ptr %0, i64 2424
  %33 = load ptr, ptr %32, align 8, !tbaa !22
  %34 = getelementptr inbounds i8, ptr %1, i64 108
  %35 = load i32, ptr %34, align 4, !tbaa !23
  %36 = getelementptr inbounds i8, ptr %2, i64 108
  %37 = load i32, ptr %36, align 4, !tbaa !23
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %33, i32 noundef 2030, ptr noundef nonnull @.str.135, i32 noundef %18, i32 noundef %35, i32 noundef %37) #2
  %.pre108.pre = load i32, ptr %29, align 8, !tbaa !19
  br label %38

38:                                               ; preds = %31, %27
  %.pre108 = phi i32 [ %.pre108.pre, %31 ], [ %28, %27 ]
  %39 = getelementptr inbounds i8, ptr %0, i64 2504
  %40 = load ptr, ptr %39, align 8, !tbaa !25
  %.not102 = icmp eq ptr %40, %2
  br i1 %.not102, label %41, label %51

41:                                               ; preds = %38
  store i32 4, ptr %29, align 8, !tbaa !19
  %42 = getelementptr inbounds i8, ptr %0, i64 2424
  %43 = load ptr, ptr %42, align 8, !tbaa !22
  %44 = load i32, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %1, i64 108
  %46 = load i32, ptr %45, align 4, !tbaa !23
  %47 = getelementptr inbounds i8, ptr %2, i64 108
  %48 = load i32, ptr %47, align 4, !tbaa !23
  %49 = getelementptr inbounds i8, ptr %0, i64 2620
  %50 = load i32, ptr %49, align 4, !tbaa !26
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %43, i32 noundef 8068, ptr noundef nonnull @.str.136, i32 noundef %44, i32 noundef %46, i32 noundef %48, i32 noundef %50) #2
  %.pre107 = load i32, ptr %29, align 8, !tbaa !19
  br label %51

51:                                               ; preds = %41, %38
  %52 = phi i32 [ %.pre107, %41 ], [ %.pre108, %38 ]
  %.088 = phi i32 [ %.pre108, %41 ], [ 0, %38 ]
  %53 = icmp sgt i32 %52, 3
  br i1 %53, label %54, label %.thread

54:                                               ; preds = %51
  %55 = getelementptr inbounds i8, ptr %0, i64 2424
  %56 = load ptr, ptr %55, align 8, !tbaa !22
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %56, i32 noundef 8069, ptr noundef nonnull @.str.137) #2
  %57 = getelementptr inbounds i8, ptr %1, i64 32
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %.not94103 = icmp eq ptr %58, null
  br i1 %.not94103, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %54, %63
  %.0104 = phi ptr [ %65, %63 ], [ %58, %54 ]
  %59 = load ptr, ptr %55, align 8, !tbaa !22
  %60 = getelementptr inbounds i8, ptr %.0104, i64 108
  %61 = load i32, ptr %60, align 4, !tbaa !23
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %59, i32 noundef 8070, ptr noundef nonnull @.str.138, i32 noundef %61) #2
  %62 = icmp eq ptr %.0104, %1
  br i1 %62, label %._crit_edge, label %63

63:                                               ; preds = %.lr.ph
  %64 = getelementptr inbounds i8, ptr %.0104, i64 32
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %.not94 = icmp eq ptr %65, null
  br i1 %.not94, label %._crit_edge, label %.lr.ph, !llvm.loop !27

._crit_edge:                                      ; preds = %.lr.ph, %63, %54
  %66 = load ptr, ptr %55, align 8, !tbaa !22
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %66, i32 noundef 8071, ptr noundef nonnull @.str.67) #2
  %.pr = load i32, ptr %29, align 8, !tbaa !19
  %67 = icmp sgt i32 %.pr, 3
  br i1 %67, label %68, label %.thread

68:                                               ; preds = %._crit_edge
  tail call void @qh_errprint(ptr noundef nonnull %0, ptr noundef nonnull @.str.139, ptr noundef %1, ptr noundef %2, ptr noundef null, ptr noundef null) #2
  br label %.thread

.thread:                                          ; preds = %51, %68, %._crit_edge
  %69 = getelementptr inbounds i8, ptr %2, i64 112
  %70 = load i32, ptr %69, align 8
  %71 = and i32 %70, 512
  %.not95 = icmp eq i32 %71, 0
  br i1 %.not95, label %81, label %72

72:                                               ; preds = %.thread
  %73 = getelementptr inbounds i8, ptr %0, i64 568
  %74 = load i32, ptr %73, align 8, !tbaa !29
  %.not96 = icmp eq i32 %74, 0
  br i1 %.not96, label %75, label %78

75:                                               ; preds = %72
  %76 = getelementptr inbounds i8, ptr %0, i64 2424
  %77 = load ptr, ptr %76, align 8, !tbaa !22
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %77, i32 noundef 6224, ptr noundef nonnull @.str.140) #2
  tail call void @qh_errexit(ptr noundef nonnull %0, i32 noundef 5, ptr noundef nonnull %2, ptr noundef null) #2
  %.pre109 = load i32, ptr %69, align 8
  br label %78

78:                                               ; preds = %75, %72
  %79 = phi i32 [ %.pre109, %75 ], [ %70, %72 ]
  %80 = and i32 %79, -268435969
  store i32 %80, ptr %69, align 8
  br label %81

81:                                               ; preds = %78, %.thread
  %82 = getelementptr inbounds i8, ptr %0, i64 60
  %83 = load i32, ptr %82, align 4, !tbaa !30
  %.not97 = icmp eq i32 %83, 0
  br i1 %.not97, label %85, label %84

84:                                               ; preds = %81
  tail call void @qh_checkdelridge(ptr noundef nonnull %0)
  br label %85

85:                                               ; preds = %84, %81
  %86 = getelementptr inbounds i8, ptr %0, i64 1720
  %87 = load i32, ptr %86, align 8, !tbaa !31
  %.not98 = icmp eq i32 %87, 0
  br i1 %.not98, label %88, label %89

88:                                               ; preds = %85
  tail call void @qh_vertexneighbors(ptr noundef nonnull %0) #2
  br label %89

89:                                               ; preds = %88, %85
  %90 = getelementptr inbounds i8, ptr %1, i64 64
  %91 = load ptr, ptr %90, align 8, !tbaa !32
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  tail call void @qh_makeridges(ptr noundef nonnull %0, ptr noundef nonnull %2)
  tail call void @qh_mergecycle_neighbors(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %2)
  tail call void @qh_mergecycle_ridges(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %2)
  tail call void @qh_mergecycle_vneighbors(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %2)
  %94 = getelementptr inbounds i8, ptr %2, i64 64
  %95 = load ptr, ptr %94, align 8, !tbaa !32
  %96 = getelementptr inbounds i8, ptr %95, i64 8
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %.not99 = icmp eq ptr %97, %93
  br i1 %.not99, label %99, label %98

98:                                               ; preds = %89
  tail call void @qh_setaddnth(ptr noundef nonnull %0, ptr noundef nonnull %94, i32 noundef 0, ptr noundef %93) #2
  br label %99

99:                                               ; preds = %98, %89
  %100 = load i32, ptr %69, align 8
  %101 = and i32 %100, 1024
  %.not100 = icmp eq i32 %101, 0
  br i1 %.not100, label %102, label %104

102:                                              ; preds = %99
  %103 = load ptr, ptr %94, align 8, !tbaa !32
  tail call void @qh_newvertices(ptr noundef nonnull %0, ptr noundef %103)
  br label %104

104:                                              ; preds = %102, %99
  tail call void @qh_mergecycle_facets(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2)
  tail call void @qh_tracemerge(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef 13)
  br i1 %.not102, label %105, label %108

105:                                              ; preds = %104
  %106 = getelementptr inbounds i8, ptr %0, i64 2424
  %107 = load ptr, ptr %106, align 8, !tbaa !22
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %107, i32 noundef 8072, ptr noundef nonnull @.str.141) #2
  store i32 %.088, ptr %29, align 8, !tbaa !19
  br label %108

108:                                              ; preds = %105, %104
  ret void
}

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_tracemerge(ptr noundef, ptr noundef, ptr noundef, i32 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, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !10, i64 480}
!9 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !11, 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, !11, i64 64, !11, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !12, i64 104, !10, i64 112, !10, i64 116, !12, i64 120, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !11, i64 160, !11, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !11, i64 192, !11, i64 200, !10, i64 208, !10, i64 212, !11, 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, !6, 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, !11, i64 448, !11, i64 456, !11, 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, !11, 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, !11, i64 592, !10, i64 600, !12, i64 608, !12, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !12, i64 648, !10, i64 656, !12, i64 664, !10, i64 672, !6, i64 676, !10, i64 932, !6, i64 936, !6, i64 1192, !10, i64 1704, !10, i64 1708, !10, i64 1712, !10, i64 1716, !10, i64 1720, !10, i64 1724, !12, i64 1728, !12, i64 1736, !12, i64 1744, !12, i64 1752, !11, i64 1760, !11, i64 1768, !11, i64 1776, !11, i64 1784, !11, i64 1792, !11, i64 1800, !11, i64 1808, !11, i64 1816, !11, i64 1824, !11, i64 1832, !11, i64 1840, !11, i64 1848, !11, i64 1856, !11, i64 1864, !12, i64 1872, !11, i64 1880, !11, i64 1888, !11, i64 1896, !11, i64 1904, !10, i64 1912, !6, i64 1916, !6, i64 1928, !6, i64 2128, !6, i64 2168, !6, i64 2368, !12, i64 2408, !12, i64 2416, !12, i64 2424, !12, i64 2432, !10, i64 2440, !10, i64 2444, !10, i64 2448, !12, i64 2456, !12, i64 2464, !12, i64 2472, !12, i64 2480, !12, i64 2488, !10, i64 2496, !10, i64 2500, !12, i64 2504, !10, i64 2512, !12, i64 2520, !10, i64 2528, !12, i64 2536, !12, i64 2544, !12, i64 2552, !12, 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, !13, i64 2600, !10, i64 2608, !10, i64 2612, !10, i64 2616, !10, i64 2620, !10, i64 2624, !12, i64 2632, !12, i64 2640, !10, i64 2648, !10, i64 2652, !10, i64 2656, !11, i64 2664, !10, i64 2672, !11, i64 2680, !11, i64 2688, !11, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !11, i64 2728, !11, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !11, i64 2768, !11, i64 2776, !10, i64 2784, !10, i64 2788, !10, i64 2792, !10, i64 2796, !12, i64 2800, !12, i64 2808, !12, i64 2816, !12, i64 2824, !12, i64 2832, !12, i64 2840, !12, i64 2848, !12, i64 2856, !12, i64 2864, !10, i64 2872, !12, i64 2880, !12, i64 2888, !10, i64 2896, !10, i64 2900, !10, i64 2904, !12, i64 2912, !11, i64 2920, !11, i64 2928, !11, i64 2936, !11, i64 2944, !10, i64 2952, !10, i64 2956, !10, i64 2960, !10, i64 2964, !10, i64 2968, !10, i64 2972, !12, i64 2976, !10, i64 2984, !10, i64 2988, !6, i64 2992, !6, i64 3192, !10, i64 3232, !11, i64 3240, !12, i64 3248, !12, i64 3256, !12, i64 3264, !14, i64 3272, !15, i64 3424}
!10 = !{!"int", !6, i64 0}
!11 = !{!"double", !6, i64 0}
!12 = !{!"any pointer", !6, i64 0}
!13 = !{!"long", !6, i64 0}
!14 = !{!"qhmemT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !10, i64 64, !12, i64 72, !12, 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}
!15 = !{!"qhstatT", !6, i64 0, !6, i64 1992, !6, i64 2256, !6, i64 4248, !6, i64 4746, !6, i64 4995, !6, i64 5248, !10, i64 5320, !10, i64 5324, !10, i64 5328, !10, i64 5332, !11, i64 5336}
!16 = !{!9, !10, i64 2744}
!17 = !{!9, !10, i64 2972}
!18 = !{!9, !10, i64 560}
!19 = !{!9, !10, i64 136}
!20 = !{!9, !10, i64 536}
!21 = !{!9, !10, i64 3360}
!22 = !{!9, !12, i64 2424}
!23 = !{!24, !10, i64 108}
!24 = !{!"facetT", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !6, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, 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}
!25 = !{!9, !12, i64 2504}
!26 = !{!9, !10, i64 2620}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!9, !10, i64 568}
!30 = !{!9, !10, i64 60}
!31 = !{!9, !10, i64 1720}
!32 = !{!24, !12, i64 64}


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