; LLVM IR from Discngine/fpocket :: src/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, double, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, double, i32, double, i32, 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, i32, double, double, double, 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, i32, ptr, double, double, double, double, [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, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, ptr, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, 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 { [227 x %union.intrealT], [237 x i8], [227 x ptr], [227 x i16], [227 x i8], [227 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 }

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.78 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [151 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [36 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: nounwind uwtable
declare dso_local void @qh_degen_redundant_neighbors(ptr noundef, ptr noundef) #2

; 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_removefacet(ptr noundef) #1

declare void @qh_appendfacet(ptr noundef) #1

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

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

24:                                               ; preds = %5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.facetT, ptr %25, i32 0, i32 15
  %27 = load i32, ptr %26, align 8
  %28 = lshr i32 %27, 9
  %29 = and i32 %28, 1
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %57

31:                                               ; preds = %24, %5
  %32 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !11
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %38, label %34

34:                                               ; preds = %31
  %35 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %35, i32 noundef 6226, ptr noundef @.str.78)
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 5, ptr noundef %36, ptr noundef %37)
  br label %38

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

45:                                               ; preds = %38
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.facetT, ptr %46, i32 0, i32 15
  %48 = load i32, ptr %47, align 8
  %49 = and i32 %48, -513
  %50 = or i32 %49, 0
  store i32 %50, ptr %47, align 8
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.facetT, ptr %51, i32 0, i32 15
  %53 = load i32, ptr %52, align 8
  %54 = and i32 %53, -268435457
  %55 = or i32 %54, 0
  store i32 %55, ptr %52, align 8
  br label %56

56:                                               ; preds = %45, %38
  br label %57

57:                                               ; preds = %56, %24
  %58 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 199), align 8, !tbaa !16
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 199), align 8, !tbaa !16
  %60 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 73), align 8, !tbaa !17
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %73

62:                                               ; preds = %57
  %63 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 195), align 8, !tbaa !18
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %73

65:                                               ; preds = %62
  %66 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 199), align 8, !tbaa !16
  %67 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 224), align 4, !tbaa !19
  %68 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 73), align 8, !tbaa !17
  %69 = add nsw i32 %67, %68
  %70 = icmp sgt i32 %66, %69
  br i1 %70, label %71, label %72

71:                                               ; preds = %65
  call void @qh_tracemerging()
  br label %72

72:                                               ; preds = %71, %65
  br label %73

73:                                               ; preds = %72, %62, %57
  %74 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 178), align 4, !tbaa !20
  %75 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 74), align 4, !tbaa !21
  %76 = icmp sge i32 %74, %75
  br i1 %76, label %77, label %133

77:                                               ; preds = %73
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %117

80:                                               ; preds = %77
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = load double, ptr %81, align 8, !tbaa !22
  %83 = fneg double %82
  %84 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 89), align 8, !tbaa !23
  %85 = fcmp ogt double %83, %84
  br i1 %85, label %91, label %86

86:                                               ; preds = %80
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load double, ptr %87, align 8, !tbaa !22
  %89 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 89), align 8, !tbaa !23
  %90 = fcmp ogt double %88, %89
  br i1 %90, label %91, label %117

91:                                               ; preds = %86, %80
  store i32 0, ptr %14, align 4, !tbaa !9
  %92 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 86), align 4, !tbaa !24
  store i32 %92, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !25
  store i32 1, ptr %11, align 4, !tbaa !9
  %93 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %94 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 199), align 8, !tbaa !16
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = load double, ptr %95, align 8, !tbaa !22
  %97 = fneg double %96
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = load double, ptr %98, align 8, !tbaa !22
  %100 = fcmp olt double %97, %99
  br i1 %100, label %101, label %104

101:                                              ; preds = %91
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load double, ptr %102, align 8, !tbaa !22
  br label %108

104:                                              ; preds = %91
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = load double, ptr %105, align 8, !tbaa !22
  %107 = fneg double %106
  br label %108

108:                                              ; preds = %104, %101
  %109 = phi double [ %103, %101 ], [ %107, %104 ]
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.facetT, ptr %110, i32 0, i32 14
  %112 = load i32, ptr %111, align 4, !tbaa !26
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.facetT, ptr %113, i32 0, i32 14
  %115 = load i32, ptr %114, align 4, !tbaa !26
  %116 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 180), align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %93, i32 noundef 8075, ptr noundef @.str.79, i32 noundef %94, double noundef %109, i32 noundef %112, i32 noundef %115, i32 noundef %116)
  br label %132

117:                                              ; preds = %86, %77
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !29
  %120 = icmp eq ptr %118, %119
  br i1 %120, label %125, label %121

121:                                              ; preds = %117
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !29
  %124 = icmp eq ptr %122, %123
  br i1 %124, label %125, label %131

125:                                              ; preds = %121, %117
  %126 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !25
  store i32 %126, ptr %14, align 4, !tbaa !9
  store i32 4, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !25
  store i32 1, ptr %11, align 4, !tbaa !9
  %127 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %128 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 199), align 8, !tbaa !16
  %129 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 162), align 4, !tbaa !30
  %130 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 180), align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %127, i32 noundef 8076, ptr noundef @.str.80, i32 noundef %128, i32 noundef %129, i32 noundef %130)
  br label %131

131:                                              ; preds = %125, %121
  br label %132

132:                                              ; preds = %131, %108
  br label %133

133:                                              ; preds = %132, %73
  %134 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !25
  %135 = icmp sge i32 %134, 2
  br i1 %135, label %136, label %155

136:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store double -2.000000e+00, ptr %16, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  store double -2.000000e+00, ptr %17, align 8, !tbaa !22
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = icmp ne ptr %137, null
  br i1 %138, label %139, label %144

139:                                              ; preds = %136
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = load double, ptr %140, align 8, !tbaa !22
  store double %141, ptr %16, align 8, !tbaa !22
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = load double, ptr %142, align 8, !tbaa !22
  store double %143, ptr %17, align 8, !tbaa !22
  br label %144

