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

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

%struct.qhT = type { i32, i32, i32, 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, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%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.mergeT = type { double, double, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }

@qh_qh = external global %struct.qhT, align 8
@.str.18 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [133 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [151 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [122 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [114 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [117 x i8], align 1

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

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

declare void @qh_printlists() #1

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

24:                                               ; preds = %2
  %25 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %26 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), align 8, !tbaa !15
  %27 = call i32 @qh_setsize(ptr noundef %26)
  %28 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 222), align 8, !tbaa !16
  %29 = call i32 @qh_setsize(ptr noundef %28)
  %30 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !17
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %36

32:                                               ; preds = %24
  %33 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !17
  %34 = getelementptr inbounds %struct.facetT, ptr %33, i32 0, i32 14
  %35 = load i32, ptr %34, align 4, !tbaa !18
  br label %37

36:                                               ; preds = %24
  br label %37

37:                                               ; preds = %36, %32
  %38 = phi i32 [ %35, %32 ], [ -1, %36 ]
  %39 = load i32, ptr %3, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %25, i32 noundef 2010, ptr noundef @.str.18, i32 noundef %27, i32 noundef %29, i32 noundef %38, i32 noundef %39)
  br label %40

40:                                               ; preds = %37, %2
  br label %41

41:                                               ; preds = %342, %332, %40
  br label %42

42:                                               ; preds = %41
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %293, %42
  %44 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), align 8, !tbaa !15
  %45 = call i32 @qh_setsize(ptr noundef %44)
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %51, label %47

47:                                               ; preds = %43
  %48 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 222), align 8, !tbaa !16
  %49 = call i32 @qh_setsize(ptr noundef %48)
  %50 = icmp sgt i32 %49, 0
  br label %51

51:                                               ; preds = %47, %43
  %52 = phi i1 [ true, %43 ], [ %50, %47 ]
  br i1 %52, label %53, label %295

53:                                               ; preds = %51
  %54 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 222), align 8, !tbaa !16
  %55 = call i32 @qh_setsize(ptr noundef %54)
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %57, label %61

57:                                               ; preds = %53
  %58 = call i32 @qh_merge_degenredundant()
  %59 = load i32, ptr %19, align 4, !tbaa !5
  %60 = add nsw i32 %59, %58
  store i32 %60, ptr %19, align 4, !tbaa !5
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %57, %53
  br label %62

62:                                               ; preds = %281, %186, %124, %61
  %63 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), align 8, !tbaa !15
  %64 = call ptr @qh_setdellast(ptr noundef %63)
  store ptr %64, ptr %8, align 8, !tbaa !20
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %282

66:                                               ; preds = %62
  %67 = load ptr, ptr %8, align 8, !tbaa !20
  %68 = getelementptr inbounds %struct.mergeT, ptr %67, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !21
  store ptr %69, ptr %5, align 8, !tbaa !20
  %70 = load ptr, ptr %8, align 8, !tbaa !20
  %71 = getelementptr inbounds %struct.mergeT, ptr %70, i32 0, i32 3
  %72 = load ptr, ptr %71, align 8, !tbaa !23
  store ptr %72, ptr %6, align 8, !tbaa !20
  %73 = load ptr, ptr %8, align 8, !tbaa !20
  %74 = getelementptr inbounds %struct.mergeT, ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !24
  store ptr %75, ptr %12, align 8, !tbaa !20
  %76 = load ptr, ptr %8, align 8, !tbaa !20
  %77 = getelementptr inbounds %struct.mergeT, ptr %76, i32 0, i32 8
  %78 = load i32, ptr %77, align 8, !tbaa !25
  store i32 %78, ptr %15, align 4, !tbaa !5
  %79 = load ptr, ptr %8, align 8, !tbaa !20
  %80 = getelementptr inbounds %struct.mergeT, ptr %79, i32 0, i32 0
  %81 = load double, ptr %80, align 8, !tbaa !26
  store double %81, ptr %13, align 8, !tbaa !27
  %82 = load ptr, ptr %8, align 8, !tbaa !20
  %83 = getelementptr inbounds %struct.mergeT, ptr %82, i32 0, i32 1
  %84 = load double, ptr %83, align 8, !tbaa !28
  store double %84, ptr %14, align 8, !tbaa !27
  %85 = load ptr, ptr %11, align 8, !tbaa !20
  %86 = load ptr, ptr %8, align 8, !tbaa !20
  call void @qh_memfree(ptr noundef %86, i32 noundef 72)
  %87 = load ptr, ptr %5, align 8, !tbaa !20
  %88 = getelementptr inbounds %struct.facetT, ptr %87, i32 0, i32 15
  %89 = load i32, ptr %88, align 8
  %90 = lshr i32 %89, 11
  %91 = and i32 %90, 1
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %100, label %93

93:                                               ; preds = %66
  %94 = load ptr, ptr %6, align 8, !tbaa !20
  %95 = getelementptr inbounds %struct.facetT, ptr %94, i32 0, i32 15
  %96 = load i32, ptr %95, align 8
  %97 = lshr i32 %96, 11
  %98 = and i32 %97, 1
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %125

100:                                              ; preds = %93, %66
  %101 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !9
  %102 = icmp sge i32 %101, 3
  br i1 %102, label %103, label %124

103:                                              ; preds = %100
  %104 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %105 = load ptr, ptr %5, align 8, !tbaa !20
  %106 = getelementptr inbounds %struct.facetT, ptr %105, i32 0, i32 14
  %107 = load i32, ptr %106, align 4, !tbaa !18
  %108 = load ptr, ptr %5, align 8, !tbaa !20
  %109 = getelementptr inbounds %struct.facetT, ptr %108, i32 0, i32 15
  %110 = load i32, ptr %109, align 8
  %111 = lshr i32 %110, 11
  %112 = and i32 %111, 1
  %113 = load ptr, ptr %6, align 8, !tbaa !20
  %114 = getelementptr inbounds %struct.facetT, ptr %113, i32 0, i32 14
  %115 = load i32, ptr %114, align 4, !tbaa !18
  %116 = load ptr, ptr %6, align 8, !tbaa !20
  %117 = getelementptr inbounds %struct.facetT, ptr %116, i32 0, i32 15
  %118 = load i32, ptr %117, align 8
  %119 = lshr i32 %118, 11
  %120 = and i32 %119, 1
  %121 = load i32, ptr %15, align 4, !tbaa !5
  %122 = load double, ptr %14, align 8, !tbaa !27
  %123 = load double, ptr %13, align 8, !tbaa !27
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %104, i32 noundef 3045, ptr noundef @.str.19, i32 noundef %107, i32 noundef %112, i32 noundef %115, i32 noundef %120, i32 noundef %121, double noundef %122, double noundef %123)
  br label %124

