; 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.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 }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }

@mergetypes = external dso_local global [14 x ptr], align 16
@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.157 = external hidden unnamed_addr constant [136 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [122 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [190 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [197 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [73 x i8], align 1

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

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

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

declare i32 @qh_setsize(ptr noundef) #1

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

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

declare void @qh_removefacet(ptr noundef) #1

declare void @qh_appendfacet(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_mergefacet(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %24 = load i32, ptr %9, align 4, !tbaa !9
  %25 = icmp ugt i32 %24, 0
  br i1 %25, label %26, label %35

26:                                               ; preds = %6
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = icmp ult i64 %28, 14
  br i1 %29, label %30, label %35

30:                                               ; preds = %26
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = getelementptr inbounds [14 x ptr], ptr @mergetypes, i64 0, i64 %32
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  store ptr %34, ptr %21, align 8, !tbaa !5
  br label %37

35:                                               ; preds = %26, %6
  %36 = load ptr, ptr @mergetypes, align 16, !tbaa !5
  store ptr %36, ptr %21, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %35, %30
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.facetT, ptr %38, i32 0, i32 15
  %40 = load i32, ptr %39, align 8
  %41 = lshr i32 %40, 9
  %42 = and i32 %41, 1
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %51, label %44

44:                                               ; preds = %37
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.facetT, ptr %45, i32 0, i32 15
  %47 = load i32, ptr %46, align 8
  %48 = lshr i32 %47, 9
  %49 = and i32 %48, 1
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %85

51:                                               ; preds = %44, %37
  %52 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 98), align 8, !tbaa !11
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %66, label %54

54:                                               ; preds = %51
  %55 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.facetT, ptr %56, i32 0, i32 14
  %58 = load i32, ptr %57, align 4, !tbaa !16
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.facetT, ptr %59, i32 0, i32 14
  %61 = load i32, ptr %60, align 4, !tbaa !16
  %62 = load i32, ptr %9, align 4, !tbaa !9
  %63 = load ptr, ptr %21, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %55, i32 noundef 6226, ptr noundef @.str.157, i32 noundef %58, i32 noundef %61, i32 noundef %62, ptr noundef %63)
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 5, ptr noundef %64, ptr noundef %65)
  br label %66

66:                                               ; preds = %54, %51
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.facetT, ptr %67, i32 0, i32 15
  %69 = load i32, ptr %68, align 8
  %70 = lshr i32 %69, 9
  %71 = and i32 %70, 1
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %84

73:                                               ; preds = %66
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.facetT, ptr %74, i32 0, i32 15
  %76 = load i32, ptr %75, align 8
  %77 = and i32 %76, -513
  %78 = or i32 %77, 0
  store i32 %78, ptr %75, align 8
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.facetT, ptr %79, i32 0, i32 15
  %81 = load i32, ptr %80, align 8
  %82 = and i32 %81, -268435457
  %83 = or i32 %82, 0
  store i32 %83, ptr %80, align 8
  br label %84

84:                                               ; preds = %73, %66
  br label %85

85:                                               ; preds = %84, %44
  %86 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !18
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !18
  %88 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 78), align 8, !tbaa !19
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %101

90:                                               ; preds = %85
  %91 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 209), align 8, !tbaa !20
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %101

93:                                               ; preds = %90
  %94 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !18
  %95 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 246), align 4, !tbaa !21
  %96 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 78), align 8, !tbaa !19
  %97 = add nsw i32 %95, %96
  %98 = icmp sgt i32 %94, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %93
  call void @qh_tracemerging()
  br label %100

100:                                              ; preds = %99, %93
  br label %101

101:                                              ; preds = %100, %90, %85
  %102 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 188), align 4, !tbaa !22
  %103 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 79), align 4, !tbaa !23
  %104 = icmp sge i32 %102, %103
  br i1 %104, label %105, label %170

105:                                              ; preds = %101
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = icmp ne ptr %106, null
  br i1 %107, label %108, label %147

108:                                              ; preds = %105
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = load double, ptr %109, align 8, !tbaa !24
  %111 = fneg double %110
  %112 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 95), align 8, !tbaa !25
  %113 = fcmp ogt double %111, %112
  br i1 %113, label %119, label %114

114:                                              ; preds = %108
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = load double, ptr %115, align 8, !tbaa !24
  %117 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 95), align 8, !tbaa !25
  %118 = fcmp ogt double %116, %117
  br i1 %118, label %119, label %147

119:                                              ; preds = %114, %108
  store i32 0, ptr %19, align 4, !tbaa !9
  %120 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !26
  store i32 %120, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !27
  store i32 1, ptr %13, align 4, !tbaa !9
  %121 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %122 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !18
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = load double, ptr %123, align 8, !tbaa !24
  %125 = fneg double %124
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = load double, ptr %126, align 8, !tbaa !24
  %128 = fcmp olt double %125, %127
  br i1 %128, label %129, label %132

129:                                              ; preds = %119
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = load double, ptr %130, align 8, !tbaa !24
  br label %136

132:                                              ; preds = %119
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = load double, ptr %133, align 8, !tbaa !24
  %135 = fneg double %134
  br label %136

136:                                              ; preds = %132, %129
  %137 = phi double [ %131, %129 ], [ %135, %132 ]
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.facetT, ptr %138, i32 0, i32 14
  %140 = load i32, ptr %139, align 4, !tbaa !16
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.facetT, ptr %141, i32 0, i32 14
  %143 = load i32, ptr %142, align 4, !tbaa !16
  %144 = load i32, ptr %9, align 4, !tbaa !9
  %145 = load ptr, ptr %21, align 8, !tbaa !5
  %146 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %121, i32 noundef 8075, ptr noundef @.str.158, i32 noundef %122, double noundef %137, i32 noundef %140, i32 noundef %143, i32 noundef %144, ptr noundef %145, i32 noundef %146)
  br label %169

147:                                              ; preds = %114, %105
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 170), align 8, !tbaa !29
  %150 = icmp eq ptr %148, %149
  br i1 %150, label %155, label %151

151:                                              ; preds = %147
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 170), align 8, !tbaa !29
  %154 = icmp eq ptr %152, %153
  br i1 %154, label %155, label %168

155:                                              ; preds = %151, %147
  %156 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !27
  store i32 %156, ptr %19, align 4, !tbaa !9
  store i32 4, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !27
  store i32 1, ptr %13, align 4, !tbaa !9
  %157 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %158 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !18
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.facetT, ptr %159, i32 0, i32 14
  %161 = load i32, ptr %160, align 4, !tbaa !16
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.facetT, ptr %162, i32 0, i32 14
  %164 = load i32, ptr %163, align 4, !tbaa !16
  %165 = load i32, ptr %9, align 4, !tbaa !9
  %166 = load ptr, ptr %21, align 8, !tbaa !5
  %167 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %157, i32 noundef 8076, ptr noundef @.str.159, i32 noundef %158, i32 noundef %161, i32 noundef %164, i32 noundef %165, ptr noundef %166, i32 noundef %167)
  br label %168

168:                                              ; preds = %155, %151
  br label %169

169:                                              ; preds = %168, %136
  br label %170

170:                                              ; preds = %169, %101
  %171 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !27
  %172 = icmp sge i32 %171, 2
  br i1 %172, label %173, label %195

173:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  store double -2.000000e+00, ptr %22, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  store double -2.000000e+00, ptr %23, align 8, !tbaa !24
  %174 = load ptr, ptr %10, align 8, !tbaa !5
  %175 = icmp ne ptr %174, null
  br i1 %175, label %176, label %181

176:                                              ; preds = %173
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = load double, ptr %177, align 8, !tbaa !24
  store double %178, ptr %22, align 8, !tbaa !24
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  %180 = load double, ptr %179, align 8, !tbaa !24
  store double %180, ptr %23, align 8, !tbaa !24
  br label %181

181:                                              ; preds = %176, %173
  %182 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %183 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !18
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.facetT, ptr %184, i32 0, i32 14
  %186 = load i32, ptr %185, align 4, !tbaa !16
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.facetT, ptr %187, i32 0, i32 14
  %189 = load i32, ptr %188, align 4, !tbaa !16
  %190 = load i32, ptr %9, align 4, !tbaa !9
  %191 = load ptr, ptr %21, align 8, !tbaa !5
  %192 = load double, ptr %22, align 8, !tbaa !24
  %193 = load double, ptr %23, align 8, !tbaa !24
  %194 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 199), align 8, !tbaa !30
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %182, i32 noundef 2081, ptr noundef @.str.160, i32 noundef %183, i32 noundef %186, i32 noundef %189, i32 noundef %190, ptr noundef %191, double noundef %192, double noundef %193, double noundef %194)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  br label %195

195:                                              ; preds = %181, %170
  %196 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 3), align 4, !tbaa !31
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %297, label %198

198:                                              ; preds = %195
  %199 = load ptr, ptr %10, align 8, !tbaa !5
  %200 = icmp ne ptr %199, null
  br i1 %200, label %201, label %297

201:                                              ; preds = %198
  %202 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 147), align 8, !tbaa !32
  %203 = fmul double 1.000000e+02, %202
  store double %203, ptr %16, align 8, !tbaa !24
  %204 = load double, ptr %16, align 8, !tbaa !24
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.facetT, ptr %205, i32 0, i32 1
  %207 = load double, ptr %206, align 8, !tbaa !33
  %208 = fcmp olt double %204, %207
  br i1 %208, label %209, label %213

209:                                              ; preds = %201
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.facetT, ptr %210, i32 0, i32 1
  %212 = load double, ptr %211, align 8, !tbaa !33
  store double %212, ptr %16, align 8, !tbaa !24
  br label %213

213:                                              ; preds = %209, %201
  %214 = load double, ptr %16, align 8, !tbaa !24
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.facetT, ptr %215, i32 0, i32 1
  %217 = load double, ptr %216, align 8, !tbaa !33
  %218 = fcmp olt double %214, %217
  br i1 %218, label %219, label %223

219:                                              ; preds = %213
  %220 = load ptr, ptr %8, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.facetT, ptr %220, i32 0, i32 1
  %222 = load double, ptr %221, align 8, !tbaa !33
  store double %222, ptr %16, align 8, !tbaa !24
  br label %223

223:                                              ; preds = %219, %213
  %224 = load ptr, ptr %11, align 8, !tbaa !5
  %225 = load double, ptr %224, align 8, !tbaa !24
  %226 = load double, ptr %16, align 8, !tbaa !24
  %227 = fcmp ogt double %225, %226
  br i1 %227, label %234, label %228

228:                                              ; preds = %223
  %229 = load ptr, ptr %10, align 8, !tbaa !5
  %230 = load double, ptr %229, align 8, !tbaa !24
  %231 = fneg double %230
  %232 = load double, ptr %16, align 8, !tbaa !24
  %233 = fcmp ogt double %231, %232
  br i1 %233, label %234, label %296

234:                                              ; preds = %228, %223
  %235 = load ptr, ptr %7, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.facetT, ptr %235, i32 0, i32 8
  %237 = load ptr, ptr %236, align 8, !tbaa !34
  %238 = call double @qh_vertex_bestdist(ptr noundef %237)
  store double %238, ptr %17, align 8, !tbaa !24
  %239 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 147), align 8, !tbaa !32
  %240 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 134), align 8, !tbaa !35
  %241 = fadd double %239, %240
  store double %241, ptr %18, align 8, !tbaa !24
  %242 = load double, ptr %17, align 8, !tbaa !24
  %243 = load double, ptr %16, align 8, !tbaa !24
  %244 = fcmp ogt double %242, %243
  br i1 %244, label %245, label %269

245:                                              ; preds = %234
  %246 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %247 = load ptr, ptr %7, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.facetT, ptr %247, i32 0, i32 14
  %249 = load i32, ptr %248, align 4, !tbaa !16
  %250 = load ptr, ptr %8, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.facetT, ptr %250, i32 0, i32 14
  %252 = load i32, ptr %251, align 4, !tbaa !16
  %253 = load i32, ptr %9, align 4, !tbaa !9
  %254 = load ptr, ptr %21, align 8, !tbaa !5
  %255 = load ptr, ptr %11, align 8, !tbaa !5
  %256 = load double, ptr %255, align 8, !tbaa !24
  %257 = load ptr, ptr %11, align 8, !tbaa !5
  %258 = load double, ptr %257, align 8, !tbaa !24
  %259 = load double, ptr %18, align 8, !tbaa !24
  %260 = fdiv double %258, %259
  %261 = load ptr, ptr %10, align 8, !tbaa !5
  %262 = load double, ptr %261, align 8, !tbaa !24
  %263 = load ptr, ptr %10, align 8, !tbaa !5
  %264 = load double, ptr %263, align 8, !tbaa !24
  %265 = fneg double %264
  %266 = load double, ptr %18, align 8, !tbaa !24
  %267 = fdiv double %265, %266
  %268 = load double, ptr %17, align 8, !tbaa !24
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %246, i32 noundef 6347, ptr noundef @.str.161, i32 noundef %249, i32 noundef %252, i32 noundef %253, ptr noundef %254, double noundef %256, double noundef %260, double noundef %262, double noundef %267, double noundef %268)
  br label %293

269:                                              ; preds = %234
  %270 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %271 = load ptr, ptr %7, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.facetT, ptr %271, i32 0, i32 14
  %273 = load i32, ptr %272, align 4, !tbaa !16
  %274 = load ptr, ptr %8, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.facetT, ptr %274, i32 0, i32 14
  %276 = load i32, ptr %275, align 4, !tbaa !16
  %277 = load i32, ptr %9, align 4, !tbaa !9
  %278 = load ptr, ptr %21, align 8, !tbaa !5
  %279 = load ptr, ptr %11, align 8, !tbaa !5
  %280 = load double, ptr %279, align 8, !tbaa !24
  %281 = load ptr, ptr %11, align 8, !tbaa !5
  %282 = load double, ptr %281, align 8, !tbaa !24
  %283 = load double, ptr %18, align 8, !tbaa !24
  %284 = fdiv double %282, %283
  %285 = load ptr, ptr %10, align 8, !tbaa !5
  %286 = load double, ptr %285, align 8, !tbaa !24
  %287 = load ptr, ptr %10, align 8, !tbaa !5
  %288 = load double, ptr %287, align 8, !tbaa !24
  %289 = fneg double %288
  %290 = load double, ptr %18, align 8, !tbaa !24
  %291 = fdiv double %289, %290
  %292 = load double, ptr %17, align 8, !tbaa !24
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %270, i32 noundef 6348, ptr noundef @.str.162, i32 noundef %273, i32 noundef %276, i32 noundef %277, ptr noundef %278, double noundef %280, double noundef %284, double noundef %286, double noundef %291, double noundef %292)
  br label %293