144:                                              ; preds = %139, %136
  %145 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %146 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 199), align 8, !tbaa !16
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.facetT, ptr %147, i32 0, i32 14
  %149 = load i32, ptr %148, align 4, !tbaa !26
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.facetT, ptr %150, i32 0, i32 14
  %152 = load i32, ptr %151, align 4, !tbaa !26
  %153 = load double, ptr %16, align 8, !tbaa !22
  %154 = load double, ptr %17, align 8, !tbaa !22
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %145, i32 noundef 8077, ptr noundef @.str.81, i32 noundef %146, i32 noundef %149, i32 noundef %152, double noundef %153, double noundef %154)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %155

155:                                              ; preds = %144, %133
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = icmp eq ptr %156, %157
  br i1 %158, label %173, label %159

159:                                              ; preds = %155
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.facetT, ptr %160, i32 0, i32 15
  %162 = load i32, ptr %161, align 8
  %163 = lshr i32 %162, 11
  %164 = and i32 %163, 1
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %173, label %166

166:                                              ; preds = %159
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.facetT, ptr %167, i32 0, i32 15
  %169 = load i32, ptr %168, align 8
  %170 = lshr i32 %169, 11
  %171 = and i32 %170, 1
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %183

173:                                              ; preds = %166, %159, %155
  %174 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.facetT, ptr %175, i32 0, i32 14
  %177 = load i32, ptr %176, align 4, !tbaa !26
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.facetT, ptr %178, i32 0, i32 14
  %180 = load i32, ptr %179, align 4, !tbaa !26
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %174, i32 noundef 6099, ptr noundef @.str.82, i32 noundef %177, i32 noundef %180)
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 5, ptr noundef %181, ptr noundef %182)
  br label %183

183:                                              ; preds = %173, %166
  %184 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 169), align 8, !tbaa !31
  %185 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 161), align 8, !tbaa !32
  %186 = sub nsw i32 %184, %185
  %187 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !33
  %188 = add nsw i32 %187, 1
  %189 = icmp sle i32 %186, %188
  br i1 %189, label %190, label %202

190:                                              ; preds = %183
  %191 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %192 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !33
  %193 = add nsw i32 %192, 1
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %191, i32 noundef 6227, ptr noundef @.str.83, i32 noundef %193)
  %194 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !33
  %195 = icmp sge i32 %194, 5
  br i1 %195, label %196, label %201

196:                                              ; preds = %190
  %197 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 31), align 8, !tbaa !34
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %201, label %199

199:                                              ; preds = %196
  %200 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %200, i32 noundef 8079, ptr noundef @.str.84)
  br label %201

201:                                              ; preds = %199, %196, %190
  call void @qh_errexit(i32 noundef 3, ptr noundef null, ptr noundef null)
  br label %202

202:                                              ; preds = %201, %183
  %203 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 119), align 8, !tbaa !35
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %206, label %205

205:                                              ; preds = %202
  call void @qh_vertexneighbors()
  br label %206

206:                                              ; preds = %205, %202
  %207 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_makeridges(ptr noundef %207)
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_makeridges(ptr noundef %208)
  %209 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !25
  %210 = icmp sge i32 %209, 4
  br i1 %210, label %211, label %214

211:                                              ; preds = %206
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_errprint(ptr noundef @.str.85, ptr noundef %212, ptr noundef %213, ptr noundef null, ptr noundef null)
  br label %214

214:                                              ; preds = %211, %206
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = icmp ne ptr %215, null
  br i1 %216, label %217, label %280

217:                                              ; preds = %214
  %218 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 186), align 8, !tbaa !36
  %219 = load ptr, ptr %9, align 8, !tbaa !5
  %220 = load double, ptr %219, align 8, !tbaa !22
  %221 = fcmp olt double %218, %220
  br i1 %221, label %222, label %225

222:                                              ; preds = %217
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = load double, ptr %223, align 8, !tbaa !22
  store double %224, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 186), align 8, !tbaa !36
  br label %225

225:                                              ; preds = %222, %217
  %226 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 187), align 8, !tbaa !37
  %227 = load ptr, ptr %9, align 8, !tbaa !5
  %228 = load double, ptr %227, align 8, !tbaa !22
  %229 = fcmp olt double %226, %228
  br i1 %229, label %230, label %233

230:                                              ; preds = %225
  %231 = load ptr, ptr %9, align 8, !tbaa !5
  %232 = load double, ptr %231, align 8, !tbaa !22
  store double %232, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 187), align 8, !tbaa !37
  br label %233

233:                                              ; preds = %230, %225
  %234 = load ptr, ptr %7, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.facetT, ptr %234, i32 0, i32 1
  %236 = load double, ptr %235, align 8, !tbaa !38
  %237 = load ptr, ptr %9, align 8, !tbaa !5
  %238 = load double, ptr %237, align 8, !tbaa !22
  %239 = fcmp olt double %236, %238
  br i1 %239, label %240, label %245

240:                                              ; preds = %233
  %241 = load ptr, ptr %9, align 8, !tbaa !5
  %242 = load double, ptr %241, align 8, !tbaa !22
  %243 = load ptr, ptr %7, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.facetT, ptr %243, i32 0, i32 1
  store double %242, ptr %244, align 8, !tbaa !38
  br label %245

245:                                              ; preds = %240, %233
  %246 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 188), align 8, !tbaa !39
  %247 = load ptr, ptr %8, align 8, !tbaa !5
  %248 = load double, ptr %247, align 8, !tbaa !22
  %249 = fcmp ogt double %246, %248
  br i1 %249, label %250, label %253

250:                                              ; preds = %245
  %251 = load ptr, ptr %8, align 8, !tbaa !5
  %252 = load double, ptr %251, align 8, !tbaa !22
  store double %252, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 188), align 8, !tbaa !39
  br label %253

253:                                              ; preds = %250, %245
  %254 = load ptr, ptr %7, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.facetT, ptr %254, i32 0, i32 15
  %256 = load i32, ptr %255, align 8
  %257 = lshr i32 %256, 28
  %258 = and i32 %257, 1
  %259 = icmp ne i32 %258, 0
  br i1 %259, label %279, label %260

260:                                              ; preds = %253
  %261 = load ptr, ptr %9, align 8, !tbaa !5
  %262 = load double, ptr %261, align 8, !tbaa !22
  %263 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 143), align 8, !tbaa !40
  %264 = fcmp ogt double %262, %263
  br i1 %264, label %271, label %265

265:                                              ; preds = %260
  %266 = load ptr, ptr %8, align 8, !tbaa !5
  %267 = load double, ptr %266, align 8, !tbaa !22
  %268 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 143), align 8, !tbaa !40
  %269 = fneg double %268
  %270 = fcmp olt double %267, %269
  br i1 %270, label %271, label %279