124:                                              ; preds = %103, %100
  br label %62, !llvm.loop !29

125:                                              ; preds = %93
  %126 = load i32, ptr %15, align 4, !tbaa !5
  %127 = icmp eq i32 %126, 1
  br i1 %127, label %131, label %128

128:                                              ; preds = %125
  %129 = load i32, ptr %15, align 4, !tbaa !5
  %130 = icmp eq i32 %129, 2
  br i1 %130, label %131, label %189

131:                                              ; preds = %128, %125
  %132 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 38), align 8, !tbaa !31
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %188

134:                                              ; preds = %131
  %135 = load ptr, ptr %5, align 8, !tbaa !20
  %136 = getelementptr inbounds %struct.facetT, ptr %135, i32 0, i32 15
  %137 = load i32, ptr %136, align 8
  %138 = lshr i32 %137, 27
  %139 = and i32 %138, 1
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %148, label %141

141:                                              ; preds = %134
  %142 = load ptr, ptr %5, align 8, !tbaa !20
  %143 = getelementptr inbounds %struct.facetT, ptr %142, i32 0, i32 15
  %144 = load i32, ptr %143, align 8
  %145 = lshr i32 %144, 10
  %146 = and i32 %145, 1
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %162, label %148

148:                                              ; preds = %141, %134
  %149 = load ptr, ptr %6, align 8, !tbaa !20
  %150 = getelementptr inbounds %struct.facetT, ptr %149, i32 0, i32 15
  %151 = load i32, ptr %150, align 8
  %152 = lshr i32 %151, 27
  %153 = and i32 %152, 1
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %187, label %155

155:                                              ; preds = %148
  %156 = load ptr, ptr %6, align 8, !tbaa !20
  %157 = getelementptr inbounds %struct.facetT, ptr %156, i32 0, i32 15
  %158 = load i32, ptr %157, align 8
  %159 = lshr i32 %158, 10
  %160 = and i32 %159, 1
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %187

162:                                              ; preds = %155, %141
  %163 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !9
  %164 = icmp sge i32 %163, 3
  br i1 %164, label %165, label %186

165:                                              ; preds = %162
  %166 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %167 = load ptr, ptr %5, align 8, !tbaa !20
  %168 = getelementptr inbounds %struct.facetT, ptr %167, i32 0, i32 14
  %169 = load i32, ptr %168, align 4, !tbaa !18
  %170 = load ptr, ptr %5, align 8, !tbaa !20
  %171 = getelementptr inbounds %struct.facetT, ptr %170, i32 0, i32 15
  %172 = load i32, ptr %171, align 8
  %173 = lshr i32 %172, 11
  %174 = and i32 %173, 1
  %175 = load ptr, ptr %6, align 8, !tbaa !20
  %176 = getelementptr inbounds %struct.facetT, ptr %175, i32 0, i32 14
  %177 = load i32, ptr %176, align 4, !tbaa !18
  %178 = load ptr, ptr %6, align 8, !tbaa !20
  %179 = getelementptr inbounds %struct.facetT, ptr %178, i32 0, i32 15
  %180 = load i32, ptr %179, align 8
  %181 = lshr i32 %180, 11
  %182 = and i32 %181, 1
  %183 = load i32, ptr %15, align 4, !tbaa !5
  %184 = load double, ptr %14, align 8, !tbaa !27
  %185 = load double, ptr %13, align 8, !tbaa !27
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %166, i32 noundef 3064, ptr noundef @.str.20, i32 noundef %169, i32 noundef %174, i32 noundef %177, i32 noundef %182, i32 noundef %183, double noundef %184, double noundef %185)
  br label %186

186:                                              ; preds = %165, %162
  br label %62, !llvm.loop !29

187:                                              ; preds = %155, %148
  br label %188

188:                                              ; preds = %187, %131
  br label %189

189:                                              ; preds = %188, %128
  br label %190

190:                                              ; preds = %189
  %191 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !9
  %192 = icmp sge i32 %191, 3
  br i1 %192, label %193, label %204

193:                                              ; preds = %190
  %194 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %195 = load ptr, ptr %5, align 8, !tbaa !20
  %196 = getelementptr inbounds %struct.facetT, ptr %195, i32 0, i32 14
  %197 = load i32, ptr %196, align 4, !tbaa !18
  %198 = load ptr, ptr %6, align 8, !tbaa !20
  %199 = getelementptr inbounds %struct.facetT, ptr %198, i32 0, i32 14
  %200 = load i32, ptr %199, align 4, !tbaa !18
  %201 = load i32, ptr %15, align 4, !tbaa !5
  %202 = load double, ptr %14, align 8, !tbaa !27
  %203 = load double, ptr %13, align 8, !tbaa !27
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %194, i32 noundef 3047, ptr noundef @.str.21, i32 noundef %197, i32 noundef %200, i32 noundef %201, double noundef %202, double noundef %203)
  br label %204

204:                                              ; preds = %193, %190
  %205 = load i32, ptr %15, align 4, !tbaa !5
  %206 = icmp eq i32 %205, 5
  br i1 %206, label %207, label %210

207:                                              ; preds = %204
  %208 = load ptr, ptr %5, align 8, !tbaa !20
  %209 = load ptr, ptr %6, align 8, !tbaa !20
  call void @qh_merge_twisted(ptr noundef %208, ptr noundef %209)
  br label %214

210:                                              ; preds = %204
  %211 = load ptr, ptr %5, align 8, !tbaa !20
  %212 = load ptr, ptr %6, align 8, !tbaa !20
  %213 = load i32, ptr %15, align 4, !tbaa !5
  call void @qh_merge_nonconvex(ptr noundef %211, ptr noundef %212, i32 noundef %213)
  br label %214