293:                                              ; preds = %269, %245
  %294 = load ptr, ptr %7, align 8, !tbaa !5
  %295 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 8, ptr noundef %294, ptr noundef %295)
  br label %296

296:                                              ; preds = %293, %228
  br label %297

297:                                              ; preds = %296, %198, %195
  %298 = load ptr, ptr %7, align 8, !tbaa !5
  %299 = load ptr, ptr %8, align 8, !tbaa !5
  %300 = icmp eq ptr %298, %299
  br i1 %300, label %315, label %301

301:                                              ; preds = %297
  %302 = load ptr, ptr %7, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.facetT, ptr %302, i32 0, i32 15
  %304 = load i32, ptr %303, align 8
  %305 = lshr i32 %304, 11
  %306 = and i32 %305, 1
  %307 = icmp ne i32 %306, 0
  br i1 %307, label %315, label %308

308:                                              ; preds = %301
  %309 = load ptr, ptr %8, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.facetT, ptr %309, i32 0, i32 15
  %311 = load i32, ptr %310, align 8
  %312 = lshr i32 %311, 11
  %313 = and i32 %312, 1
  %314 = icmp ne i32 %313, 0
  br i1 %314, label %315, label %327

315:                                              ; preds = %308, %301, %297
  %316 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %317 = load ptr, ptr %7, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.facetT, ptr %317, i32 0, i32 14
  %319 = load i32, ptr %318, align 4, !tbaa !16
  %320 = load ptr, ptr %8, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.facetT, ptr %320, i32 0, i32 14
  %322 = load i32, ptr %321, align 4, !tbaa !16
  %323 = load i32, ptr %9, align 4, !tbaa !9
  %324 = load ptr, ptr %21, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %316, i32 noundef 6099, ptr noundef @.str.163, i32 noundef %319, i32 noundef %322, i32 noundef %323, ptr noundef %324)
  %325 = load ptr, ptr %7, align 8, !tbaa !5
  %326 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 5, ptr noundef %325, ptr noundef %326)
  br label %327

327:                                              ; preds = %315, %308
  %328 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 178), align 8, !tbaa !36
  %329 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !37
  %330 = sub nsw i32 %328, %329
  %331 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !38
  %332 = add nsw i32 %331, 1
  %333 = icmp sle i32 %330, %332
  br i1 %333, label %334, label %346

334:                                              ; preds = %327
  %335 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %336 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !38
  %337 = add nsw i32 %336, 1
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %335, i32 noundef 6227, ptr noundef @.str.164, i32 noundef %337)
  %338 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !38
  %339 = icmp sge i32 %338, 5
  br i1 %339, label %340, label %345

340:                                              ; preds = %334
  %341 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 37), align 4, !tbaa !39
  %342 = icmp ne i32 %341, 0
  br i1 %342, label %345, label %343

343:                                              ; preds = %340
  %344 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %344, i32 noundef 8079, ptr noundef @.str.165)
  br label %345

345:                                              ; preds = %343, %340, %334
  call void @qh_errexit(i32 noundef 7, ptr noundef null, ptr noundef null)
  br label %346

346:                                              ; preds = %345, %327
  %347 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 125), align 8, !tbaa !40
  %348 = icmp ne i32 %347, 0
  br i1 %348, label %350, label %349

349:                                              ; preds = %346
  call void @qh_vertexneighbors()
  br label %350

350:                                              ; preds = %349, %346
  %351 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_makeridges(ptr noundef %351)
  %352 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_makeridges(ptr noundef %352)
  %353 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !27
  %354 = icmp sge i32 %353, 4
  br i1 %354, label %355, label %358

355:                                              ; preds = %350
  %356 = load ptr, ptr %7, align 8, !tbaa !5
  %357 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_errprint(ptr noundef @.str.166, ptr noundef %356, ptr noundef %357, ptr noundef null, ptr noundef null)
  br label %358

358:                                              ; preds = %355, %350
  %359 = load ptr, ptr %10, align 8, !tbaa !5
  %360 = icmp ne ptr %359, null
  br i1 %360, label %361, label %424

361:                                              ; preds = %358
  %362 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 199), align 8, !tbaa !30
  %363 = load ptr, ptr %11, align 8, !tbaa !5
  %364 = load double, ptr %363, align 8, !tbaa !24
  %365 = fcmp olt double %362, %364
  br i1 %365, label %366, label %369

366:                                              ; preds = %361
  %367 = load ptr, ptr %11, align 8, !tbaa !5
  %368 = load double, ptr %367, align 8, !tbaa !24
  store double %368, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 199), align 8, !tbaa !30
  br label %369

369:                                              ; preds = %366, %361
  %370 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 200), align 8, !tbaa !41
  %371 = load ptr, ptr %11, align 8, !tbaa !5
  %372 = load double, ptr %371, align 8, !tbaa !24
  %373 = fcmp olt double %370, %372
  br i1 %373, label %374, label %377

374:                                              ; preds = %369
  %375 = load ptr, ptr %11, align 8, !tbaa !5
  %376 = load double, ptr %375, align 8, !tbaa !24
  store double %376, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 200), align 8, !tbaa !41
  br label %377

377:                                              ; preds = %374, %369
  %378 = load ptr, ptr %8, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.facetT, ptr %378, i32 0, i32 1
  %380 = load double, ptr %379, align 8, !tbaa !33
  %381 = load ptr, ptr %11, align 8, !tbaa !5
  %382 = load double, ptr %381, align 8, !tbaa !24
  %383 = fcmp olt double %380, %382
  br i1 %383, label %384, label %389

384:                                              ; preds = %377
  %385 = load ptr, ptr %11, align 8, !tbaa !5
  %386 = load double, ptr %385, align 8, !tbaa !24
  %387 = load ptr, ptr %8, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.facetT, ptr %387, i32 0, i32 1
  store double %386, ptr %388, align 8, !tbaa !33
  br label %389

389:                                              ; preds = %384, %377
  %390 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !42
  %391 = load ptr, ptr %10, align 8, !tbaa !5
  %392 = load double, ptr %391, align 8, !tbaa !24
  %393 = fcmp ogt double %390, %392
  br i1 %393, label %394, label %397

394:                                              ; preds = %389
  %395 = load ptr, ptr %10, align 8, !tbaa !5
  %396 = load double, ptr %395, align 8, !tbaa !24
  store double %396, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !42
  br label %397

397:                                              ; preds = %394, %389
  %398 = load ptr, ptr %8, align 8, !tbaa !5
  %399 = getelementptr inbounds %struct.facetT, ptr %398, i32 0, i32 15
  %400 = load i32, ptr %399, align 8
  %401 = lshr i32 %400, 28
  %402 = and i32 %401, 1
  %403 = icmp ne i32 %402, 0
  br i1 %403, label %423, label %404

404:                                              ; preds = %397
  %405 = load ptr, ptr %11, align 8, !tbaa !5
  %406 = load double, ptr %405, align 8, !tbaa !24
  %407 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 149), align 8, !tbaa !43
  %408 = fcmp ogt double %406, %407
  br i1 %408, label %415, label %409

409:                                              ; preds = %404
  %410 = load ptr, ptr %10, align 8, !tbaa !5
  %411 = load double, ptr %410, align 8, !tbaa !24
  %412 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 149), align 8, !tbaa !43
  %413 = fneg double %412
  %414 = fcmp olt double %411, %413
  br i1 %414, label %415, label %423