271:                                              ; preds = %265, %260
  %272 = load ptr, ptr %7, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.facetT, ptr %272, i32 0, i32 15
  %274 = load i32, ptr %273, align 8
  %275 = and i32 %274, -268435457
  %276 = or i32 %275, 268435456
  store i32 %276, ptr %273, align 8
  %277 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 225), align 8, !tbaa !16
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 225), align 8, !tbaa !16
  br label %279

279:                                              ; preds = %271, %265, %253
  br label %280

280:                                              ; preds = %279, %214
  %281 = load ptr, ptr %6, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.facetT, ptr %281, i32 0, i32 15
  %283 = load i32, ptr %282, align 8
  %284 = and i32 %283, 511
  %285 = load ptr, ptr %7, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.facetT, ptr %285, i32 0, i32 15
  %287 = load i32, ptr %286, align 8
  %288 = and i32 %287, 511
  %289 = add nsw i32 %284, %288
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %15, align 4, !tbaa !9
  %291 = load i32, ptr %15, align 4, !tbaa !9
  %292 = icmp sge i32 %291, 511
  br i1 %292, label %293, label %299

293:                                              ; preds = %280
  %294 = load ptr, ptr %7, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.facetT, ptr %294, i32 0, i32 15
  %296 = load i32, ptr %295, align 8
  %297 = and i32 %296, -512
  %298 = or i32 %297, 511
  store i32 %298, ptr %295, align 8
  br label %309

299:                                              ; preds = %280
  %300 = load i32, ptr %15, align 4, !tbaa !9
  %301 = trunc i32 %300 to i16
  %302 = zext i16 %301 to i32
  %303 = load ptr, ptr %7, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.facetT, ptr %303, i32 0, i32 15
  %305 = load i32, ptr %304, align 8
  %306 = and i32 %302, 511
  %307 = and i32 %305, -512
  %308 = or i32 %307, %306
  store i32 %308, ptr %304, align 8
  br label %309

309:                                              ; preds = %299, %293
  %310 = load ptr, ptr %7, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.facetT, ptr %310, i32 0, i32 15
  %312 = load i32, ptr %311, align 8
  %313 = and i32 %312, -536870913
  %314 = or i32 %313, 536870912
  store i32 %314, ptr %311, align 8
  %315 = load ptr, ptr %7, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.facetT, ptr %315, i32 0, i32 15
  %317 = load i32, ptr %316, align 8
  %318 = and i32 %317, -2097153
  %319 = or i32 %318, 0
  store i32 %319, ptr %316, align 8
  %320 = load ptr, ptr %6, align 8, !tbaa !5
  %321 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_updatetested(ptr noundef %320, ptr noundef %321)
  %322 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !33
  %323 = icmp sgt i32 %322, 2
  br i1 %323, label %324, label %335

324:                                              ; preds = %309
  %325 = load ptr, ptr %6, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.facetT, ptr %325, i32 0, i32 8
  %327 = load ptr, ptr %326, align 8, !tbaa !41
  %328 = call i32 @qh_setsize(ptr noundef %327)
  %329 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !33
  %330 = icmp eq i32 %328, %329
  br i1 %330, label %331, label %335

331:                                              ; preds = %324
  %332 = load ptr, ptr %6, align 8, !tbaa !5
  %333 = load ptr, ptr %7, align 8, !tbaa !5
  %334 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_mergesimplex(ptr noundef %332, ptr noundef %333, i32 noundef %334)
  br label %388

335:                                              ; preds = %324, %309
  %336 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !42
  %337 = add i32 %336, 1
  store i32 %337, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !42
  store ptr null, ptr %12, align 8, !tbaa !5
  %338 = load ptr, ptr %7, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.facetT, ptr %338, i32 0, i32 8
  %340 = load ptr, ptr %339, align 8, !tbaa !41
  %341 = icmp ne ptr %340, null
  br i1 %341, label %342, label %358

342:                                              ; preds = %335
  %343 = load ptr, ptr %7, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.facetT, ptr %343, i32 0, i32 8
  %345 = load ptr, ptr %344, align 8, !tbaa !41
  %346 = getelementptr inbounds %struct.setT, ptr %345, i32 0, i32 1
  %347 = getelementptr inbounds [1 x %union.setelemT], ptr %346, i64 0, i64 0
  store ptr %347, ptr %13, align 8, !tbaa !5
  br label %348

348:                                              ; preds = %353, %342
  %349 = load ptr, ptr %13, align 8, !tbaa !5
  %350 = getelementptr inbounds ptr, ptr %349, i32 1
  store ptr %350, ptr %13, align 8, !tbaa !5
  %351 = load ptr, ptr %349, align 8, !tbaa !5
  store ptr %351, ptr %12, align 8, !tbaa !5
  %352 = icmp ne ptr %351, null
  br i1 %352, label %353, label %357

353:                                              ; preds = %348
  %354 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !42
  %355 = load ptr, ptr %12, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.vertexT, ptr %355, i32 0, i32 5
  store i32 %354, ptr %356, align 4, !tbaa !43
  br label %348, !llvm.loop !45

357:                                              ; preds = %348
  br label %358

358:                                              ; preds = %357, %335
  %359 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !33
  %360 = icmp eq i32 %359, 2
  br i1 %360, label %361, label %364

361:                                              ; preds = %358
  %362 = load ptr, ptr %6, align 8, !tbaa !5
  %363 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_mergefacet2d(ptr noundef %362, ptr noundef %363)
  br label %372

364:                                              ; preds = %358
  %365 = load ptr, ptr %6, align 8, !tbaa !5
  %366 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_mergeneighbors(ptr noundef %365, ptr noundef %366)
  %367 = load ptr, ptr %6, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.facetT, ptr %367, i32 0, i32 8
  %369 = load ptr, ptr %368, align 8, !tbaa !41
  %370 = load ptr, ptr %7, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.facetT, ptr %370, i32 0, i32 8
  call void @qh_mergevertices(ptr noundef %369, ptr noundef %371)
  br label %372