214:                                              ; preds = %210, %207
  %215 = load i32, ptr %20, align 4, !tbaa !5
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %20, align 4, !tbaa !5
  %217 = call i32 @qh_merge_degenredundant()
  %218 = load i32, ptr %19, align 4, !tbaa !5
  %219 = add nsw i32 %218, %217
  store i32 %219, ptr %19, align 4, !tbaa !5
  store i32 1, ptr %9, align 4, !tbaa !5
  %220 = load i32, ptr %15, align 4, !tbaa !5
  %221 = icmp eq i32 %220, 3
  br i1 %221, label %222, label %225

222:                                              ; preds = %214
  %223 = load i32, ptr %17, align 4, !tbaa !5
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %17, align 4, !tbaa !5
  br label %281

225:                                              ; preds = %214
  %226 = load i32, ptr %15, align 4, !tbaa !5
  %227 = icmp eq i32 %226, 4
  br i1 %227, label %228, label %231

228:                                              ; preds = %225
  %229 = load i32, ptr %18, align 4, !tbaa !5
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %18, align 4, !tbaa !5
  br label %280

231:                                              ; preds = %225
  %232 = load i32, ptr %15, align 4, !tbaa !5
  %233 = icmp eq i32 %232, 5
  br i1 %233, label %234, label %237

234:                                              ; preds = %231
  %235 = load i32, ptr %21, align 4, !tbaa !5
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %21, align 4, !tbaa !5
  br label %279

237:                                              ; preds = %231
  %238 = load i32, ptr %15, align 4, !tbaa !5
  %239 = icmp eq i32 %238, 1
  br i1 %239, label %243, label %240

240:                                              ; preds = %237
  %241 = load i32, ptr %15, align 4, !tbaa !5
  %242 = icmp eq i32 %241, 2
  br i1 %242, label %243, label %246

243:                                              ; preds = %240, %237
  %244 = load i32, ptr %16, align 4, !tbaa !5
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %16, align 4, !tbaa !5
  br label %278

246:                                              ; preds = %240
  %247 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %248 = load ptr, ptr %5, align 8, !tbaa !20
  %249 = icmp ne ptr %248, null
  br i1 %249, label %250, label %254

250:                                              ; preds = %246
  %251 = load ptr, ptr %5, align 8, !tbaa !20
  %252 = getelementptr inbounds %struct.facetT, ptr %251, i32 0, i32 14
  %253 = load i32, ptr %252, align 4, !tbaa !18
  br label %255

254:                                              ; preds = %246
  br label %255

255:                                              ; preds = %254, %250
  %256 = phi i32 [ %253, %250 ], [ -1, %254 ]
  %257 = load ptr, ptr %6, align 8, !tbaa !20
  %258 = icmp ne ptr %257, null
  br i1 %258, label %259, label %263

259:                                              ; preds = %255
  %260 = load ptr, ptr %6, align 8, !tbaa !20
  %261 = getelementptr inbounds %struct.facetT, ptr %260, i32 0, i32 14
  %262 = load i32, ptr %261, align 4, !tbaa !18
  br label %264

263:                                              ; preds = %255
  br label %264

264:                                              ; preds = %263, %259
  %265 = phi i32 [ %262, %259 ], [ -1, %263 ]
  %266 = load ptr, ptr %12, align 8, !tbaa !20
  %267 = icmp ne ptr %266, null
  br i1 %267, label %268, label %272

268:                                              ; preds = %264
  %269 = load ptr, ptr %12, align 8, !tbaa !20
  %270 = getelementptr inbounds %struct.vertexT, ptr %269, i32 0, i32 4
  %271 = load i32, ptr %270, align 8, !tbaa !32
  br label %273

272:                                              ; preds = %264
  br label %273

273:                                              ; preds = %272, %268
  %274 = phi i32 [ %271, %268 ], [ -1, %272 ]
  %275 = load i32, ptr %15, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %247, i32 noundef 6394, ptr noundef @.str.22, i32 noundef %256, i32 noundef %265, i32 noundef %274, i32 noundef %275)
  %276 = load ptr, ptr %5, align 8, !tbaa !20
  %277 = load ptr, ptr %6, align 8, !tbaa !20
  call void @qh_errexit2(i32 noundef 5, ptr noundef %276, ptr noundef %277)
  br label %278

278:                                              ; preds = %273, %243
  br label %279

279:                                              ; preds = %278, %234
  br label %280

280:                                              ; preds = %279, %228
  br label %281

281:                                              ; preds = %280, %222
  br label %62, !llvm.loop !29

282:                                              ; preds = %62
  %283 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 209), align 8, !tbaa !34
  %284 = icmp ne i32 %283, 0
  br i1 %284, label %285, label %293

285:                                              ; preds = %282
  %286 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !35
  %287 = icmp sle i32 %286, 5
  br i1 %287, label %288, label %293

288:                                              ; preds = %285
  %289 = load i32, ptr %20, align 4, !tbaa !5
  %290 = icmp sgt i32 %289, 2
  br i1 %290, label %291, label %293

291:                                              ; preds = %288
  store i32 0, ptr %20, align 4, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !5
  %292 = call i32 @qh_reducevertices()
  br label %293

293:                                              ; preds = %291, %288, %285, %282
  %294 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !17
  call void @qh_getmergeset(ptr noundef %294)
  br label %43, !llvm.loop !36

295:                                              ; preds = %51
  %296 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 125), align 8, !tbaa !37
  %297 = icmp ne i32 %296, 0
  br i1 %297, label %298, label %336

298:                                              ; preds = %295
  store i32 0, ptr %10, align 4, !tbaa !5
  %299 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 209), align 8, !tbaa !34
  %300 = icmp ne i32 %299, 0
  br i1 %300, label %301, label %305

301:                                              ; preds = %298
  %302 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !35
  %303 = icmp sge i32 %302, 4
  br i1 %303, label %304, label %305

304:                                              ; preds = %301
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %326

305:                                              ; preds = %301, %298
  %306 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 209), align 8, !tbaa !34
  %307 = icmp ne i32 %306, 0
  br i1 %307, label %311, label %308

308:                                              ; preds = %305
  %309 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 37), align 4, !tbaa !38
  %310 = icmp ne i32 %309, 0
  br i1 %310, label %325, label %311

311:                                              ; preds = %308, %305
  %312 = load i32, ptr %9, align 4, !tbaa !5
  %313 = icmp ne i32 %312, 0
  br i1 %313, label %317, label %314