415:                                              ; preds = %409, %404
  %416 = load ptr, ptr %8, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.facetT, ptr %416, i32 0, i32 15
  %418 = load i32, ptr %417, align 8
  %419 = and i32 %418, -268435457
  %420 = or i32 %419, 268435456
  store i32 %420, ptr %417, align 8
  %421 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 247), align 8, !tbaa !18
  %422 = add nsw i32 %421, 1
  store i32 %422, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 247), align 8, !tbaa !18
  br label %423

423:                                              ; preds = %415, %409, %397
  br label %424

424:                                              ; preds = %423, %358
  %425 = load ptr, ptr %7, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.facetT, ptr %425, i32 0, i32 15
  %427 = load i32, ptr %426, align 8
  %428 = and i32 %427, 511
  %429 = load ptr, ptr %8, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.facetT, ptr %429, i32 0, i32 15
  %431 = load i32, ptr %430, align 8
  %432 = and i32 %431, 511
  %433 = add nsw i32 %428, %432
  %434 = add nsw i32 %433, 1
  store i32 %434, ptr %20, align 4, !tbaa !9
  %435 = load i32, ptr %20, align 4, !tbaa !9
  %436 = icmp sge i32 %435, 511
  br i1 %436, label %437, label %443

437:                                              ; preds = %424
  %438 = load ptr, ptr %8, align 8, !tbaa !5
  %439 = getelementptr inbounds %struct.facetT, ptr %438, i32 0, i32 15
  %440 = load i32, ptr %439, align 8
  %441 = and i32 %440, -512
  %442 = or i32 %441, 511
  store i32 %442, ptr %439, align 8
  br label %453

443:                                              ; preds = %424
  %444 = load i32, ptr %20, align 4, !tbaa !9
  %445 = trunc i32 %444 to i16
  %446 = zext i16 %445 to i32
  %447 = load ptr, ptr %8, align 8, !tbaa !5
  %448 = getelementptr inbounds %struct.facetT, ptr %447, i32 0, i32 15
  %449 = load i32, ptr %448, align 8
  %450 = and i32 %446, 511
  %451 = and i32 %449, -512
  %452 = or i32 %451, %450
  store i32 %452, ptr %448, align 8
  br label %453

453:                                              ; preds = %443, %437
  %454 = load ptr, ptr %8, align 8, !tbaa !5
  %455 = getelementptr inbounds %struct.facetT, ptr %454, i32 0, i32 15
  %456 = load i32, ptr %455, align 8
  %457 = and i32 %456, -536870913
  %458 = or i32 %457, 536870912
  store i32 %458, ptr %455, align 8
  %459 = load ptr, ptr %8, align 8, !tbaa !5
  %460 = getelementptr inbounds %struct.facetT, ptr %459, i32 0, i32 15
  %461 = load i32, ptr %460, align 8
  %462 = and i32 %461, -2097153
  %463 = or i32 %462, 0
  store i32 %463, ptr %460, align 8
  %464 = load ptr, ptr %7, align 8, !tbaa !5
  %465 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_updatetested(ptr noundef %464, ptr noundef %465)
  %466 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !38
  %467 = icmp sgt i32 %466, 2
  br i1 %467, label %468, label %479

468:                                              ; preds = %453
  %469 = load ptr, ptr %7, align 8, !tbaa !5
  %470 = getelementptr inbounds %struct.facetT, ptr %469, i32 0, i32 8
  %471 = load ptr, ptr %470, align 8, !tbaa !34
  %472 = call i32 @qh_setsize(ptr noundef %471)
  %473 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !38
  %474 = icmp eq i32 %472, %473
  br i1 %474, label %475, label %479

475:                                              ; preds = %468
  %476 = load ptr, ptr %7, align 8, !tbaa !5
  %477 = load ptr, ptr %8, align 8, !tbaa !5
  %478 = load i32, ptr %12, align 4, !tbaa !9
  call void @qh_mergesimplex(ptr noundef %476, ptr noundef %477, i32 noundef %478)
  br label %532

479:                                              ; preds = %468, %453
  %480 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !44
  %481 = add i32 %480, 1
  store i32 %481, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !44
  store ptr null, ptr %14, align 8, !tbaa !5
  %482 = load ptr, ptr %8, align 8, !tbaa !5
  %483 = getelementptr inbounds %struct.facetT, ptr %482, i32 0, i32 8
  %484 = load ptr, ptr %483, align 8, !tbaa !34
  %485 = icmp ne ptr %484, null
  br i1 %485, label %486, label %502

486:                                              ; preds = %479
  %487 = load ptr, ptr %8, align 8, !tbaa !5
  %488 = getelementptr inbounds %struct.facetT, ptr %487, i32 0, i32 8
  %489 = load ptr, ptr %488, align 8, !tbaa !34
  %490 = getelementptr inbounds %struct.setT, ptr %489, i32 0, i32 1
  %491 = getelementptr inbounds [1 x %union.setelemT], ptr %490, i64 0, i64 0
  store ptr %491, ptr %15, align 8, !tbaa !5
  br label %492

492:                                              ; preds = %497, %486
  %493 = load ptr, ptr %15, align 8, !tbaa !5
  %494 = getelementptr inbounds ptr, ptr %493, i32 1
  store ptr %494, ptr %15, align 8, !tbaa !5
  %495 = load ptr, ptr %493, align 8, !tbaa !5
  store ptr %495, ptr %14, align 8, !tbaa !5
  %496 = icmp ne ptr %495, null
  br i1 %496, label %497, label %501

497:                                              ; preds = %492
  %498 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !44
  %499 = load ptr, ptr %14, align 8, !tbaa !5
  %500 = getelementptr inbounds %struct.vertexT, ptr %499, i32 0, i32 5
  store i32 %498, ptr %500, align 4, !tbaa !45
  br label %492, !llvm.loop !47

501:                                              ; preds = %492
  br label %502

502:                                              ; preds = %501, %479
  %503 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !38
  %504 = icmp eq i32 %503, 2
  br i1 %504, label %505, label %508

505:                                              ; preds = %502
  %506 = load ptr, ptr %7, align 8, !tbaa !5
  %507 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_mergefacet2d(ptr noundef %506, ptr noundef %507)
  br label %516

508:                                              ; preds = %502
  %509 = load ptr, ptr %7, align 8, !tbaa !5
  %510 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_mergeneighbors(ptr noundef %509, ptr noundef %510)
  %511 = load ptr, ptr %7, align 8, !tbaa !5
  %512 = getelementptr inbounds %struct.facetT, ptr %511, i32 0, i32 8
  %513 = load ptr, ptr %512, align 8, !tbaa !34
  %514 = load ptr, ptr %8, align 8, !tbaa !5
  %515 = getelementptr inbounds %struct.facetT, ptr %514, i32 0, i32 8
  call void @qh_mergevertices(ptr noundef %513, ptr noundef %515)
  br label %516

516:                                              ; preds = %508, %505
  %517 = load ptr, ptr %7, align 8, !tbaa !5
  %518 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_mergeridges(ptr noundef %517, ptr noundef %518)
  %519 = load ptr, ptr %7, align 8, !tbaa !5
  %520 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_mergevertex_neighbors(ptr noundef %519, ptr noundef %520)
  %521 = load ptr, ptr %8, align 8, !tbaa !5
  %522 = getelementptr inbounds %struct.facetT, ptr %521, i32 0, i32 15
  %523 = load i32, ptr %522, align 8
  %524 = lshr i32 %523, 10
  %525 = and i32 %524, 1
  %526 = icmp ne i32 %525, 0
  br i1 %526, label %531, label %527