372:                                              ; preds = %364, %361
  %373 = load ptr, ptr %6, align 8, !tbaa !5
  %374 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_mergeridges(ptr noundef %373, ptr noundef %374)
  %375 = load ptr, ptr %6, align 8, !tbaa !5
  %376 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_mergevertex_neighbors(ptr noundef %375, ptr noundef %376)
  %377 = load ptr, ptr %7, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.facetT, ptr %377, i32 0, i32 15
  %379 = load i32, ptr %378, align 8
  %380 = lshr i32 %379, 10
  %381 = and i32 %380, 1
  %382 = icmp ne i32 %381, 0
  br i1 %382, label %387, label %383

383:                                              ; preds = %372
  %384 = load ptr, ptr %7, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct.facetT, ptr %384, i32 0, i32 8
  %386 = load ptr, ptr %385, align 8, !tbaa !41
  call void @qh_newvertices(ptr noundef %386)
  br label %387

387:                                              ; preds = %383, %372
  br label %388

388:                                              ; preds = %387, %331
  %389 = load i32, ptr %10, align 4, !tbaa !9
  %390 = icmp ne i32 %389, 0
  br i1 %390, label %394, label %391

391:                                              ; preds = %388
  %392 = load ptr, ptr %7, align 8, !tbaa !5
  %393 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_degen_redundant_neighbors(ptr noundef %392, ptr noundef %393)
  br label %394

394:                                              ; preds = %391, %388
  %395 = load ptr, ptr %7, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.facetT, ptr %395, i32 0, i32 15
  %397 = load i32, ptr %396, align 8
  %398 = lshr i32 %397, 24
  %399 = and i32 %398, 1
  %400 = icmp ne i32 %399, 0
  br i1 %400, label %408, label %401

401:                                              ; preds = %394
  %402 = load ptr, ptr %7, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.facetT, ptr %402, i32 0, i32 15
  %404 = load i32, ptr %403, align 8
  %405 = lshr i32 %404, 10
  %406 = and i32 %405, 1
  %407 = icmp ne i32 %406, 0
  br i1 %407, label %411, label %408

408:                                              ; preds = %401, %394
  %409 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 126), align 8, !tbaa !16
  %410 = add nsw i32 %409, 1
  store i32 %410, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 126), align 8, !tbaa !16
  br label %432

411:                                              ; preds = %401
  %412 = load ptr, ptr %6, align 8, !tbaa !5
  %413 = getelementptr inbounds %struct.facetT, ptr %412, i32 0, i32 15
  %414 = load i32, ptr %413, align 8
  %415 = lshr i32 %414, 10
  %416 = and i32 %415, 1
  %417 = icmp ne i32 %416, 0
  br i1 %417, label %428, label %418

418:                                              ; preds = %411
  %419 = load ptr, ptr %7, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.facetT, ptr %419, i32 0, i32 15
  %421 = load i32, ptr %420, align 8
  %422 = lshr i32 %421, 10
  %423 = and i32 %422, 1
  %424 = icmp ne i32 %423, 0
  br i1 %424, label %425, label %428

425:                                              ; preds = %418
  %426 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 122), align 8, !tbaa !16
  %427 = add nsw i32 %426, 1
  store i32 %427, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 122), align 8, !tbaa !16
  br label %431

428:                                              ; preds = %418, %411
  %429 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 127), align 8, !tbaa !16
  %430 = add nsw i32 %429, 1
  store i32 %430, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 127), align 8, !tbaa !16
  br label %431

431:                                              ; preds = %428, %425
  br label %432

432:                                              ; preds = %431, %408
  %433 = load ptr, ptr %6, align 8, !tbaa !5
  %434 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_willdelete(ptr noundef %433, ptr noundef %434)
  %435 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_removefacet(ptr noundef %435)
  %436 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_appendfacet(ptr noundef %436)
  %437 = load ptr, ptr %7, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.facetT, ptr %437, i32 0, i32 15
  %439 = load i32, ptr %438, align 8
  %440 = and i32 %439, -1025
  %441 = or i32 %440, 1024
  store i32 %441, ptr %438, align 8
  %442 = load ptr, ptr %7, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.facetT, ptr %442, i32 0, i32 15
  %444 = load i32, ptr %443, align 8
  %445 = and i32 %444, -134217729
  %446 = or i32 %445, 0
  store i32 %446, ptr %443, align 8
  %447 = load ptr, ptr %6, align 8, !tbaa !5
  %448 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_tracemerge(ptr noundef %447, ptr noundef %448)
  %449 = load i32, ptr %11, align 4, !tbaa !9
  %450 = icmp ne i32 %449, 0
  br i1 %450, label %451, label %454

451:                                              ; preds = %432
  %452 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %452, i32 noundef 8080, ptr noundef @.str.86)
  %453 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %453, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !25
  br label %454

454:                                              ; preds = %451, %432
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #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_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) #2