314:                                              ; preds = %311
  %315 = load i32, ptr %3, align 4, !tbaa !5
  %316 = icmp ne i32 %315, 0
  br i1 %316, label %317, label %324

317:                                              ; preds = %314, %311
  %318 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !35
  %319 = icmp sgt i32 %318, 2
  br i1 %319, label %320, label %324

320:                                              ; preds = %317
  %321 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !35
  %322 = icmp sle i32 %321, 5
  br i1 %322, label %323, label %324

323:                                              ; preds = %320
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %324

324:                                              ; preds = %323, %320, %317, %314
  br label %325

325:                                              ; preds = %324, %308
  br label %326

326:                                              ; preds = %325, %304
  %327 = load i32, ptr %10, align 4, !tbaa !5
  %328 = icmp ne i32 %327, 0
  br i1 %328, label %329, label %335

329:                                              ; preds = %326
  store i32 0, ptr %3, align 4, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !5
  %330 = call i32 @qh_reducevertices()
  %331 = icmp ne i32 %330, 0
  br i1 %331, label %332, label %334

332:                                              ; preds = %329
  %333 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !17
  call void @qh_getmergeset(ptr noundef %333)
  br label %41

334:                                              ; preds = %329
  br label %335

335:                                              ; preds = %334, %326
  br label %336

336:                                              ; preds = %335, %295
  %337 = load i32, ptr %4, align 4, !tbaa !5
  %338 = icmp ne i32 %337, 0
  br i1 %338, label %339, label %343

339:                                              ; preds = %336
  %340 = call i32 @qh_test_vneighbors()
  %341 = icmp ne i32 %340, 0
  br i1 %341, label %342, label %343

342:                                              ; preds = %339
  br label %41

343:                                              ; preds = %339, %336
  br label %344

344:                                              ; preds = %343
  %345 = load i32, ptr %9, align 4, !tbaa !5
  %346 = icmp ne i32 %345, 0
  br i1 %346, label %350, label %347

347:                                              ; preds = %344
  %348 = load i32, ptr %3, align 4, !tbaa !5
  %349 = icmp ne i32 %348, 0
  br i1 %349, label %350, label %380

350:                                              ; preds = %347, %344
  %351 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !9
  %352 = icmp sge i32 %351, 3
  br i1 %352, label %353, label %357

353:                                              ; preds = %350
  %354 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %355 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 125), align 8, !tbaa !37
  %356 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !35
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %354, i32 noundef 3033, ptr noundef @.str.23, i32 noundef %355, i32 noundef %356, i32 noundef 5)
  br label %357

357:                                              ; preds = %353, %350
  %358 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !17
  store ptr %358, ptr %7, align 8, !tbaa !20
  br label %359

359:                                              ; preds = %375, %357
  %360 = load ptr, ptr %7, align 8, !tbaa !20
  %361 = icmp ne ptr %360, null
  br i1 %361, label %362, label %367

362:                                              ; preds = %359
  %363 = load ptr, ptr %7, align 8, !tbaa !20
  %364 = getelementptr inbounds %struct.facetT, ptr %363, i32 0, i32 7
  %365 = load ptr, ptr %364, align 8, !tbaa !39
  %366 = icmp ne ptr %365, null
  br label %367

367:                                              ; preds = %362, %359
  %368 = phi i1 [ false, %359 ], [ %366, %362 ]
  br i1 %368, label %369, label %379

369:                                              ; preds = %367
  %370 = load ptr, ptr %7, align 8, !tbaa !20
  %371 = getelementptr inbounds %struct.facetT, ptr %370, i32 0, i32 15
  %372 = load i32, ptr %371, align 8
  %373 = and i32 %372, -536870913
  %374 = or i32 %373, 0
  store i32 %374, ptr %371, align 8
  br label %375

375:                                              ; preds = %369
  %376 = load ptr, ptr %7, align 8, !tbaa !20
  %377 = getelementptr inbounds %struct.facetT, ptr %376, i32 0, i32 7
  %378 = load ptr, ptr %377, align 8, !tbaa !39
  store ptr %378, ptr %7, align 8, !tbaa !20
  br label %359, !llvm.loop !40

379:                                              ; preds = %367
  br label %380

380:                                              ; preds = %379, %347
  %381 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 14), align 4, !tbaa !41
  %382 = icmp ne i32 %381, 0
  br i1 %382, label %383, label %390

383:                                              ; preds = %380
  %384 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 37), align 4, !tbaa !38
  %385 = icmp ne i32 %384, 0
  br i1 %385, label %390, label %386

386:                                              ; preds = %383
  %387 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !42
  store i32 %387, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 235), align 8, !tbaa !43
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !42
  %388 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !17
  call void @qh_checkconvex(ptr noundef %388, i32 noundef 0)
  %389 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 235), align 8, !tbaa !43
  store i32 %389, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !42
  br label %390

390:                                              ; preds = %386, %383, %380
  %391 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !9
  %392 = icmp sge i32 %391, 1
  br i1 %392, label %393, label %400

393:                                              ; preds = %390
  %394 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %395 = load i32, ptr %16, align 4, !tbaa !5
  %396 = load i32, ptr %17, align 4, !tbaa !5
  %397 = load i32, ptr %18, align 4, !tbaa !5
  %398 = load i32, ptr %21, align 4, !tbaa !5
  %399 = load i32, ptr %19, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %394, i32 noundef 1009, ptr noundef @.str.24, i32 noundef %395, i32 noundef %396, i32 noundef %397, i32 noundef %398, i32 noundef %399)
  br label %400

400:                                              ; preds = %393, %390
  %401 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !9
  %402 = icmp sge i32 %401, 4
  br i1 %402, label %403, label %407

403:                                              ; preds = %400
  %404 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 178), align 8, !tbaa !44
  %405 = icmp slt i32 %404, 500
  br i1 %405, label %406, label %407

406:                                              ; preds = %403
  call void @qh_printlists()
  br label %407

407:                                              ; preds = %406, %403, %400
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
}

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_reducevertices() #2

declare i32 @qh_setsize(ptr noundef) #1

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

declare ptr @qh_setdellast(ptr noundef) #1

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_test_vneighbors() #2

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

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

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

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


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