527:                                              ; preds = %516
  %528 = load ptr, ptr %8, align 8, !tbaa !5
  %529 = getelementptr inbounds %struct.facetT, ptr %528, i32 0, i32 8
  %530 = load ptr, ptr %529, align 8, !tbaa !34
  call void @qh_newvertices(ptr noundef %530)
  br label %531

531:                                              ; preds = %527, %516
  br label %532

532:                                              ; preds = %531, %475
  %533 = load ptr, ptr %8, align 8, !tbaa !5
  %534 = getelementptr inbounds %struct.facetT, ptr %533, i32 0, i32 15
  %535 = load i32, ptr %534, align 8
  %536 = lshr i32 %535, 24
  %537 = and i32 %536, 1
  %538 = icmp ne i32 %537, 0
  br i1 %538, label %539, label %542

539:                                              ; preds = %532
  %540 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 132), align 8, !tbaa !18
  %541 = add nsw i32 %540, 1
  store i32 %541, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 132), align 8, !tbaa !18
  br label %574

542:                                              ; preds = %532
  %543 = load ptr, ptr %8, align 8, !tbaa !5
  %544 = getelementptr inbounds %struct.facetT, ptr %543, i32 0, i32 15
  %545 = load i32, ptr %544, align 8
  %546 = lshr i32 %545, 10
  %547 = and i32 %546, 1
  %548 = icmp ne i32 %547, 0
  br i1 %548, label %552, label %549

549:                                              ; preds = %542
  %550 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 133), align 8, !tbaa !18
  %551 = add nsw i32 %550, 1
  store i32 %551, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 133), align 8, !tbaa !18
  br label %573

552:                                              ; preds = %542
  %553 = load ptr, ptr %7, align 8, !tbaa !5
  %554 = getelementptr inbounds %struct.facetT, ptr %553, i32 0, i32 15
  %555 = load i32, ptr %554, align 8
  %556 = lshr i32 %555, 10
  %557 = and i32 %556, 1
  %558 = icmp ne i32 %557, 0
  br i1 %558, label %569, label %559

559:                                              ; preds = %552
  %560 = load ptr, ptr %8, align 8, !tbaa !5
  %561 = getelementptr inbounds %struct.facetT, ptr %560, i32 0, i32 15
  %562 = load i32, ptr %561, align 8
  %563 = lshr i32 %562, 10
  %564 = and i32 %563, 1
  %565 = icmp ne i32 %564, 0
  br i1 %565, label %566, label %569

566:                                              ; preds = %559
  %567 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 128), align 8, !tbaa !18
  %568 = add nsw i32 %567, 1
  store i32 %568, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 128), align 8, !tbaa !18
  br label %572

569:                                              ; preds = %559, %552
  %570 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 134), align 8, !tbaa !18
  %571 = add nsw i32 %570, 1
  store i32 %571, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 134), align 8, !tbaa !18
  br label %572

572:                                              ; preds = %569, %566
  br label %573

573:                                              ; preds = %572, %549
  br label %574

574:                                              ; preds = %573, %539
  %575 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_removefacet(ptr noundef %575)
  %576 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_appendfacet(ptr noundef %576)
  %577 = load ptr, ptr %8, align 8, !tbaa !5
  %578 = getelementptr inbounds %struct.facetT, ptr %577, i32 0, i32 15
  %579 = load i32, ptr %578, align 8
  %580 = and i32 %579, -1025
  %581 = or i32 %580, 1024
  store i32 %581, ptr %578, align 8
  %582 = load ptr, ptr %8, align 8, !tbaa !5
  %583 = getelementptr inbounds %struct.facetT, ptr %582, i32 0, i32 15
  %584 = load i32, ptr %583, align 8
  %585 = and i32 %584, -134217729
  %586 = or i32 %585, 0
  store i32 %586, ptr %583, align 8
  %587 = load ptr, ptr %7, align 8, !tbaa !5
  %588 = load ptr, ptr %8, align 8, !tbaa !5
  %589 = load i32, ptr %9, align 4, !tbaa !9
  call void @qh_tracemerge(ptr noundef %587, ptr noundef %588, i32 noundef %589)
  %590 = load i32, ptr %13, align 4, !tbaa !9
  %591 = icmp ne i32 %590, 0
  br i1 %591, label %592, label %595

592:                                              ; preds = %574
  %593 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %593, i32 noundef 8080, ptr noundef @.str.167)
  %594 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %594, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !27
  br label %595

595:                                              ; preds = %592, %574
  %596 = load i32, ptr %9, align 4, !tbaa !9
  %597 = icmp ne i32 %596, 13
  br i1 %597, label %598, label %614

598:                                              ; preds = %595
  %599 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !27
  %600 = icmp sge i32 %599, 3
  br i1 %600, label %601, label %609

601:                                              ; preds = %598
  %602 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %603 = load ptr, ptr %7, align 8, !tbaa !5
  %604 = getelementptr inbounds %struct.facetT, ptr %603, i32 0, i32 14
  %605 = load i32, ptr %604, align 4, !tbaa !16
  %606 = load ptr, ptr %8, align 8, !tbaa !5
  %607 = getelementptr inbounds %struct.facetT, ptr %606, i32 0, i32 14
  %608 = load i32, ptr %607, align 4, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %602, i32 noundef 3076, ptr noundef @.str.168, i32 noundef %605, i32 noundef %608)
  br label %609

609:                                              ; preds = %601, %598
  %610 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_test_redundant_neighbors(ptr noundef %610)
  %611 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_test_degen_neighbors(ptr noundef %611)
  %612 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_degen_redundant_facet(ptr noundef %612)
  %613 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_maybe_duplicateridges(ptr noundef %613)
  br label %614

614:                                              ; preds = %609, %595
  %615 = load ptr, ptr %7, align 8, !tbaa !5
  %616 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_willdelete(ptr noundef %615, ptr noundef %616)
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  ret void
}

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

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

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

declare void @qh_vertexneighbors() #1

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

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

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

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

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

declare double @qh_vertex_bestdist(ptr noundef) #1

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

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

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

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

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

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

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

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

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

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

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


; 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] }
%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 }