; 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

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 560}
!12 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !13, i64 56, !13, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !6, i64 96, !10, i64 104, !10, i64 108, !6, i64 112, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !13, i64 152, !13, i64 160, !10, i64 168, !10, i64 172, !10, i64 176, !13, i64 184, !13, i64 192, !10, i64 200, !13, i64 208, !10, i64 216, !10, i64 220, !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, !7, i64 296, !10, i64 412, !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, !13, i64 544, !10, i64 552, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !13, i64 584, !10, i64 592, !6, i64 600, !6, i64 608, !10, i64 616, !10, i64 620, !10, i64 624, !10, i64 628, !10, i64 632, !6, i64 640, !10, i64 648, !6, i64 656, !10, i64 664, !7, i64 668, !10, i64 924, !7, i64 928, !7, i64 1184, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !10, i64 1716, !6, i64 1720, !6, i64 1728, !6, i64 1736, !6, i64 1744, !13, 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, !10, i64 1856, !6, i64 1864, !13, i64 1872, !13, i64 1880, !13, i64 1888, !13, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 2112, !7, i64 2152, !7, i64 2352, !6, i64 2392, !6, i64 2400, !6, i64 2408, !6, i64 2416, !10, i64 2424, !10, i64 2428, !10, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !10, i64 2480, !10, i64 2484, !6, i64 2488, !10, i64 2496, !6, i64 2504, !6, i64 2512, !6, i64 2520, !6, i64 2528, !10, i64 2536, !10, i64 2540, !10, i64 2544, !10, i64 2548, !10, i64 2552, !10, i64 2556, !10, i64 2560, !14, i64 2568, !10, i64 2576, !10, i64 2580, !10, i64 2584, !10, i64 2588, !6, i64 2592, !10, i64 2600, !10, i64 2604, !13, i64 2608, !10, i64 2616, !13, i64 2624, !13, i64 2632, !13, i64 2640, !10, i64 2648, !10, i64 2652, !10, i64 2656, !10, i64 2660, !13, i64 2664, !13, i64 2672, !10, i64 2680, !10, i64 2684, !10, i64 2688, !10, i64 2692, !13, i64 2696, !13, i64 2704, !10, i64 2712, !10, i64 2716, !10, i64 2720, !10, i64 2724, !6, i64 2728, !6, i64 2736, !6, i64 2744, !6, i64 2752, !6, i64 2760, !6, i64 2768, !6, i64 2776, !6, i64 2784, !10, i64 2792, !6, i64 2800, !6, i64 2808, !10, i64 2816, !10, i64 2820, !10, i64 2824, !6, i64 2832, !13, i64 2840, !13, i64 2848, !13, i64 2856, !10, i64 2864, !10, i64 2868, !6, i64 2872, !6, i64 2880, !10, i64 2888}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !6, i64 2408}
!16 = !{!7, !7, i64 0}
!17 = !{!12, !10, i64 480}
!18 = !{!12, !10, i64 2680}
!19 = !{!12, !10, i64 2868}
!20 = !{!12, !10, i64 2580}
!21 = !{!12, !10, i64 484}
!22 = !{!13, !13, i64 0}
!23 = !{!12, !13, i64 544}
!24 = !{!12, !10, i64 532}
!25 = !{!12, !10, i64 128}
!26 = !{!27, !10, i64 108}
!27 = !{!"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}
!28 = !{!12, !10, i64 2588}
!29 = !{!12, !6, i64 2488}
!30 = !{!12, !10, i64 2484}
!31 = !{!12, !10, i64 2536}
!32 = !{!12, !10, i64 2480}
!33 = !{!12, !10, i64 624}
!34 = !{!12, !10, i64 168}
!35 = !{!12, !10, i64 1712}
!36 = !{!12, !13, i64 2624}
!37 = !{!12, !13, i64 2632}
!38 = !{!27, !13, i64 8}
!39 = !{!12, !13, i64 2640}
!40 = !{!12, !13, i64 1896}
!41 = !{!27, !6, i64 64}
!42 = !{!12, !10, i64 2716}
!43 = !{!44, !10, i64 36}
!44 = !{!"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}
!45 = distinct !{!45, !46}
!46 = !{!"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, double, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, double, i32, double, i32, 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, i32, double, double, double, 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, i32, ptr, double, double, double, double, [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, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, ptr, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, 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 { [227 x %union.intrealT], [237 x i8], [227 x ptr], [227 x i16], [227 x i8], [227 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.78 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [151 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [36 x i8], align 1

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

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

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_removefacet(ptr noundef) local_unnamed_addr #0

declare void @qh_appendfacet(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_mergefacet(ptr noundef %0, ptr noundef %1, ptr noundef readonly %2, ptr nocapture noundef readonly %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = getelementptr inbounds i8, ptr %0, i64 112
  %7 = load i32, ptr %6, align 8
  %8 = and i32 %7, 512
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %9, label %13

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %1, i64 112
  %11 = load i32, ptr %10, align 8
  %12 = and i32 %11, 512
  %.not121 = icmp eq i32 %12, 0
  br i1 %.not121, label %23, label %13

13:                                               ; preds = %9, %5
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 560), align 8, !tbaa !5
  %.not122 = icmp eq i32 %14, 0
  br i1 %.not122, label %15, label %17

15:                                               ; preds = %13
  %16 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %16, i32 noundef 6226, ptr noundef nonnull @.str.78) #2
  tail call void @qh_errexit2(i32 noundef 5, ptr noundef nonnull %0, ptr noundef %1) #2
  br label %17

17:                                               ; preds = %15, %13
  %18 = getelementptr inbounds i8, ptr %1, i64 112
  %19 = load i32, ptr %18, align 8
  %20 = and i32 %19, 512
  %.not123 = icmp eq i32 %20, 0
  br i1 %.not123, label %23, label %21

21:                                               ; preds = %17
  %22 = and i32 %19, -268435969
  store i32 %22, ptr %18, align 8
  br label %23

23:                                               ; preds = %17, %21, %9
  %24 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1592), align 8, !tbaa !14
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1592), align 8, !tbaa !14
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 480), align 8, !tbaa !15
  %27 = icmp ne i32 %26, 0
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2680), align 8
  %29 = icmp ne i32 %28, 0
  %or.cond = select i1 %27, i1 %29, i1 false
  br i1 %or.cond, label %30, label %34

30:                                               ; preds = %23
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2868), align 4, !tbaa !16
  %32 = add nsw i32 %31, %26
  %.not124 = icmp slt i32 %24, %32
  br i1 %.not124, label %34, label %33

33:                                               ; preds = %30
  tail call void @qh_tracemerging()
  br label %34

34:                                               ; preds = %30, %33, %23
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2580), align 4, !tbaa !17
  %36 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 484), align 4, !tbaa !18
  %.not125 = icmp slt i32 %35, %36
  br i1 %.not125, label %64, label %37

37:                                               ; preds = %34
  %.not126 = icmp eq ptr %2, null
  br i1 %.not126, label %54, label %38

38:                                               ; preds = %37
  %39 = load double, ptr %2, align 8, !tbaa !19
  %40 = fneg double %39
  %41 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 544), align 8, !tbaa !20
  %42 = fcmp olt double %41, %40
  %.pre = load double, ptr %3, align 8, !tbaa !19
  %43 = fcmp ogt double %.pre, %41
  %or.cond149 = select i1 %42, i1 true, i1 %43
  br i1 %or.cond149, label %44, label %54

44:                                               ; preds = %38
  %45 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 532), align 4, !tbaa !21
  store i32 %45, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !22
  %46 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1592), align 8, !tbaa !14
  %48 = fcmp ogt double %.pre, %40
  %. = select i1 %48, double %.pre, double %40
  %49 = getelementptr inbounds i8, ptr %0, i64 108
  %50 = load i32, ptr %49, align 4, !tbaa !23
  %51 = getelementptr inbounds i8, ptr %1, i64 108
  %52 = load i32, ptr %51, align 4, !tbaa !23
  %53 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2588), align 4, !tbaa !25
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %46, i32 noundef 8075, ptr noundef nonnull @.str.79, i32 noundef %47, double noundef %., i32 noundef %50, i32 noundef %52, i32 noundef %53) #2
  br label %64