%struct.qhT = type { i32, i32, i32, 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, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@.str.18 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [133 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [151 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [122 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [114 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [117 x i8], align 1

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

declare void @qh_printlists() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @qh_all_merges(i32 noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %4 = icmp sgt i32 %3, 1
  br i1 %4, label %5, label %17

5:                                                ; preds = %2
  %6 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %7 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2800), align 8, !tbaa !14
  %8 = tail call i32 @qh_setsize(ptr noundef %7) #2
  %9 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2808), align 8, !tbaa !15
  %10 = tail call i32 @qh_setsize(ptr noundef %9) #2
  %11 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !16
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %15, label %12

12:                                               ; preds = %5
  %13 = getelementptr inbounds i8, ptr %11, i64 108
  %14 = load i32, ptr %13, align 4, !tbaa !17
  br label %15

15:                                               ; preds = %5, %12
  %16 = phi i32 [ %14, %12 ], [ -1, %5 ]
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %6, i32 noundef 2010, ptr noundef nonnull @.str.18, i32 noundef %8, i32 noundef %10, i32 noundef %16, i32 noundef %0) #2
  br label %17

17:                                               ; preds = %15, %2
  %.not144 = icmp eq i32 %1, 0
  br label %.backedge170.outer

.backedge170.outer:                               ; preds = %17, %161
  %.0130.ph = phi i32 [ 0, %17 ], [ %.3133, %161 ]
  %.1126.ph = phi i32 [ %0, %17 ], [ %.2127, %161 ]
  %.1122.ph = phi i32 [ 0, %17 ], [ %.2123.ph.lcssa, %161 ]
  %.1118.ph = phi i32 [ 0, %17 ], [ %.2119.ph.lcssa, %161 ]
  %.1114.ph = phi i32 [ 0, %17 ], [ %.2115.ph.lcssa, %161 ]
  %.1110.ph = phi i32 [ 0, %17 ], [ %.3112.ph.lcssa, %161 ]
  %.1106.ph = phi i32 [ 0, %17 ], [ %.3108, %161 ]
  %.1.ph = phi i32 [ 0, %17 ], [ %.2.ph.lcssa, %161 ]
  %18 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2800), align 8, !tbaa !14
  %19 = tail call i32 @qh_setsize(ptr noundef %18) #2
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.critedge, label %21

21:                                               ; preds = %.backedge170.outer
  %22 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2808), align 8, !tbaa !15
  %23 = tail call i32 @qh_setsize(ptr noundef %22) #2
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.critedge, label %25

25:                                               ; preds = %21
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1720), align 8, !tbaa !19
  %.not141.peel = icmp eq i32 %26, 0
  br i1 %.not141.peel, label %.critedge161.peel, label %27

27:                                               ; preds = %25
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2744), align 8, !tbaa !20
  %29 = icmp ne i32 %28, 0
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8
  %31 = icmp sgt i32 %30, 3
  %or.cond9.peel = select i1 %29, i1 %31, i1 false
  br i1 %or.cond9.peel, label %.critedge163.peel, label %32

32:                                               ; preds = %27
  %33 = icmp eq i32 %28, 0
  %34 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 180), align 4
  %35 = icmp ne i32 %34, 0
  %or.cond11.peel = select i1 %33, i1 %35, i1 false
  br i1 %or.cond11.peel, label %.critedge161.peel, label %36

36:                                               ; preds = %32
  %37 = icmp eq i32 %.0130.ph, 0
  %38 = icmp eq i32 %.1126.ph, 0
  %or.cond13.not168.peel = select i1 %37, i1 %38, i1 false
  %39 = add i32 %30, -6
  %40 = icmp ult i32 %39, -3
  %or.cond17.not.peel = select i1 %or.cond13.not168.peel, i1 true, i1 %40
  br i1 %or.cond17.not.peel, label %.critedge161.peel, label %.critedge163.peel

.critedge163.peel:                                ; preds = %36, %27
  %41 = tail call i32 @qh_reducevertices()
  %.not143.peel = icmp eq i32 %41, 0
  br i1 %.not143.peel, label %.critedge161.peel, label %42

42:                                               ; preds = %.critedge163.peel
  %43 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !16
  tail call void @qh_getmergeset(ptr noundef %43)
  br label %.backedge170.outer.peel.newph

.critedge161.peel:                                ; preds = %.critedge163.peel, %36, %32, %25
  %.4.peel = phi i32 [ 0, %.critedge163.peel ], [ %.0130.ph, %36 ], [ %.0130.ph, %25 ], [ %.0130.ph, %32 ]
  %.3128.peel = phi i32 [ 0, %.critedge163.peel ], [ %.1126.ph, %36 ], [ %.1126.ph, %25 ], [ %.1126.ph, %32 ]
  br i1 %.not144, label %.loopexit303, label %44

44:                                               ; preds = %.critedge161.peel
  %45 = tail call i32 @qh_test_vneighbors()
  %.not145.peel = icmp eq i32 %45, 0
  br i1 %.not145.peel, label %.loopexit303, label %.backedge170.outer.peel.newph

.backedge170.outer.peel.newph:                    ; preds = %42, %44
  %.1126.be.peel = phi i32 [ 0, %42 ], [ %.3128.peel, %44 ]
  br label %.backedge170

.backedge170:                                     ; preds = %.backedge170.backedge, %.backedge170.outer.peel.newph
  %.1126 = phi i32 [ %.1126.be.peel, %.backedge170.outer.peel.newph ], [ %.1126.be, %.backedge170.backedge ]
  %46 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2800), align 8, !tbaa !14
  %47 = tail call i32 @qh_setsize(ptr noundef %46) #2
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.critedge, label %49

49:                                               ; preds = %.backedge170
  %50 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2808), align 8, !tbaa !15
  %51 = tail call i32 @qh_setsize(ptr noundef %50) #2
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %.critedge, label %163

.critedge:                                        ; preds = %.backedge170, %49, %21, %.backedge170.outer
  %.0130.lcssa = phi i32 [ %.0130.ph, %.backedge170.outer ], [ %.0130.ph, %21 ], [ 0, %49 ], [ 0, %.backedge170 ]
  %.1126.lcssa = phi i32 [ %.1126.ph, %.backedge170.outer ], [ %.1126.ph, %21 ], [ %.1126, %49 ], [ %.1126, %.backedge170 ]
  %53 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2808), align 8, !tbaa !15
  %54 = tail call i32 @qh_setsize(ptr noundef %53) #2
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %56, label %59