@mergetypes = external dso_local local_unnamed_addr global [14 x ptr], align 16
@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.157 = external hidden unnamed_addr constant [136 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [122 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [190 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [197 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [73 x i8], align 1

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

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #0

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

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

declare void @qh_removefacet(ptr noundef) local_unnamed_addr #0

declare void @qh_appendfacet(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_mergefacet(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef readonly %3, ptr nocapture noundef readonly %4, i32 noundef %5) local_unnamed_addr #1 {
  %7 = add i32 %2, -1
  %or.cond = icmp ult i32 %7, 13
  %8 = zext nneg i32 %2 to i64
  %9 = getelementptr inbounds [14 x ptr], ptr @mergetypes, i64 0, i64 %8
  %.0167.in = select i1 %or.cond, ptr %9, ptr @mergetypes
  %.0167 = load ptr, ptr %.0167.in, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 112
  %11 = load i32, ptr %10, align 8
  %12 = and i32 %11, 512
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %13, label %17

13:                                               ; preds = %6
  %14 = getelementptr inbounds i8, ptr %1, i64 112
  %15 = load i32, ptr %14, align 8
  %16 = and i32 %15, 512
  %.not195 = icmp eq i32 %16, 0
  br i1 %.not195, label %31, label %17

17:                                               ; preds = %13, %6
  %18 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 568), align 8, !tbaa !9
  %.not196 = icmp eq i32 %18, 0
  br i1 %.not196, label %19, label %25

19:                                               ; preds = %17
  %20 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %0, i64 108
  %22 = load i32, ptr %21, align 4, !tbaa !15
  %23 = getelementptr inbounds i8, ptr %1, i64 108
  %24 = load i32, ptr %23, align 4, !tbaa !15
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %20, i32 noundef 6226, ptr noundef nonnull @.str.157, i32 noundef %22, i32 noundef %24, i32 noundef %2, ptr noundef %.0167) #2
  tail call void @qh_errexit2(i32 noundef 5, ptr noundef nonnull %0, ptr noundef %1) #2
  br label %25

25:                                               ; preds = %19, %17
  %26 = getelementptr inbounds i8, ptr %1, i64 112
  %27 = load i32, ptr %26, align 8
  %28 = and i32 %27, 512
  %.not197 = icmp eq i32 %28, 0
  br i1 %.not197, label %31, label %29

29:                                               ; preds = %25
  %30 = and i32 %27, -268435969
  store i32 %30, ptr %26, align 8
  br label %31

31:                                               ; preds = %25, %29, %13
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !17
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !17
  %34 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 480), align 8, !tbaa !18
  %35 = icmp ne i32 %34, 0
  %36 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2744), align 8
  %37 = icmp ne i32 %36, 0
  %or.cond4 = select i1 %35, i1 %37, i1 false
  br i1 %or.cond4, label %38, label %42

38:                                               ; preds = %31
  %39 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2972), align 4, !tbaa !19
  %40 = add nsw i32 %39, %34
  %.not198 = icmp slt i32 %32, %40
  br i1 %.not198, label %42, label %41

41:                                               ; preds = %38
  tail call void @qh_tracemerging()
  br label %42

42:                                               ; preds = %38, %41, %31
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2612), align 4, !tbaa !20
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 484), align 4, !tbaa !21
  %.not199 = icmp slt i32 %43, %44
  br i1 %.not199, label %75, label %45

45:                                               ; preds = %42
  %.not200 = icmp eq ptr %3, null
  br i1 %.not200, label %62, label %46

46:                                               ; preds = %45
  %47 = load double, ptr %3, align 8, !tbaa !22
  %48 = fneg double %47
  %49 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 552), align 8, !tbaa !23
  %50 = fcmp olt double %49, %48
  %.pre = load double, ptr %4, align 8, !tbaa !22
  %51 = fcmp ogt double %.pre, %49
  %or.cond221 = select i1 %50, i1 true, i1 %51
  br i1 %or.cond221, label %52, label %62

52:                                               ; preds = %46
  %53 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 536), align 8, !tbaa !24
  store i32 %53, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !25
  %54 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !17
  %56 = fcmp ogt double %.pre, %48
  %. = select i1 %56, double %.pre, double %48
  %57 = getelementptr inbounds i8, ptr %0, i64 108
  %58 = load i32, ptr %57, align 4, !tbaa !15
  %59 = getelementptr inbounds i8, ptr %1, i64 108
  %60 = load i32, ptr %59, align 4, !tbaa !15
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !26
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %54, i32 noundef 8075, ptr noundef nonnull @.str.158, i32 noundef %55, double noundef %., i32 noundef %58, i32 noundef %60, i32 noundef %2, ptr noundef %.0167, i32 noundef %61) #2
  br label %75

62:                                               ; preds = %46, %45
  %63 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2504), align 8, !tbaa !27
  %64 = icmp eq ptr %63, %0
  %65 = icmp eq ptr %63, %1
  %or.cond215 = or i1 %64, %65
  br i1 %or.cond215, label %66, label %75

66:                                               ; preds = %62
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !25
  store i32 4, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !25
  %68 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  %69 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !17
  %70 = getelementptr inbounds i8, ptr %0, i64 108
  %71 = load i32, ptr %70, align 4, !tbaa !15
  %72 = getelementptr inbounds i8, ptr %1, i64 108
  %73 = load i32, ptr %72, align 4, !tbaa !15
  %74 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !26
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %68, i32 noundef 8076, ptr noundef nonnull @.str.159, i32 noundef %69, i32 noundef %71, i32 noundef %73, i32 noundef %2, ptr noundef %.0167, i32 noundef %74) #2
  br label %75

75:                                               ; preds = %62, %52, %66, %42
  %.0169 = phi i32 [ 0, %52 ], [ %67, %66 ], [ 0, %42 ], [ 0, %62 ]
  %.not213 = phi i1 [ false, %52 ], [ false, %66 ], [ true, %42 ], [ true, %62 ]
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !25
  %77 = icmp sgt i32 %76, 1
  br i1 %77, label %78, label %90

78:                                               ; preds = %75
  %.not201 = icmp eq ptr %3, null
  br i1 %.not201, label %82, label %79

79:                                               ; preds = %78
  %80 = load double, ptr %3, align 8, !tbaa !22
  %81 = load double, ptr %4, align 8, !tbaa !22
  br label %82

82:                                               ; preds = %79, %78
  %.0166 = phi double [ %80, %79 ], [ -2.000000e+00, %78 ]
  %.0 = phi double [ %81, %79 ], [ -2.000000e+00, %78 ]
  %83 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !17
  %85 = getelementptr inbounds i8, ptr %0, i64 108
  %86 = load i32, ptr %85, align 4, !tbaa !15
  %87 = getelementptr inbounds i8, ptr %1, i64 108
  %88 = load i32, ptr %87, align 4, !tbaa !15
  %89 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2680), align 8, !tbaa !28
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %83, i32 noundef 2081, ptr noundef nonnull @.str.160, i32 noundef %84, i32 noundef %86, i32 noundef %88, i32 noundef %2, ptr noundef %.0167, double noundef %.0166, double noundef %.0, double noundef %89) #2
  br label %90

90:                                               ; preds = %82, %75
  %91 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 12), align 4, !tbaa !29
  %92 = icmp eq i32 %91, 0
  %93 = icmp ne ptr %3, null
  %or.cond6 = and i1 %93, %92
  br i1 %or.cond6, label %94, label %130

94:                                               ; preds = %90
  %95 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1888), align 8, !tbaa !30
  %96 = fmul double %95, 1.000000e+02
  %97 = getelementptr inbounds i8, ptr %0, i64 8
  %98 = load double, ptr %97, align 8, !tbaa !31
  %99 = fcmp olt double %96, %98
  %.0171 = select i1 %99, double %98, double %96
  %100 = getelementptr inbounds i8, ptr %1, i64 8
  %101 = load double, ptr %100, align 8, !tbaa !31
  %102 = fcmp olt double %.0171, %101
  %.1 = select i1 %102, double %101, double %.0171
  %103 = load double, ptr %4, align 8, !tbaa !22
  %104 = fcmp ogt double %103, %.1
  br i1 %104, label %109, label %105

105:                                              ; preds = %94
  %106 = load double, ptr %3, align 8, !tbaa !22
  %107 = fneg double %106
  %108 = fcmp olt double %.1, %107
  br i1 %108, label %109, label %130