54:                                               ; preds = %38, %37
  %55 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2488), align 8, !tbaa !26
  %56 = icmp eq ptr %55, %0
  %57 = icmp eq ptr %55, %1
  %or.cond142 = or i1 %56, %57
  br i1 %or.cond142, label %58, label %64

58:                                               ; preds = %54
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !22
  store i32 4, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !22
  %60 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1592), align 8, !tbaa !14
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2484), align 4, !tbaa !27
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2588), align 4, !tbaa !25
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %60, i32 noundef 8076, ptr noundef nonnull @.str.80, i32 noundef %61, i32 noundef %62, i32 noundef %63) #2
  br label %64

64:                                               ; preds = %54, %44, %58, %34
  %.0103 = phi i32 [ 0, %44 ], [ %59, %58 ], [ 0, %34 ], [ 0, %54 ]
  %.not141 = phi i1 [ false, %44 ], [ false, %58 ], [ true, %34 ], [ true, %54 ]
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !22
  %66 = icmp sgt i32 %65, 1
  br i1 %66, label %67, label %78

67:                                               ; preds = %64
  %.not127 = icmp eq ptr %2, null
  br i1 %.not127, label %71, label %68

68:                                               ; preds = %67
  %69 = load double, ptr %2, align 8, !tbaa !19
  %70 = load double, ptr %3, align 8, !tbaa !19
  br label %71

71:                                               ; preds = %68, %67
  %.0101 = phi double [ %69, %68 ], [ -2.000000e+00, %67 ]
  %.0 = phi double [ %70, %68 ], [ -2.000000e+00, %67 ]
  %72 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  %73 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1592), align 8, !tbaa !14
  %74 = getelementptr inbounds i8, ptr %0, i64 108
  %75 = load i32, ptr %74, align 4, !tbaa !23
  %76 = getelementptr inbounds i8, ptr %1, i64 108
  %77 = load i32, ptr %76, align 4, !tbaa !23
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %72, i32 noundef 8077, ptr noundef nonnull @.str.81, i32 noundef %73, i32 noundef %75, i32 noundef %77, double noundef %.0101, double noundef %.0) #2
  br label %78

78:                                               ; preds = %71, %64
  %79 = icmp eq ptr %0, %1
  br i1 %79, label %87, label %80

80:                                               ; preds = %78
  %81 = load i32, ptr %6, align 8
  %82 = and i32 %81, 2048
  %.not128 = icmp eq i32 %82, 0
  br i1 %.not128, label %83, label %87

83:                                               ; preds = %80
  %84 = getelementptr inbounds i8, ptr %1, i64 112
  %85 = load i32, ptr %84, align 8
  %86 = and i32 %85, 2048
  %.not129 = icmp eq i32 %86, 0
  br i1 %.not129, label %93, label %87

87:                                               ; preds = %83, %80, %78
  %88 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  %89 = getelementptr inbounds i8, ptr %0, i64 108
  %90 = load i32, ptr %89, align 4, !tbaa !23
  %91 = getelementptr inbounds i8, ptr %1, i64 108
  %92 = load i32, ptr %91, align 4, !tbaa !23
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %88, i32 noundef 6099, ptr noundef nonnull @.str.82, i32 noundef %90, i32 noundef %92) #2
  tail call void @qh_errexit2(i32 noundef 5, ptr noundef nonnull %0, ptr noundef nonnull %1) #2
  br label %93

93:                                               ; preds = %87, %83
  %94 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2536), align 8, !tbaa !28
  %95 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !29
  %96 = sub nsw i32 %94, %95
  %97 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !30
  %98 = add nsw i32 %97, 1
  %.not130 = icmp sgt i32 %96, %98
  br i1 %.not130, label %108, label %99

99:                                               ; preds = %93
  %100 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %100, i32 noundef 6227, ptr noundef nonnull @.str.83, i32 noundef %98) #2
  %101 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !30
  %102 = icmp slt i32 %101, 5
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 168), align 8
  %104 = icmp ne i32 %103, 0
  %or.cond3 = select i1 %102, i1 true, i1 %104
  br i1 %or.cond3, label %107, label %105

105:                                              ; preds = %99
  %106 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %106, i32 noundef 8079, ptr noundef nonnull @.str.84) #2
  br label %107

107:                                              ; preds = %105, %99
  tail call void @qh_errexit(i32 noundef 3, ptr noundef null, ptr noundef null) #2
  br label %108

108:                                              ; preds = %107, %93
  %109 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1712), align 8, !tbaa !31
  %.not131 = icmp eq i32 %109, 0
  br i1 %.not131, label %110, label %111

110:                                              ; preds = %108
  tail call void @qh_vertexneighbors() #2
  br label %111

111:                                              ; preds = %110, %108
  tail call void @qh_makeridges(ptr noundef nonnull %0)
  tail call void @qh_makeridges(ptr noundef nonnull %1)
  %112 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !22
  %113 = icmp sgt i32 %112, 3
  br i1 %113, label %114, label %115

114:                                              ; preds = %111
  tail call void @qh_errprint(ptr noundef nonnull @.str.85, ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef null, ptr noundef null) #2
  br label %115

115:                                              ; preds = %114, %111
  %.not132 = icmp eq ptr %2, null
  br i1 %.not132, label %153, label %116

116:                                              ; preds = %115
  %117 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2624), align 8, !tbaa !32
  %118 = load double, ptr %3, align 8, !tbaa !19
  %119 = fcmp olt double %117, %118
  br i1 %119, label %120, label %121

120:                                              ; preds = %116
  store double %118, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2624), align 8, !tbaa !32
  %.pre147 = load double, ptr %3, align 8, !tbaa !19
  br label %121

121:                                              ; preds = %120, %116
  %122 = phi double [ %.pre147, %120 ], [ %118, %116 ]
  %123 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2632), align 8, !tbaa !33
  %124 = fcmp olt double %123, %122
  br i1 %124, label %125, label %126