56:                                               ; preds = %.critedge
  %57 = tail call i32 @qh_merge_degenredundant()
  %58 = add nsw i32 %57, %.1110.ph
  br label %59

59:                                               ; preds = %56, %.critedge
  %.1131 = phi i32 [ 1, %56 ], [ %.0130.lcssa, %.critedge ]
  %.2111 = phi i32 [ %58, %56 ], [ %.1110.ph, %.critedge ]
  %60 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2800), align 8, !tbaa !14
  %61 = tail call ptr @qh_setdellast(ptr noundef %60) #2
  %.not148176190 = icmp eq ptr %61, null
  br i1 %.not148176190, label %.outer._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %59, %.outer
  %62 = phi ptr [ %153, %.outer ], [ %61, %59 ]
  %.2.ph197 = phi i32 [ %.3, %.outer ], [ %.1.ph, %59 ]
  %.2107.ph196 = phi i32 [ %150, %.outer ], [ %.1106.ph, %59 ]
  %.3112.ph195 = phi i32 [ %151, %.outer ], [ %.2111, %59 ]
  %.2115.ph194 = phi i32 [ %.3116, %.outer ], [ %.1114.ph, %59 ]
  %.2119.ph193 = phi i32 [ %.3120, %.outer ], [ %.1118.ph, %59 ]
  %.2123.ph192 = phi i32 [ %.3124, %.outer ], [ %.1122.ph, %59 ]
  %.2132.ph191 = phi i32 [ 1, %.outer ], [ %.1131, %59 ]
  br label %63

63:                                               ; preds = %.lr.ph, %.backedge
  %64 = phi ptr [ %62, %.lr.ph ], [ %99, %.backedge ]
  %65 = getelementptr inbounds i8, ptr %64, i64 16
  %66 = load ptr, ptr %65, align 8, !tbaa !21
  %67 = getelementptr inbounds i8, ptr %64, i64 24
  %68 = load ptr, ptr %67, align 8, !tbaa !23
  %69 = getelementptr inbounds i8, ptr %64, i64 32
  %70 = load ptr, ptr %69, align 8, !tbaa !24
  %71 = getelementptr inbounds i8, ptr %64, i64 64
  %72 = load i32, ptr %71, align 8, !tbaa !25
  %73 = load double, ptr %64, align 8, !tbaa !26
  %74 = getelementptr inbounds i8, ptr %64, i64 8
  %75 = load double, ptr %74, align 8, !tbaa !27
  tail call void @qh_memfree(ptr noundef nonnull %64, i32 noundef 72) #2
  %76 = getelementptr inbounds i8, ptr %66, i64 112
  %77 = load i32, ptr %76, align 8
  %78 = and i32 %77, 2048
  %.not149 = icmp eq i32 %78, 0
  br i1 %.not149, label %79, label %83

79:                                               ; preds = %63
  %80 = getelementptr inbounds i8, ptr %68, i64 112
  %81 = load i32, ptr %80, align 8
  %82 = and i32 %81, 2048
  %.not150 = icmp eq i32 %82, 0
  br i1 %.not150, label %100, label %83

83:                                               ; preds = %79, %63
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %85 = icmp sgt i32 %84, 2
  br i1 %85, label %86, label %.backedge

86:                                               ; preds = %83
  %87 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %88 = getelementptr inbounds i8, ptr %66, i64 108
  %89 = load i32, ptr %88, align 4, !tbaa !17
  %90 = lshr i32 %77, 11
  %91 = and i32 %90, 1
  %92 = getelementptr inbounds i8, ptr %68, i64 108
  %93 = load i32, ptr %92, align 4, !tbaa !17
  %94 = getelementptr inbounds i8, ptr %68, i64 112
  %95 = load i32, ptr %94, align 8
  %96 = lshr i32 %95, 11
  %97 = and i32 %96, 1
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %87, i32 noundef 3045, ptr noundef nonnull @.str.19, i32 noundef %89, i32 noundef %91, i32 noundef %93, i32 noundef %97, i32 noundef %72, double noundef %75, double noundef %73) #2
  br label %.backedge

.backedge:                                        ; preds = %107, %110, %83, %86
  %98 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2800), align 8, !tbaa !14
  %99 = tail call ptr @qh_setdellast(ptr noundef %98) #2
  %.not148 = icmp eq ptr %99, null
  br i1 %.not148, label %.outer._crit_edge, label %63, !llvm.loop !28

100:                                              ; preds = %79
  %101 = add i32 %72, -1
  %or.cond = icmp ult i32 %101, 2
  %102 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 184), align 8
  %103 = icmp ne i32 %102, 0
  %or.cond27 = select i1 %or.cond, i1 %103, i1 false
  br i1 %or.cond27, label %104, label %116

104:                                              ; preds = %100
  %105 = and i32 %77, 134218752
  %or.cond158.not = icmp eq i32 %105, 1024
  %106 = and i32 %81, 134218752
  %or.cond159.not = icmp eq i32 %106, 1024
  %or.cond169 = or i1 %or.cond158.not, %or.cond159.not
  br i1 %or.cond169, label %107, label %116

107:                                              ; preds = %104
  %108 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %109 = icmp sgt i32 %108, 2
  br i1 %109, label %110, label %.backedge

110:                                              ; preds = %107
  %111 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %112 = getelementptr inbounds i8, ptr %66, i64 108
  %113 = load i32, ptr %112, align 4, !tbaa !17
  %114 = getelementptr inbounds i8, ptr %68, i64 108
  %115 = load i32, ptr %114, align 4, !tbaa !17
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %111, i32 noundef 3064, ptr noundef nonnull @.str.20, i32 noundef %113, i32 noundef 0, i32 noundef %115, i32 noundef 0, i32 noundef %72, double noundef %75, double noundef %73) #2
  br label %.backedge

116:                                              ; preds = %104, %100
  %or.cond.lcssa = phi i1 [ true, %104 ], [ %or.cond, %100 ]
  %117 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %118 = icmp sgt i32 %117, 2
  br i1 %118, label %119, label %125

119:                                              ; preds = %116
  %120 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %121 = getelementptr inbounds i8, ptr %66, i64 108
  %122 = load i32, ptr %121, align 4, !tbaa !17
  %123 = getelementptr inbounds i8, ptr %68, i64 108
  %124 = load i32, ptr %123, align 4, !tbaa !17
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %120, i32 noundef 3047, ptr noundef nonnull @.str.21, i32 noundef %122, i32 noundef %124, i32 noundef %72, double noundef %75, double noundef %73) #2
  br label %125