109:                                              ; preds = %105, %94
  %110 = getelementptr inbounds i8, ptr %0, i64 64
  %111 = load ptr, ptr %110, align 8, !tbaa !32
  %112 = tail call double @qh_vertex_bestdist(ptr noundef %111) #2
  %113 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1888), align 8, !tbaa !30
  %114 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1784), align 8, !tbaa !33
  %115 = fadd double %113, %114
  %116 = fcmp ogt double %112, %.1
  %117 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  %118 = getelementptr inbounds i8, ptr %0, i64 108
  %119 = load i32, ptr %118, align 4, !tbaa !15
  %120 = getelementptr inbounds i8, ptr %1, i64 108
  %121 = load i32, ptr %120, align 4, !tbaa !15
  %122 = load double, ptr %4, align 8, !tbaa !22
  %123 = fdiv double %122, %115
  %124 = load double, ptr %3, align 8, !tbaa !22
  %125 = fneg double %124
  %126 = fdiv double %125, %115
  br i1 %116, label %127, label %128

127:                                              ; preds = %109
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %117, i32 noundef 6347, ptr noundef nonnull @.str.161, i32 noundef %119, i32 noundef %121, i32 noundef %2, ptr noundef %.0167, double noundef %122, double noundef %123, double noundef %124, double noundef %126, double noundef %112) #2
  br label %129

128:                                              ; preds = %109
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %117, i32 noundef 6348, ptr noundef nonnull @.str.162, i32 noundef %119, i32 noundef %121, i32 noundef %2, ptr noundef %.0167, double noundef %122, double noundef %123, double noundef %124, double noundef %126, double noundef %112) #2
  br label %129

129:                                              ; preds = %128, %127
  tail call void @qh_errexit2(i32 noundef 8, ptr noundef nonnull %0, ptr noundef nonnull %1) #2
  br label %130

130:                                              ; preds = %105, %129, %90
  %131 = icmp eq ptr %0, %1
  br i1 %131, label %139, label %132

132:                                              ; preds = %130
  %133 = load i32, ptr %10, align 8
  %134 = and i32 %133, 2048
  %.not202 = icmp eq i32 %134, 0
  br i1 %.not202, label %135, label %139

135:                                              ; preds = %132
  %136 = getelementptr inbounds i8, ptr %1, i64 112
  %137 = load i32, ptr %136, align 8
  %138 = and i32 %137, 2048
  %.not203 = icmp eq i32 %138, 0
  br i1 %.not203, label %145, label %139

139:                                              ; preds = %135, %132, %130
  %140 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  %141 = getelementptr inbounds i8, ptr %0, i64 108
  %142 = load i32, ptr %141, align 4, !tbaa !15
  %143 = getelementptr inbounds i8, ptr %1, i64 108
  %144 = load i32, ptr %143, align 4, !tbaa !15
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %140, i32 noundef 6099, ptr noundef nonnull @.str.163, i32 noundef %142, i32 noundef %144, i32 noundef %2, ptr noundef %.0167) #2
  tail call void @qh_errexit2(i32 noundef 5, ptr noundef nonnull %0, ptr noundef nonnull %1) #2
  br label %145

145:                                              ; preds = %139, %135
  %146 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2568), align 8, !tbaa !34
  %147 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2496), align 8, !tbaa !35
  %148 = sub nsw i32 %146, %147
  %149 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !36
  %150 = add nsw i32 %149, 1
  %.not204 = icmp sgt i32 %148, %150
  br i1 %.not204, label %160, label %151

151:                                              ; preds = %145
  %152 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %152, i32 noundef 6227, ptr noundef nonnull @.str.164, i32 noundef %150) #2
  %153 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !36
  %154 = icmp slt i32 %153, 5
  %155 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 180), align 4
  %156 = icmp ne i32 %155, 0
  %or.cond8 = select i1 %154, i1 true, i1 %156
  br i1 %or.cond8, label %159, label %157

157:                                              ; preds = %151
  %158 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %158, i32 noundef 8079, ptr noundef nonnull @.str.165) #2
  br label %159

159:                                              ; preds = %157, %151
  tail call void @qh_errexit(i32 noundef 7, ptr noundef null, ptr noundef null) #2
  br label %160

160:                                              ; preds = %159, %145
  %161 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1720), align 8, !tbaa !37
  %.not205 = icmp eq i32 %161, 0
  br i1 %.not205, label %162, label %163

162:                                              ; preds = %160
  tail call void @qh_vertexneighbors() #2
  br label %163

163:                                              ; preds = %162, %160
  tail call void @qh_makeridges(ptr noundef nonnull %0)
  tail call void @qh_makeridges(ptr noundef nonnull %1)
  %164 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !25
  %165 = icmp sgt i32 %164, 3
  br i1 %165, label %166, label %167

166:                                              ; preds = %163
  tail call void @qh_errprint(ptr noundef nonnull @.str.166, ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef null, ptr noundef null) #2
  br label %167

167:                                              ; preds = %166, %163
  br i1 %93, label %168, label %205

168:                                              ; preds = %167
  %169 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2680), align 8, !tbaa !28
  %170 = load double, ptr %4, align 8, !tbaa !22
  %171 = fcmp olt double %169, %170
  br i1 %171, label %172, label %173

172:                                              ; preds = %168
  store double %170, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2680), align 8, !tbaa !28
  %.pre219 = load double, ptr %4, align 8, !tbaa !22
  br label %173

173:                                              ; preds = %172, %168
  %174 = phi double [ %.pre219, %172 ], [ %170, %168 ]
  %175 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2688), align 8, !tbaa !38
  %176 = fcmp olt double %175, %174
  br i1 %176, label %177, label %178

177:                                              ; preds = %173
  store double %174, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2688), align 8, !tbaa !38
  %.pre220 = load double, ptr %4, align 8, !tbaa !22
  br label %178

178:                                              ; preds = %177, %173
  %179 = phi double [ %.pre220, %177 ], [ %174, %173 ]
  %180 = getelementptr inbounds i8, ptr %1, i64 8
  %181 = load double, ptr %180, align 8, !tbaa !31
  %182 = fcmp olt double %181, %179
  br i1 %182, label %183, label %184

183:                                              ; preds = %178
  store double %179, ptr %180, align 8, !tbaa !31
  br label %184

184:                                              ; preds = %183, %178
  %185 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2696), align 8, !tbaa !39
  %186 = load double, ptr %3, align 8, !tbaa !22
  %187 = fcmp ogt double %185, %186
  br i1 %187, label %188, label %189

188:                                              ; preds = %184
  store double %186, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2696), align 8, !tbaa !39
  br label %189

189:                                              ; preds = %188, %184
  %190 = getelementptr inbounds i8, ptr %1, i64 112
  %191 = load i32, ptr %190, align 8
  %192 = and i32 %191, 268435456
  %.not206 = icmp eq i32 %192, 0
  br i1 %.not206, label %193, label %205

193:                                              ; preds = %189
  %194 = load double, ptr %4, align 8, !tbaa !22
  %195 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1904), align 8, !tbaa !40
  %196 = fcmp ogt double %194, %195
  br i1 %196, label %201, label %197

197:                                              ; preds = %193
  %198 = load double, ptr %3, align 8, !tbaa !22
  %199 = fneg double %195
  %200 = fcmp olt double %198, %199
  br i1 %200, label %201, label %205