125:                                              ; preds = %121
  store double %122, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2632), align 8, !tbaa !33
  %.pre148 = load double, ptr %3, align 8, !tbaa !19
  br label %126

126:                                              ; preds = %125, %121
  %127 = phi double [ %.pre148, %125 ], [ %122, %121 ]
  %128 = getelementptr inbounds i8, ptr %1, i64 8
  %129 = load double, ptr %128, align 8, !tbaa !34
  %130 = fcmp olt double %129, %127
  br i1 %130, label %131, label %132

131:                                              ; preds = %126
  store double %127, ptr %128, align 8, !tbaa !34
  br label %132

132:                                              ; preds = %131, %126
  %133 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2640), align 8, !tbaa !35
  %134 = load double, ptr %2, align 8, !tbaa !19
  %135 = fcmp ogt double %133, %134
  br i1 %135, label %136, label %137

136:                                              ; preds = %132
  store double %134, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2640), align 8, !tbaa !35
  br label %137

137:                                              ; preds = %136, %132
  %138 = getelementptr inbounds i8, ptr %1, i64 112
  %139 = load i32, ptr %138, align 8
  %140 = and i32 %139, 268435456
  %.not133 = icmp eq i32 %140, 0
  br i1 %.not133, label %141, label %153

141:                                              ; preds = %137
  %142 = load double, ptr %3, align 8, !tbaa !19
  %143 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1896), align 8, !tbaa !36
  %144 = fcmp ogt double %142, %143
  br i1 %144, label %149, label %145

145:                                              ; preds = %141
  %146 = load double, ptr %2, align 8, !tbaa !19
  %147 = fneg double %143
  %148 = fcmp olt double %146, %147
  br i1 %148, label %149, label %153

149:                                              ; preds = %145, %141
  %150 = or disjoint i32 %139, 268435456
  store i32 %150, ptr %138, align 8
  %151 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1800), align 8, !tbaa !14
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1800), align 8, !tbaa !14
  br label %153

153:                                              ; preds = %137, %145, %149, %115
  %154 = load i32, ptr %6, align 8
  %155 = and i32 %154, 511
  %156 = getelementptr inbounds i8, ptr %1, i64 112
  %157 = load i32, ptr %156, align 8
  %158 = and i32 %157, 511
  %159 = add nuw nsw i32 %158, %155
  %160 = icmp ugt i32 %159, 509
  %161 = add nuw nsw i32 %159, 1
  %162 = and i32 %157, -538968576
  %163 = or i32 %161, %162
  %164 = or i32 %157, 511
  %storemerge = select i1 %160, i32 %164, i32 %163
  %165 = and i32 %storemerge, -538968065
  %166 = or disjoint i32 %165, 536870912
  store i32 %166, ptr %156, align 8
  tail call void @qh_updatetested(ptr noundef nonnull %0, ptr noundef nonnull %1)
  %167 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !30
  %168 = icmp sgt i32 %167, 2
  br i1 %168, label %169, label %176

169:                                              ; preds = %153
  %170 = getelementptr inbounds i8, ptr %0, i64 64
  %171 = load ptr, ptr %170, align 8, !tbaa !37
  %172 = tail call i32 @qh_setsize(ptr noundef %171) #2
  %173 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !30
  %174 = icmp eq i32 %172, %173
  br i1 %174, label %175, label %176

175:                                              ; preds = %169
  tail call void @qh_mergesimplex(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %4)
  br label %196

176:                                              ; preds = %169, %153
  %177 = phi i32 [ %173, %169 ], [ %167, %153 ]
  %178 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !38
  %179 = add i32 %178, 1
  store i32 %179, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !38
  %180 = getelementptr inbounds i8, ptr %1, i64 64
  %181 = load ptr, ptr %180, align 8, !tbaa !37
  %.not134 = icmp eq ptr %181, null
  br i1 %.not134, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %176
  %.0104144 = getelementptr inbounds i8, ptr %181, i64 8
  %182 = load ptr, ptr %.0104144, align 8, !tbaa !39
  %.not135145 = icmp eq ptr %182, null
  br i1 %.not135145, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %183 = phi ptr [ %185, %.lr.ph ], [ %182, %.preheader ]
  %.0104146 = phi ptr [ %.0104, %.lr.ph ], [ %.0104144, %.preheader ]
  %184 = getelementptr inbounds i8, ptr %183, i64 36
  store i32 %179, ptr %184, align 4, !tbaa !40
  %.0104 = getelementptr inbounds i8, ptr %.0104146, i64 8
  %185 = load ptr, ptr %.0104, align 8, !tbaa !39
  %.not135 = icmp eq ptr %185, null
  br i1 %.not135, label %.loopexit, label %.lr.ph, !llvm.loop !42

.loopexit:                                        ; preds = %.lr.ph, %.preheader, %176
  %186 = icmp eq i32 %177, 2
  br i1 %186, label %187, label %188

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

188:                                              ; preds = %.loopexit
  tail call void @qh_mergeneighbors(ptr noundef %0, ptr noundef %1)
  %189 = getelementptr inbounds i8, ptr %0, i64 64
  %190 = load ptr, ptr %189, align 8, !tbaa !37
  tail call void @qh_mergevertices(ptr noundef %190, ptr noundef nonnull %180)
  br label %191

191:                                              ; preds = %188, %187
  tail call void @qh_mergeridges(ptr noundef %0, ptr noundef %1)
  tail call void @qh_mergevertex_neighbors(ptr noundef %0, ptr noundef %1)
  %192 = load i32, ptr %156, align 8
  %193 = and i32 %192, 1024
  %.not136 = icmp eq i32 %193, 0
  br i1 %.not136, label %194, label %196

194:                                              ; preds = %191
  %195 = load ptr, ptr %180, align 8, !tbaa !37
  tail call void @qh_newvertices(ptr noundef %195)
  br label %196

196:                                              ; preds = %191, %194, %175
  %.not137 = icmp eq i32 %4, 0
  br i1 %.not137, label %197, label %198

197:                                              ; preds = %196
  tail call void @qh_degen_redundant_neighbors(ptr noundef nonnull %1, ptr noundef %0)
  br label %198

198:                                              ; preds = %197, %196
  %199 = load i32, ptr %156, align 8
  %200 = and i32 %199, 16778240
  %or.cond143.not = icmp eq i32 %200, 1024
  br i1 %or.cond143.not, label %201, label %204