125:                                              ; preds = %119, %116
  %126 = icmp eq i32 %72, 5
  br i1 %126, label %133, label %127

127:                                              ; preds = %125
  tail call void @qh_merge_nonconvex(ptr noundef nonnull %66, ptr noundef nonnull %68, i32 noundef %72)
  %128 = tail call i32 @qh_merge_degenredundant()
  switch i32 %72, label %136 [
    i32 3, label %129
    i32 4, label %131
  ]

129:                                              ; preds = %127
  %130 = add nsw i32 %.2119.ph193, 1
  br label %.outer

131:                                              ; preds = %127
  %132 = add nsw i32 %.2115.ph194, 1
  br label %.outer

133:                                              ; preds = %125
  tail call void @qh_merge_twisted(ptr noundef nonnull %66, ptr noundef nonnull %68)
  %134 = tail call i32 @qh_merge_degenredundant()
  %135 = add nsw i32 %.2.ph197, 1
  br label %.outer

136:                                              ; preds = %127
  br i1 %or.cond.lcssa, label %137, label %139

137:                                              ; preds = %136
  %138 = add nsw i32 %.2123.ph192, 1
  br label %.outer

139:                                              ; preds = %136
  %140 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %141 = getelementptr inbounds i8, ptr %66, i64 108
  %142 = load i32, ptr %141, align 4, !tbaa !17
  %143 = getelementptr inbounds i8, ptr %68, i64 108
  %144 = load i32, ptr %143, align 4, !tbaa !17
  %.not157 = icmp eq ptr %70, null
  br i1 %.not157, label %148, label %145

145:                                              ; preds = %139
  %146 = getelementptr inbounds i8, ptr %70, i64 32
  %147 = load i32, ptr %146, align 8, !tbaa !30
  br label %148

148:                                              ; preds = %139, %145
  %149 = phi i32 [ %147, %145 ], [ -1, %139 ]
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %140, i32 noundef 6394, ptr noundef nonnull @.str.22, i32 noundef %142, i32 noundef %144, i32 noundef %149, i32 noundef %72) #2
  tail call void @qh_errexit2(i32 noundef 5, ptr noundef nonnull %66, ptr noundef nonnull %68) #2
  br label %.outer

.outer:                                           ; preds = %131, %137, %148, %133, %129
  %.pn = phi i32 [ %128, %129 ], [ %128, %131 ], [ %134, %133 ], [ %128, %137 ], [ %128, %148 ]
  %.3124 = phi i32 [ %.2123.ph192, %129 ], [ %.2123.ph192, %131 ], [ %.2123.ph192, %133 ], [ %138, %137 ], [ %.2123.ph192, %148 ]
  %.3120 = phi i32 [ %130, %129 ], [ %.2119.ph193, %131 ], [ %.2119.ph193, %133 ], [ %.2119.ph193, %137 ], [ %.2119.ph193, %148 ]
  %.3116 = phi i32 [ %.2115.ph194, %129 ], [ %132, %131 ], [ %.2115.ph194, %133 ], [ %.2115.ph194, %137 ], [ %.2115.ph194, %148 ]
  %.3 = phi i32 [ %.2.ph197, %129 ], [ %.2.ph197, %131 ], [ %135, %133 ], [ %.2.ph197, %137 ], [ %.2.ph197, %148 ]
  %150 = add nsw i32 %.2107.ph196, 1
  %151 = add nsw i32 %.pn, %.3112.ph195
  %152 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2800), align 8, !tbaa !14
  %153 = tail call ptr @qh_setdellast(ptr noundef %152) #2
  %.not148176 = icmp eq ptr %153, null
  br i1 %.not148176, label %.outer._crit_edge, label %.lr.ph, !llvm.loop !28

.outer._crit_edge:                                ; preds = %.outer, %.backedge, %59
  %.2132.ph.lcssa = phi i32 [ %.1131, %59 ], [ %.2132.ph191, %.backedge ], [ 1, %.outer ]
  %.2123.ph.lcssa = phi i32 [ %.1122.ph, %59 ], [ %.2123.ph192, %.backedge ], [ %.3124, %.outer ]
  %.2119.ph.lcssa = phi i32 [ %.1118.ph, %59 ], [ %.2119.ph193, %.backedge ], [ %.3120, %.outer ]
  %.2115.ph.lcssa = phi i32 [ %.1114.ph, %59 ], [ %.2115.ph194, %.backedge ], [ %.3116, %.outer ]
  %.3112.ph.lcssa = phi i32 [ %.2111, %59 ], [ %.3112.ph195, %.backedge ], [ %151, %.outer ]
  %.2107.ph.lcssa = phi i32 [ %.1106.ph, %59 ], [ %.2107.ph196, %.backedge ], [ %150, %.outer ]
  %.2.ph.lcssa = phi i32 [ %.1.ph, %59 ], [ %.2.ph197, %.backedge ], [ %.3, %.outer ]
  %154 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2744), align 8, !tbaa !20
  %155 = icmp ne i32 %154, 0
  %156 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8
  %157 = icmp slt i32 %156, 6
  %or.cond5 = select i1 %155, i1 %157, i1 false
  %158 = icmp sgt i32 %.2107.ph.lcssa, 2
  %or.cond7 = select i1 %or.cond5, i1 %158, i1 false
  br i1 %or.cond7, label %159, label %161

159:                                              ; preds = %.outer._crit_edge
  %160 = tail call i32 @qh_reducevertices()
  br label %161

161:                                              ; preds = %159, %.outer._crit_edge
  %.3133 = phi i32 [ 0, %159 ], [ %.2132.ph.lcssa, %.outer._crit_edge ]
  %.2127 = phi i32 [ 0, %159 ], [ %.1126.lcssa, %.outer._crit_edge ]
  %.3108 = phi i32 [ 0, %159 ], [ %.2107.ph.lcssa, %.outer._crit_edge ]
  %162 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !16
  tail call void @qh_getmergeset(ptr noundef %162)
  br label %.backedge170.outer, !llvm.loop !32

163:                                              ; preds = %49
  %164 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1720), align 8, !tbaa !19
  %.not141 = icmp eq i32 %164, 0
  br i1 %.not141, label %.critedge161, label %165