201:                                              ; preds = %197, %193
  %202 = or disjoint i32 %191, 268435456
  store i32 %202, ptr %190, align 8
  %203 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1976), align 8, !tbaa !17
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1976), align 8, !tbaa !17
  br label %205

205:                                              ; preds = %189, %197, %201, %167
  %206 = load i32, ptr %10, align 8
  %207 = and i32 %206, 511
  %208 = getelementptr inbounds i8, ptr %1, i64 112
  %209 = load i32, ptr %208, align 8
  %210 = and i32 %209, 511
  %211 = add nuw nsw i32 %210, %207
  %212 = icmp ugt i32 %211, 509
  %213 = add nuw nsw i32 %211, 1
  %214 = and i32 %209, -538968576
  %215 = or i32 %213, %214
  %216 = or i32 %209, 511
  %storemerge = select i1 %212, i32 %216, i32 %215
  %217 = and i32 %storemerge, -538968065
  %218 = or disjoint i32 %217, 536870912
  store i32 %218, ptr %208, align 8
  tail call void @qh_updatetested(ptr noundef nonnull %0, ptr noundef nonnull %1)
  %219 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !36
  %220 = icmp sgt i32 %219, 2
  br i1 %220, label %221, label %228

221:                                              ; preds = %205
  %222 = getelementptr inbounds i8, ptr %0, i64 64
  %223 = load ptr, ptr %222, align 8, !tbaa !32
  %224 = tail call i32 @qh_setsize(ptr noundef %223) #2
  %225 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !36
  %226 = icmp eq i32 %224, %225
  br i1 %226, label %227, label %228

227:                                              ; preds = %221
  tail call void @qh_mergesimplex(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %5)
  br label %248

228:                                              ; preds = %221, %205
  %229 = phi i32 [ %225, %221 ], [ %219, %205 ]
  %230 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !41
  %231 = add i32 %230, 1
  store i32 %231, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !41
  %232 = getelementptr inbounds i8, ptr %1, i64 64
  %233 = load ptr, ptr %232, align 8, !tbaa !32
  %.not207 = icmp eq ptr %233, null
  br i1 %.not207, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %228
  %.0170216 = getelementptr inbounds i8, ptr %233, i64 8
  %234 = load ptr, ptr %.0170216, align 8, !tbaa !5
  %.not208217 = icmp eq ptr %234, null
  br i1 %.not208217, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %235 = phi ptr [ %237, %.lr.ph ], [ %234, %.preheader ]
  %.0170218 = phi ptr [ %.0170, %.lr.ph ], [ %.0170216, %.preheader ]
  %236 = getelementptr inbounds i8, ptr %235, i64 36
  store i32 %231, ptr %236, align 4, !tbaa !42
  %.0170 = getelementptr inbounds i8, ptr %.0170218, i64 8
  %237 = load ptr, ptr %.0170, align 8, !tbaa !5
  %.not208 = icmp eq ptr %237, null
  br i1 %.not208, label %.loopexit, label %.lr.ph, !llvm.loop !44

.loopexit:                                        ; preds = %.lr.ph, %.preheader, %228
  %238 = icmp eq i32 %229, 2
  br i1 %238, label %239, label %240

239:                                              ; preds = %.loopexit
  tail call void @qh_mergefacet2d(ptr noundef %0, ptr noundef %1)
  br label %243

240:                                              ; preds = %.loopexit
  tail call void @qh_mergeneighbors(ptr noundef %0, ptr noundef %1)
  %241 = getelementptr inbounds i8, ptr %0, i64 64
  %242 = load ptr, ptr %241, align 8, !tbaa !32
  tail call void @qh_mergevertices(ptr noundef %242, ptr noundef nonnull %232)
  br label %243

243:                                              ; preds = %240, %239
  tail call void @qh_mergeridges(ptr noundef %0, ptr noundef %1)
  tail call void @qh_mergevertex_neighbors(ptr noundef %0, ptr noundef %1)
  %244 = load i32, ptr %208, align 8
  %245 = and i32 %244, 1024
  %.not209 = icmp eq i32 %245, 0
  br i1 %.not209, label %246, label %248

246:                                              ; preds = %243
  %247 = load ptr, ptr %232, align 8, !tbaa !32
  tail call void @qh_newvertices(ptr noundef %247)
  br label %248

248:                                              ; preds = %243, %246, %227
  %249 = load i32, ptr %208, align 8
  %250 = and i32 %249, 16777216
  %.not210 = icmp eq i32 %250, 0
  br i1 %.not210, label %251, label %256

251:                                              ; preds = %248
  %252 = and i32 %249, 1024
  %.not211 = icmp eq i32 %252, 0
  br i1 %.not211, label %256, label %253

253:                                              ; preds = %251
  %254 = load i32, ptr %10, align 8
  %255 = and i32 %254, 1024
  %.not212 = icmp eq i32 %255, 0
  %.224 = select i1 %.not212, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1024), ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1072)
  br label %256

256:                                              ; preds = %253, %251, %248
  %.sink = phi ptr [ getelementptr inbounds (i8, ptr @qh_qhstat, i64 1056), %248 ], [ getelementptr inbounds (i8, ptr @qh_qhstat, i64 1064), %251 ], [ %.224, %253 ]
  %257 = load i32, ptr %.sink, align 8, !tbaa !17
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %.sink, align 8, !tbaa !17
  tail call void @qh_removefacet(ptr noundef nonnull %1) #2
  tail call void @qh_appendfacet(ptr noundef nonnull %1) #2
  %259 = load i32, ptr %208, align 8
  %260 = and i32 %259, -134218753
  %261 = or disjoint i32 %260, 1024
  store i32 %261, ptr %208, align 8
  tail call void @qh_tracemerge(ptr noundef %0, ptr noundef nonnull %1, i32 noundef %2)
  br i1 %.not213, label %264, label %262

262:                                              ; preds = %256
  %263 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %263, i32 noundef 8080, ptr noundef nonnull @.str.167) #2
  store i32 %.0169, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !25
  br label %264

264:                                              ; preds = %262, %256
  %.not214 = icmp eq i32 %2, 13
  br i1 %.not214, label %275, label %265

265:                                              ; preds = %264
  %266 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !25
  %267 = icmp sgt i32 %266, 2
  br i1 %267, label %268, label %274

268:                                              ; preds = %265
  %269 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  %270 = getelementptr inbounds i8, ptr %0, i64 108
  %271 = load i32, ptr %270, align 4, !tbaa !15
  %272 = getelementptr inbounds i8, ptr %1, i64 108
  %273 = load i32, ptr %272, align 4, !tbaa !15
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %269, i32 noundef 3076, ptr noundef nonnull @.str.168, i32 noundef %271, i32 noundef %273) #2
  br label %274

274:                                              ; preds = %268, %265
  tail call void @qh_test_redundant_neighbors(ptr noundef nonnull %1)
  tail call void @qh_test_degen_neighbors(ptr noundef %0)
  tail call void @qh_degen_redundant_facet(ptr noundef nonnull %1)
  tail call void @qh_maybe_duplicateridges(ptr noundef nonnull %1)
  br label %275

275:                                              ; preds = %274, %264
  tail call void @qh_willdelete(ptr noundef %0, ptr noundef nonnull %1)
  ret void
}

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

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

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

declare void @qh_vertexneighbors() local_unnamed_addr #0

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

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

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

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

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

declare double @qh_vertex_bestdist(ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

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

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

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


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