201:                                              ; preds = %198
  %202 = load i32, ptr %6, align 8
  %203 = and i32 %202, 1024
  %.not140 = icmp eq i32 %203, 0
  %.152 = select i1 %.not140, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 976), ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1016)
  br label %204

204:                                              ; preds = %201, %198
  %.sink = phi ptr [ getelementptr inbounds (i8, ptr @qh_qhstat, i64 1008), %198 ], [ %.152, %201 ]
  %205 = load i32, ptr %.sink, align 8, !tbaa !14
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %.sink, align 8, !tbaa !14
  tail call void @qh_willdelete(ptr noundef %0, ptr noundef nonnull %1)
  tail call void @qh_removefacet(ptr noundef nonnull %1) #2
  tail call void @qh_appendfacet(ptr noundef nonnull %1) #2
  %207 = load i32, ptr %156, align 8
  %208 = and i32 %207, -134218753
  %209 = or disjoint i32 %208, 1024
  store i32 %209, ptr %156, align 8
  tail call void @qh_tracemerge(ptr noundef %0, ptr noundef nonnull %1)
  br i1 %.not141, label %212, label %210

210:                                              ; preds = %204
  %211 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %211, i32 noundef 8080, ptr noundef nonnull @.str.86) #2
  store i32 %.0103, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !22
  br label %212

212:                                              ; preds = %210, %204
  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_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) local_unnamed_addr #1

; 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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 560}
!6 = !{!"qhT", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !11, i64 96, !7, i64 104, !7, i64 108, !11, i64 112, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !10, i64 152, !10, i64 160, !7, i64 168, !7, i64 172, !7, i64 176, !10, i64 184, !10, i64 192, !7, i64 200, !10, i64 208, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !7, i64 292, !8, i64 296, !7, i64 412, !7, i64 416, !7, i64 420, !7, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !7, i64 444, !10, i64 448, !10, i64 456, !10, i64 464, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !7, i64 512, !7, i64 516, !7, i64 520, !7, i64 524, !7, i64 528, !7, i64 532, !7, i64 536, !7, i64 540, !10, i64 544, !7, i64 552, !7, i64 556, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !10, i64 584, !7, i64 592, !11, i64 600, !11, i64 608, !7, i64 616, !7, i64 620, !7, i64 624, !7, i64 628, !7, i64 632, !11, i64 640, !7, i64 648, !11, i64 656, !7, i64 664, !8, i64 668, !7, i64 924, !8, i64 928, !8, i64 1184, !7, i64 1696, !7, i64 1700, !7, i64 1704, !7, i64 1708, !7, i64 1712, !7, i64 1716, !11, i64 1720, !11, i64 1728, !11, i64 1736, !11, i64 1744, !10, i64 1752, !10, i64 1760, !10, i64 1768, !10, i64 1776, !10, i64 1784, !10, i64 1792, !10, i64 1800, !10, i64 1808, !10, i64 1816, !10, i64 1824, !10, i64 1832, !10, i64 1840, !10, i64 1848, !7, i64 1856, !11, i64 1864, !10, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !8, i64 1904, !8, i64 1912, !8, i64 2112, !8, i64 2152, !8, i64 2352, !11, i64 2392, !11, i64 2400, !11, i64 2408, !11, i64 2416, !7, i64 2424, !7, i64 2428, !7, i64 2432, !11, i64 2440, !11, i64 2448, !11, i64 2456, !11, i64 2464, !11, i64 2472, !7, i64 2480, !7, i64 2484, !11, i64 2488, !7, i64 2496, !11, i64 2504, !11, i64 2512, !11, i64 2520, !11, i64 2528, !7, i64 2536, !7, i64 2540, !7, i64 2544, !7, i64 2548, !7, i64 2552, !7, i64 2556, !7, i64 2560, !12, i64 2568, !7, i64 2576, !7, i64 2580, !7, i64 2584, !7, i64 2588, !11, i64 2592, !7, i64 2600, !7, i64 2604, !10, i64 2608, !7, i64 2616, !10, i64 2624, !10, i64 2632, !10, i64 2640, !7, i64 2648, !7, i64 2652, !7, i64 2656, !7, i64 2660, !10, i64 2664, !10, i64 2672, !7, i64 2680, !7, i64 2684, !7, i64 2688, !7, i64 2692, !10, i64 2696, !10, i64 2704, !7, i64 2712, !7, i64 2716, !7, i64 2720, !7, i64 2724, !11, i64 2728, !11, i64 2736, !11, i64 2744, !11, i64 2752, !11, i64 2760, !11, i64 2768, !11, i64 2776, !11, i64 2784, !7, i64 2792, !11, i64 2800, !11, i64 2808, !7, i64 2816, !7, i64 2820, !7, i64 2824, !11, i64 2832, !10, i64 2840, !10, i64 2848, !10, i64 2856, !7, i64 2864, !7, i64 2868, !11, i64 2872, !11, i64 2880, !7, i64 2888}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !11, i64 2408}
!14 = !{!8, !8, i64 0}
!15 = !{!6, !7, i64 480}
!16 = !{!6, !7, i64 2868}
!17 = !{!6, !7, i64 2580}
!18 = !{!6, !7, i64 484}
!19 = !{!10, !10, i64 0}
!20 = !{!6, !10, i64 544}
!21 = !{!6, !7, i64 532}
!22 = !{!6, !7, i64 128}
!23 = !{!24, !7, i64 108}
!24 = !{!"facetT", !10, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !8, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115}
!25 = !{!6, !7, i64 2588}
!26 = !{!6, !11, i64 2488}
!27 = !{!6, !7, i64 2484}
!28 = !{!6, !7, i64 2536}
!29 = !{!6, !7, i64 2480}
!30 = !{!6, !7, i64 624}
!31 = !{!6, !7, i64 1712}
!32 = !{!6, !10, i64 2624}
!33 = !{!6, !10, i64 2632}
!34 = !{!24, !10, i64 8}
!35 = !{!6, !10, i64 2640}
!36 = !{!6, !10, i64 1896}
!37 = !{!24, !11, i64 64}
!38 = !{!6, !7, i64 2716}
!39 = !{!11, !11, i64 0}
!40 = !{!41, !7, i64 36}
!41 = !{!"vertexT", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}


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