165:                                              ; preds = %163
  %166 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2744), align 8, !tbaa !20
  %167 = icmp ne i32 %166, 0
  %168 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8
  %169 = icmp sgt i32 %168, 3
  %or.cond9 = select i1 %167, i1 %169, i1 false
  br i1 %or.cond9, label %.critedge163, label %170

170:                                              ; preds = %165
  %171 = icmp eq i32 %166, 0
  %172 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 180), align 4
  %173 = icmp ne i32 %172, 0
  %or.cond11 = select i1 %171, i1 %173, i1 false
  br i1 %or.cond11, label %.critedge161, label %174

174:                                              ; preds = %170
  %175 = icmp eq i32 %.1126, 0
  %176 = add i32 %168, -6
  %177 = icmp ult i32 %176, -3
  %or.cond17.not = select i1 %175, i1 true, i1 %177
  br i1 %or.cond17.not, label %.critedge161, label %.critedge163

.critedge163:                                     ; preds = %165, %174
  %178 = tail call i32 @qh_reducevertices()
  %.not143 = icmp eq i32 %178, 0
  br i1 %.not143, label %.critedge161, label %179

179:                                              ; preds = %.critedge163
  %180 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !16
  tail call void @qh_getmergeset(ptr noundef %180)
  br label %.backedge170.backedge

.backedge170.backedge:                            ; preds = %179, %181
  %.1126.be = phi i32 [ 0, %179 ], [ %.3128, %181 ]
  br label %.backedge170, !llvm.loop !33

.critedge161:                                     ; preds = %170, %174, %.critedge163, %163
  %.3128 = phi i32 [ 0, %.critedge163 ], [ %.1126, %174 ], [ %.1126, %163 ], [ %.1126, %170 ]
  br i1 %.not144, label %.loopexit, label %181

181:                                              ; preds = %.critedge161
  %182 = tail call i32 @qh_test_vneighbors()
  %.not145 = icmp eq i32 %182, 0
  br i1 %.not145, label %.loopexit, label %.backedge170.backedge

.loopexit303:                                     ; preds = %.critedge161.peel, %44
  %183 = icmp ne i32 %.4.peel, 0
  br label %.loopexit

.loopexit:                                        ; preds = %.critedge161, %181, %.loopexit303
  %.4.lcssa = phi i1 [ %183, %.loopexit303 ], [ false, %181 ], [ false, %.critedge161 ]
  %.3128.lcssa = phi i32 [ %.3128.peel, %.loopexit303 ], [ %.3128, %181 ], [ %.3128, %.critedge161 ]
  %184 = icmp ne i32 %.3128.lcssa, 0
  %or.cond19 = select i1 %.4.lcssa, i1 true, i1 %184
  br i1 %or.cond19, label %185, label %.critedge21

185:                                              ; preds = %.loopexit
  %186 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %187 = icmp sgt i32 %186, 2
  br i1 %187, label %188, label %192

188:                                              ; preds = %185
  %189 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %190 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1720), align 8, !tbaa !19
  %191 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !35
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %189, i32 noundef 3033, ptr noundef nonnull @.str.23, i32 noundef %190, i32 noundef %191, i32 noundef 5) #2
  br label %192

192:                                              ; preds = %188, %185
  %.0129205 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !36
  %.not146206 = icmp eq ptr %.0129205, null
  br i1 %.not146206, label %.critedge21, label %.lr.ph209.preheader

.lr.ph209.preheader:                              ; preds = %192
  %193 = getelementptr inbounds i8, ptr %.0129205, i64 56
  %194 = load ptr, ptr %193, align 8, !tbaa !36
  %.not147275 = icmp eq ptr %194, null
  br i1 %.not147275, label %.critedge21, label %.lr.ph209

.lr.ph209:                                        ; preds = %.lr.ph209.preheader, %.lr.ph209
  %195 = phi ptr [ %200, %.lr.ph209 ], [ %194, %.lr.ph209.preheader ]
  %.0129207276 = phi ptr [ %195, %.lr.ph209 ], [ %.0129205, %.lr.ph209.preheader ]
  %196 = getelementptr inbounds i8, ptr %.0129207276, i64 112
  %197 = load i32, ptr %196, align 8
  %198 = and i32 %197, -536870913
  store i32 %198, ptr %196, align 8
  %199 = getelementptr inbounds i8, ptr %195, i64 56
  %200 = load ptr, ptr %199, align 8, !tbaa !36
  %.not147 = icmp eq ptr %200, null
  br i1 %.not147, label %.critedge21, label %.lr.ph209

.critedge21:                                      ; preds = %.lr.ph209, %.lr.ph209.preheader, %192, %.loopexit
  %201 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 60), align 4, !tbaa !37
  %202 = icmp eq i32 %201, 0
  %203 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 180), align 4
  %204 = icmp ne i32 %203, 0
  %or.cond23 = select i1 %202, i1 true, i1 %204
  br i1 %or.cond23, label %209, label %205

205:                                              ; preds = %.critedge21
  %206 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !38
  store i32 %206, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2904), align 8, !tbaa !39
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !38
  %207 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !16
  tail call void @qh_checkconvex(ptr noundef %207, i32 noundef 0) #2
  %208 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2904), align 8, !tbaa !39
  store i32 %208, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !38
  br label %209

209:                                              ; preds = %205, %.critedge21
  %210 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %211 = icmp sgt i32 %210, 0
  br i1 %211, label %212, label %.thread

212:                                              ; preds = %209
  %213 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %213, i32 noundef 1009, ptr noundef nonnull @.str.24, i32 noundef %.1122.ph, i32 noundef %.1118.ph, i32 noundef %.1114.ph, i32 noundef %.1.ph, i32 noundef %.1110.ph) #2
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %214 = icmp sgt i32 %.pre, 3
  %215 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2568), align 8
  %216 = icmp slt i32 %215, 500
  %or.cond25 = select i1 %214, i1 %216, i1 false
  br i1 %or.cond25, label %217, label %.thread

217:                                              ; preds = %212
  tail call void @qh_printlists() #2
  br label %.thread

.thread:                                          ; preds = %209, %217, %212
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_reducevertices() local_unnamed_addr #1

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #0

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

declare ptr @qh_setdellast(ptr noundef) local_unnamed_addr #0

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_test_vneighbors() local_unnamed_addr #1

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

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

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


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