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

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

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }
%struct.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }

@.str.42 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [134 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [189 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [205 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [144 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [143 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [83 x i8], align 1

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

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

declare void @qh_errexit(ptr noundef, i32 noundef, ptr 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_pointid(ptr noundef, ptr noundef) #1

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

declare ptr @qh_findbest(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

26:                                               ; preds = %5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.qhT, ptr %28, i32 0, i32 158
  %30 = load ptr, ptr %29, align 8, !tbaa !18
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = call i32 @qh_pointid(ptr noundef %31, ptr noundef %32)
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.facetT, ptr %34, i32 0, i32 14
  %36 = load i32, ptr %35, align 4, !tbaa !19
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %42

39:                                               ; preds = %26
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = load double, ptr %40, align 8, !tbaa !11
  br label %43

42:                                               ; preds = %26
  br label %43

43:                                               ; preds = %42, %39
  %44 = phi double [ %41, %39 ], [ 0.000000e+00, %42 ]
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.qhT, ptr %46, i32 0, i32 212
  %48 = load i32, ptr %47, align 4, !tbaa !21
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %27, ptr noundef %30, i32 noundef 4090, ptr noundef @.str.42, i32 noundef %33, i32 noundef %36, double noundef %44, i32 noundef %45, i32 noundef %48)
  br label %49

49:                                               ; preds = %43, %5
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.qhT, ptr %50, i32 0, i32 219
  store i32 1, ptr %51, align 8, !tbaa !22
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %170, label %54

54:                                               ; preds = %49
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %62

57:                                               ; preds = %54
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = call ptr @qh_findbestnew(ptr noundef %58, ptr noundef %59, ptr noundef %60, ptr noundef %13, i32 noundef 1, ptr noundef %18, ptr noundef %17)
  store ptr %61, ptr %11, align 8, !tbaa !5
  br label %70

62:                                               ; preds = %54
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.qhT, ptr %66, i32 0, i32 17
  %68 = load i32, ptr %67, align 8, !tbaa !23
  %69 = call ptr @qh_findbest(ptr noundef %63, ptr noundef %64, ptr noundef %65, i32 noundef 1, i32 noundef 0, i32 noundef %68, ptr noundef %13, ptr noundef %18, ptr noundef %17)
  store ptr %69, ptr %11, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %62, %57
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.qhT, ptr %71, i32 0, i32 258
  %73 = getelementptr inbounds %struct.qhstatT, ptr %72, i32 0, i32 0
  %74 = getelementptr inbounds [249 x %union.intrealT], ptr %73, i64 0, i64 217
  %75 = load i32, ptr %74, align 8, !tbaa !24
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %74, align 8, !tbaa !24
  %77 = load i32, ptr %17, align 4, !tbaa !9
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.qhT, ptr %78, i32 0, i32 258
  %80 = getelementptr inbounds %struct.qhstatT, ptr %79, i32 0, i32 0
  %81 = getelementptr inbounds [249 x %union.intrealT], ptr %80, i64 0, i64 171
  %82 = load i32, ptr %81, align 8, !tbaa !24
  %83 = add nsw i32 %82, %77
  store i32 %83, ptr %81, align 8, !tbaa !24
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.qhT, ptr %84, i32 0, i32 17
  %86 = load i32, ptr %85, align 8, !tbaa !23
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %169, label %88

88:                                               ; preds = %70
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.qhT, ptr %89, i32 0, i32 32
  %91 = load i32, ptr %90, align 4, !tbaa !25
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %169, label %93

93:                                               ; preds = %88
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.qhT, ptr %94, i32 0, i32 109
  %96 = load i32, ptr %95, align 4, !tbaa !26
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %133

98:                                               ; preds = %93
  %99 = load double, ptr %13, align 8, !tbaa !11
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.qhT, ptr %100, i32 0, i32 146
  %102 = load double, ptr %101, align 8, !tbaa !27
  %103 = fneg double %102
  %104 = fcmp olt double %99, %103
  br i1 %104, label %105, label %132

105:                                              ; preds = %98
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.qhT, ptr %106, i32 0, i32 258
  %108 = getelementptr inbounds %struct.qhstatT, ptr %107, i32 0, i32 0
  %109 = getelementptr inbounds [249 x %union.intrealT], ptr %108, i64 0, i64 39
  %110 = load i32, ptr %109, align 8, !tbaa !24
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %109, align 8, !tbaa !24
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.qhT, ptr %112, i32 0, i32 29
  %114 = load i32, ptr %113, align 8, !tbaa !13
  %115 = icmp sge i32 %114, 4
  br i1 %115, label %116, label %129

116:                                              ; preds = %105
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.qhT, ptr %118, i32 0, i32 158
  %120 = load ptr, ptr %119, align 8, !tbaa !18
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = call i32 @qh_pointid(ptr noundef %121, ptr noundef %122)
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.facetT, ptr %124, i32 0, i32 14
  %126 = load i32, ptr %125, align 4, !tbaa !19
  %127 = load double, ptr %13, align 8, !tbaa !11
  %128 = load i32, ptr %10, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %117, ptr noundef %120, i32 noundef 4062, ptr noundef @.str.43, i32 noundef %123, i32 noundef %126, double noundef %127, i32 noundef %128)
  br label %129

129:                                              ; preds = %116, %105
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.qhT, ptr %130, i32 0, i32 212
  store i32 0, ptr %131, align 4, !tbaa !21
  store i32 1, ptr %21, align 4
  br label %513

132:                                              ; preds = %98
  br label %168

133:                                              ; preds = %93
  %134 = load double, ptr %13, align 8, !tbaa !11
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.qhT, ptr %135, i32 0, i32 35
  %137 = load double, ptr %136, align 8, !tbaa !28
  %138 = fneg double %137
  %139 = fcmp olt double %134, %138
  br i1 %139, label %140, label %167

140:                                              ; preds = %133
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.qhT, ptr %141, i32 0, i32 29
  %143 = load i32, ptr %142, align 8, !tbaa !13
  %144 = icmp sge i32 %143, 4
  br i1 %144, label %145, label %158

145:                                              ; preds = %140
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.qhT, ptr %147, i32 0, i32 158
  %149 = load ptr, ptr %148, align 8, !tbaa !18
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = call i32 @qh_pointid(ptr noundef %150, ptr noundef %151)
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.facetT, ptr %153, i32 0, i32 14
  %155 = load i32, ptr %154, align 4, !tbaa !19
  %156 = load double, ptr %13, align 8, !tbaa !11
  %157 = load i32, ptr %10, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %146, ptr noundef %149, i32 noundef 4063, ptr noundef @.str.44, i32 noundef %152, i32 noundef %155, double noundef %156, i32 noundef %157)
  br label %158

158:                                              ; preds = %145, %140
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.qhT, ptr %159, i32 0, i32 258
  %161 = getelementptr inbounds %struct.qhstatT, ptr %160, i32 0, i32 0
  %162 = getelementptr inbounds [249 x %union.intrealT], ptr %161, i64 0, i64 39
  %163 = load i32, ptr %162, align 8, !tbaa !24
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %162, align 8, !tbaa !24
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.qhT, ptr %165, i32 0, i32 212
  store i32 0, ptr %166, align 4, !tbaa !21
  store i32 1, ptr %21, align 4
  br label %513

167:                                              ; preds = %133
  br label %168

168:                                              ; preds = %167, %132
  br label %169

169:                                              ; preds = %168, %88, %70
  br label %174

170:                                              ; preds = %49
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %171, ptr %11, align 8, !tbaa !5
  %172 = load ptr, ptr %9, align 8, !tbaa !5
  %173 = load double, ptr %172, align 8, !tbaa !11
  store double %173, ptr %13, align 8, !tbaa !11
  br label %174

174:                                              ; preds = %170, %169
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.facetT, ptr %175, i32 0, i32 15
  %177 = load i32, ptr %176, align 8
  %178 = lshr i32 %177, 11
  %179 = and i32 %178, 1
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %198

181:                                              ; preds = %174
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.qhT, ptr %183, i32 0, i32 158
  %185 = load ptr, ptr %184, align 8, !tbaa !18
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = call i32 @qh_pointid(ptr noundef %186, ptr noundef %187)
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.facetT, ptr %189, i32 0, i32 14
  %191 = load i32, ptr %190, align 4, !tbaa !19
  %192 = load ptr, ptr %11, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.facetT, ptr %192, i32 0, i32 14
  %194 = load i32, ptr %193, align 4, !tbaa !19
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %182, ptr noundef %185, i32 noundef 6405, ptr noundef @.str.45, i32 noundef %188, i32 noundef %191, i32 noundef %194)
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = load ptr, ptr %8, align 8, !tbaa !5
  %197 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_errexit2(ptr noundef %195, i32 noundef 5, ptr noundef %196, ptr noundef %197)
  br label %198

198:                                              ; preds = %181, %174
  %199 = load double, ptr %13, align 8, !tbaa !11
  %200 = load ptr, ptr %6, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.qhT, ptr %200, i32 0, i32 199
  %202 = load double, ptr %201, align 8, !tbaa !29
  %203 = fcmp ogt double %199, %202
  br i1 %203, label %204, label %447

204:                                              ; preds = %198
  %205 = load ptr, ptr %9, align 8, !tbaa !5
  %206 = icmp ne ptr %205, null
  br i1 %206, label %262, label %207

207:                                              ; preds = %204
  %208 = load ptr, ptr %8, align 8, !tbaa !5
  %209 = load ptr, ptr %11, align 8, !tbaa !5
  %210 = icmp ne ptr %208, %209
  br i1 %210, label %211, label %262

211:                                              ; preds = %207
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.qhT, ptr %212, i32 0, i32 258
  %214 = getelementptr inbounds %struct.qhstatT, ptr %213, i32 0, i32 0
  %215 = getelementptr inbounds [249 x %union.intrealT], ptr %214, i64 0, i64 170
  %216 = load i32, ptr %215, align 8, !tbaa !24
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %215, align 8, !tbaa !24
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = load ptr, ptr %8, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.facetT, ptr %219, i32 0, i32 3
  %221 = load ptr, ptr %220, align 8, !tbaa !30
  %222 = load ptr, ptr %11, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.facetT, ptr %222, i32 0, i32 3
  %224 = load ptr, ptr %223, align 8, !tbaa !30
  %225 = call double @qh_getangle(ptr noundef %218, ptr noundef %221, ptr noundef %224)
  store double %225, ptr %14, align 8, !tbaa !11
  %226 = load double, ptr %14, align 8, !tbaa !11
  %227 = fcmp olt double %226, 0.000000e+00
  br i1 %227, label %228, label %261

228:                                              ; preds = %211
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = load ptr, ptr %11, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.facetT, ptr %230, i32 0, i32 8
  %232 = load ptr, ptr %231, align 8, !tbaa !31
  %233 = call double @qh_vertex_bestdist(ptr noundef %229, ptr noundef %232)
  store double %233, ptr %15, align 8, !tbaa !11
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.qhT, ptr %234, i32 0, i32 258
  %236 = getelementptr inbounds %struct.qhstatT, ptr %235, i32 0, i32 0
  %237 = getelementptr inbounds [249 x %union.intrealT], ptr %236, i64 0, i64 172
  %238 = load i32, ptr %237, align 8, !tbaa !24
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %237, align 8, !tbaa !24
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.qhT, ptr %240, i32 0, i32 29
  %242 = load i32, ptr %241, align 8, !tbaa !13
  %243 = icmp sge i32 %242, 2
  br i1 %243, label %244, label %260

244:                                              ; preds = %228
  %245 = load ptr, ptr %6, align 8, !tbaa !5
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.qhT, ptr %246, i32 0, i32 158
  %248 = load ptr, ptr %247, align 8, !tbaa !18
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  %250 = load ptr, ptr %7, align 8, !tbaa !5
  %251 = call i32 @qh_pointid(ptr noundef %249, ptr noundef %250)
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.facetT, ptr %252, i32 0, i32 14
  %254 = load i32, ptr %253, align 4, !tbaa !19
  %255 = load ptr, ptr %11, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.facetT, ptr %255, i32 0, i32 14
  %257 = load i32, ptr %256, align 4, !tbaa !19
  %258 = load double, ptr %13, align 8, !tbaa !11
  %259 = load double, ptr %14, align 8, !tbaa !11
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %245, ptr noundef %248, i32 noundef 2058, ptr noundef @.str.46, i32 noundef %251, i32 noundef %254, i32 noundef %257, double noundef %258, double noundef %259)
  br label %260

260:                                              ; preds = %244, %228
  store i32 1, ptr %20, align 4, !tbaa !9
  br label %261

261:                                              ; preds = %260, %211
  br label %262

262:                                              ; preds = %261, %207, %204
  %263 = load i32, ptr %20, align 4, !tbaa !9
  %264 = icmp ne i32 %263, 0
  br i1 %264, label %392, label %265

265:                                              ; preds = %262
  %266 = load double, ptr %13, align 8, !tbaa !11
  %267 = load ptr, ptr %6, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.qhT, ptr %267, i32 0, i32 137
  %269 = load double, ptr %268, align 8, !tbaa !32
  %270 = fmul double %269, 3.000000e+01
  %271 = fcmp ogt double %266, %270
  br i1 %271, label %272, label %391

272:                                              ; preds = %265
  %273 = load ptr, ptr %6, align 8, !tbaa !5
  %274 = load ptr, ptr %11, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.facetT, ptr %274, i32 0, i32 8
  %276 = load ptr, ptr %275, align 8, !tbaa !31
  %277 = call double @qh_vertex_bestdist(ptr noundef %273, ptr noundef %276)
  store double %277, ptr %15, align 8, !tbaa !11
  %278 = load ptr, ptr %8, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.facetT, ptr %278, i32 0, i32 14
  %280 = load i32, ptr %279, align 4, !tbaa !19
  %281 = load ptr, ptr %11, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.facetT, ptr %281, i32 0, i32 14
  %283 = load i32, ptr %282, align 4, !tbaa !19
  %284 = icmp eq i32 %280, %283
  br i1 %284, label %285, label %314

285:                                              ; preds = %272
  %286 = load ptr, ptr %8, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.facetT, ptr %286, i32 0, i32 14
  %288 = load i32, ptr %287, align 4, !tbaa !19
  %289 = load ptr, ptr %6, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.qhT, ptr %289, i32 0, i32 212
  %291 = load i32, ptr %290, align 4, !tbaa !21
  %292 = icmp eq i32 %288, %291
  br i1 %292, label %293, label %308

293:                                              ; preds = %285
  %294 = load ptr, ptr %6, align 8, !tbaa !5
  %295 = load ptr, ptr %6, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.qhT, ptr %295, i32 0, i32 158
  %297 = load ptr, ptr %296, align 8, !tbaa !18
  %298 = load ptr, ptr %6, align 8, !tbaa !5
  %299 = load ptr, ptr %7, align 8, !tbaa !5
  %300 = call i32 @qh_pointid(ptr noundef %298, ptr noundef %299)
  %301 = load ptr, ptr %8, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.facetT, ptr %301, i32 0, i32 14
  %303 = load i32, ptr %302, align 4, !tbaa !19
  %304 = load double, ptr %13, align 8, !tbaa !11
  %305 = load double, ptr %15, align 8, !tbaa !11
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %294, ptr noundef %297, i32 noundef 6404, ptr noundef @.str.47, i32 noundef %300, i32 noundef %303, double noundef %304, double noundef %305)
  %306 = load ptr, ptr %6, align 8, !tbaa !5
  %307 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %306, i32 noundef 5, ptr noundef %307, ptr noundef null)
  br label %308

308:                                              ; preds = %293, %285
  %309 = load ptr, ptr %8, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.facetT, ptr %309, i32 0, i32 14
  %311 = load i32, ptr %310, align 4, !tbaa !19
  %312 = load ptr, ptr %6, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.qhT, ptr %312, i32 0, i32 212
  store i32 %311, ptr %313, align 4, !tbaa !21
  br label %314

314:                                              ; preds = %308, %272
  %315 = load ptr, ptr %7, align 8, !tbaa !5
  %316 = load ptr, ptr %6, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.qhT, ptr %316, i32 0, i32 193
  %318 = load ptr, ptr %317, align 8, !tbaa !33
  %319 = icmp eq ptr %315, %318
  br i1 %319, label %320, label %338

320:                                              ; preds = %314
  %321 = load ptr, ptr %6, align 8, !tbaa !5
  %322 = load ptr, ptr %6, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.qhT, ptr %322, i32 0, i32 158
  %324 = load ptr, ptr %323, align 8, !tbaa !18
  %325 = load ptr, ptr %6, align 8, !tbaa !5
  %326 = load ptr, ptr %7, align 8, !tbaa !5
  %327 = call i32 @qh_pointid(ptr noundef %325, ptr noundef %326)
  %328 = load ptr, ptr %8, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.facetT, ptr %328, i32 0, i32 14
  %330 = load i32, ptr %329, align 4, !tbaa !19
  %331 = load ptr, ptr %11, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.facetT, ptr %331, i32 0, i32 14
  %333 = load i32, ptr %332, align 4, !tbaa !19
  %334 = load double, ptr %13, align 8, !tbaa !11
  %335 = load double, ptr %15, align 8, !tbaa !11
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %321, ptr noundef %324, i32 noundef 6425, ptr noundef @.str.48, i32 noundef %327, i32 noundef %330, i32 noundef %333, double noundef %334, double noundef %335)
  %336 = load ptr, ptr %6, align 8, !tbaa !5
  %337 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %336, i32 noundef 7, ptr noundef %337, ptr noundef null)
  br label %338

338:                                              ; preds = %320, %314
  %339 = load double, ptr %15, align 8, !tbaa !11
  %340 = load ptr, ptr %6, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.qhT, ptr %340, i32 0, i32 137
  %342 = load double, ptr %341, align 8, !tbaa !32
  %343 = fmul double 2.000000e+00, %342
  %344 = fmul double %343, 3.000000e+01
  %345 = fcmp olt double %339, %344
  br i1 %345, label %346, label %368

346:                                              ; preds = %338
  %347 = load ptr, ptr %6, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.qhT, ptr %347, i32 0, i32 258
  %349 = getelementptr inbounds %struct.qhstatT, ptr %348, i32 0, i32 0
  %350 = getelementptr inbounds [249 x %union.intrealT], ptr %349, i64 0, i64 178
  %351 = load i32, ptr %350, align 8, !tbaa !24
  %352 = add nsw i32 %351, 1
  store i32 %352, ptr %350, align 8, !tbaa !24
  %353 = load ptr, ptr %6, align 8, !tbaa !5
  %354 = load ptr, ptr %6, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.qhT, ptr %354, i32 0, i32 158
  %356 = load ptr, ptr %355, align 8, !tbaa !18
  %357 = load ptr, ptr %6, align 8, !tbaa !5
  %358 = load ptr, ptr %7, align 8, !tbaa !5
  %359 = call i32 @qh_pointid(ptr noundef %357, ptr noundef %358)
  %360 = load ptr, ptr %8, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.facetT, ptr %360, i32 0, i32 14
  %362 = load i32, ptr %361, align 4, !tbaa !19
  %363 = load ptr, ptr %11, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.facetT, ptr %363, i32 0, i32 14
  %365 = load i32, ptr %364, align 4, !tbaa !19
  %366 = load double, ptr %13, align 8, !tbaa !11
  %367 = load double, ptr %15, align 8, !tbaa !11
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %353, ptr noundef %356, i32 noundef 7085, ptr noundef @.str.49, i32 noundef %359, i32 noundef %362, i32 noundef %365, double noundef %366, double noundef %367)
  br label %390

368:                                              ; preds = %338
  %369 = load ptr, ptr %6, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.qhT, ptr %369, i32 0, i32 258
  %371 = getelementptr inbounds %struct.qhstatT, ptr %370, i32 0, i32 0
  %372 = getelementptr inbounds [249 x %union.intrealT], ptr %371, i64 0, i64 173
  %373 = load i32, ptr %372, align 8, !tbaa !24
  %374 = add nsw i32 %373, 1
  store i32 %374, ptr %372, align 8, !tbaa !24
  %375 = load ptr, ptr %6, align 8, !tbaa !5
  %376 = load ptr, ptr %6, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.qhT, ptr %376, i32 0, i32 158
  %378 = load ptr, ptr %377, align 8, !tbaa !18
  %379 = load ptr, ptr %6, align 8, !tbaa !5
  %380 = load ptr, ptr %7, align 8, !tbaa !5
  %381 = call i32 @qh_pointid(ptr noundef %379, ptr noundef %380)
  %382 = load ptr, ptr %8, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.facetT, ptr %382, i32 0, i32 14
  %384 = load i32, ptr %383, align 4, !tbaa !19
  %385 = load ptr, ptr %11, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.facetT, ptr %385, i32 0, i32 14
  %387 = load i32, ptr %386, align 4, !tbaa !19
  %388 = load double, ptr %13, align 8, !tbaa !11
  %389 = load double, ptr %15, align 8, !tbaa !11
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %375, ptr noundef %378, i32 noundef 7086, ptr noundef @.str.50, i32 noundef %381, i32 noundef %384, i32 noundef %387, double noundef %388, double noundef %389)
  br label %390

390:                                              ; preds = %368, %346
  store i32 1, ptr %20, align 4, !tbaa !9
  br label %391

391:                                              ; preds = %390, %265
  br label %392

392:                                              ; preds = %391, %262
  %393 = load i32, ptr %20, align 4, !tbaa !9
  %394 = icmp ne i32 %393, 0
  br i1 %394, label %395, label %409

395:                                              ; preds = %392
  %396 = load ptr, ptr %6, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.qhT, ptr %396, i32 0, i32 204
  %398 = load i32, ptr %397, align 8, !tbaa !34
  store i32 %398, ptr %19, align 4, !tbaa !9
  %399 = load ptr, ptr %6, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.qhT, ptr %399, i32 0, i32 204
  store i32 0, ptr %400, align 8, !tbaa !34
  %401 = load ptr, ptr %6, align 8, !tbaa !5
  %402 = load ptr, ptr %7, align 8, !tbaa !5
  %403 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_partitionpoint(ptr noundef %401, ptr noundef %402, ptr noundef %403)
  %404 = load i32, ptr %19, align 4, !tbaa !9
  %405 = load ptr, ptr %6, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.qhT, ptr %405, i32 0, i32 204
  store i32 %404, ptr %406, align 8, !tbaa !34
  %407 = load ptr, ptr %6, align 8, !tbaa !5
  %408 = getelementptr inbounds %struct.qhT, ptr %407, i32 0, i32 212
  store i32 0, ptr %408, align 4, !tbaa !21
  store i32 1, ptr %21, align 4
  br label %513

409:                                              ; preds = %392
  %410 = load ptr, ptr %6, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.qhT, ptr %410, i32 0, i32 212
  store i32 0, ptr %411, align 4, !tbaa !21
  %412 = load double, ptr %13, align 8, !tbaa !11
  %413 = load ptr, ptr %6, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.qhT, ptr %413, i32 0, i32 199
  store double %412, ptr %414, align 8, !tbaa !29
  %415 = load double, ptr %13, align 8, !tbaa !11
  %416 = load ptr, ptr %6, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.qhT, ptr %416, i32 0, i32 95
  %418 = load double, ptr %417, align 8, !tbaa !35
  %419 = fcmp ogt double %415, %418
  br i1 %419, label %425, label %420

420:                                              ; preds = %409
  %421 = load ptr, ptr %6, align 8, !tbaa !5
  %422 = getelementptr inbounds %struct.qhT, ptr %421, i32 0, i32 29
  %423 = load i32, ptr %422, align 8, !tbaa !13
  %424 = icmp sge i32 %423, 3
  br i1 %424, label %425, label %446

425:                                              ; preds = %420, %409
  %426 = load ptr, ptr %6, align 8, !tbaa !5
  %427 = load ptr, ptr %6, align 8, !tbaa !5
  %428 = getelementptr inbounds %struct.qhT, ptr %427, i32 0, i32 158
  %429 = load ptr, ptr %428, align 8, !tbaa !18
  %430 = load ptr, ptr %6, align 8, !tbaa !5
  %431 = load ptr, ptr %7, align 8, !tbaa !5
  %432 = call i32 @qh_pointid(ptr noundef %430, ptr noundef %431)
  %433 = load ptr, ptr %8, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.facetT, ptr %433, i32 0, i32 14
  %435 = load i32, ptr %434, align 4, !tbaa !19
  %436 = load double, ptr %13, align 8, !tbaa !11
  %437 = load ptr, ptr %11, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.facetT, ptr %437, i32 0, i32 14
  %439 = load i32, ptr %438, align 4, !tbaa !19
  %440 = load ptr, ptr %6, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.qhT, ptr %440, i32 0, i32 190
  %442 = load i32, ptr %441, align 4, !tbaa !36
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %426, ptr noundef %429, i32 noundef 3041, ptr noundef @.str.51, i32 noundef %432, i32 noundef %435, double noundef %436, i32 noundef %439, i32 noundef %442)
  %443 = load ptr, ptr %6, align 8, !tbaa !5
  %444 = load ptr, ptr %8, align 8, !tbaa !5
  %445 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_errprint(ptr noundef %443, ptr noundef @.str.52, ptr noundef %444, ptr noundef %445, ptr noundef null, ptr noundef null)
  br label %446

446:                                              ; preds = %425, %420
  br label %447

447:                                              ; preds = %446, %198
  %448 = load ptr, ptr %6, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.qhT, ptr %448, i32 0, i32 31
  %450 = load i32, ptr %449, align 8, !tbaa !37
  %451 = load ptr, ptr %6, align 8, !tbaa !5
  %452 = getelementptr inbounds %struct.qhT, ptr %451, i32 0, i32 32
  %453 = load i32, ptr %452, align 4, !tbaa !25
  %454 = add i32 %450, %453
  %455 = load ptr, ptr %6, align 8, !tbaa !5
  %456 = getelementptr inbounds %struct.qhT, ptr %455, i32 0, i32 109
  %457 = load i32, ptr %456, align 4, !tbaa !26
  %458 = add i32 %454, %457
  %459 = icmp ne i32 %458, 0
  br i1 %459, label %460, label %495

460:                                              ; preds = %447
  %461 = load ptr, ptr %11, align 8, !tbaa !5
  %462 = getelementptr inbounds %struct.facetT, ptr %461, i32 0, i32 12
  %463 = load ptr, ptr %462, align 8, !tbaa !38
  %464 = call ptr @qh_setlast(ptr noundef %463)
  store ptr %464, ptr %12, align 8, !tbaa !5
  %465 = load ptr, ptr %12, align 8, !tbaa !5
  %466 = icmp ne ptr %465, null
  br i1 %466, label %467, label %477

467:                                              ; preds = %460
  %468 = load ptr, ptr %6, align 8, !tbaa !5
  %469 = getelementptr inbounds %struct.qhT, ptr %468, i32 0, i32 258
  %470 = getelementptr inbounds %struct.qhstatT, ptr %469, i32 0, i32 0
  %471 = getelementptr inbounds [249 x %union.intrealT], ptr %470, i64 0, i64 23
  %472 = load i32, ptr %471, align 8, !tbaa !24
  %473 = add nsw i32 %472, 1
  store i32 %473, ptr %471, align 8, !tbaa !24
  %474 = load ptr, ptr %6, align 8, !tbaa !5
  %475 = load ptr, ptr %12, align 8, !tbaa !5
  %476 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %474, ptr noundef %475, ptr noundef %476, ptr noundef %16)
  br label %477

477:                                              ; preds = %467, %460
  %478 = load ptr, ptr %12, align 8, !tbaa !5
  %479 = icmp ne ptr %478, null
  br i1 %479, label %480, label %484

480:                                              ; preds = %477
  %481 = load double, ptr %16, align 8, !tbaa !11
  %482 = load double, ptr %13, align 8, !tbaa !11
  %483 = fcmp olt double %481, %482
  br i1 %483, label %484, label %489

484:                                              ; preds = %480, %477
  %485 = load ptr, ptr %6, align 8, !tbaa !5
  %486 = load ptr, ptr %11, align 8, !tbaa !5
  %487 = getelementptr inbounds %struct.facetT, ptr %486, i32 0, i32 12
  %488 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %485, ptr noundef %487, ptr noundef %488)
  br label %494

489:                                              ; preds = %480
  %490 = load ptr, ptr %6, align 8, !tbaa !5
  %491 = load ptr, ptr %11, align 8, !tbaa !5
  %492 = getelementptr inbounds %struct.facetT, ptr %491, i32 0, i32 12
  %493 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_setappend2ndlast(ptr noundef %490, ptr noundef %492, ptr noundef %493)
  br label %494

494:                                              ; preds = %489, %484
  br label %495

495:                                              ; preds = %494, %447
  %496 = load ptr, ptr %6, align 8, !tbaa !5
  %497 = getelementptr inbounds %struct.qhT, ptr %496, i32 0, i32 29
  %498 = load i32, ptr %497, align 8, !tbaa !13
  %499 = icmp sge i32 %498, 4
  br i1 %499, label %500, label %512

500:                                              ; preds = %495
  %501 = load ptr, ptr %6, align 8, !tbaa !5
  %502 = load ptr, ptr %6, align 8, !tbaa !5
  %503 = getelementptr inbounds %struct.qhT, ptr %502, i32 0, i32 158
  %504 = load ptr, ptr %503, align 8, !tbaa !18
  %505 = load ptr, ptr %6, align 8, !tbaa !5
  %506 = load ptr, ptr %7, align 8, !tbaa !5
  %507 = call i32 @qh_pointid(ptr noundef %505, ptr noundef %506)
  %508 = load ptr, ptr %11, align 8, !tbaa !5
  %509 = getelementptr inbounds %struct.facetT, ptr %508, i32 0, i32 14
  %510 = load i32, ptr %509, align 4, !tbaa !19
  %511 = load double, ptr %13, align 8, !tbaa !11
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %501, ptr noundef %504, i32 noundef 4064, ptr noundef @.str.53, i32 noundef %507, i32 noundef %510, double noundef %511)
  br label %512

512:                                              ; preds = %500, %495
  store i32 0, ptr %21, align 4
  br label %513

513:                                              ; preds = %512, %395, %158, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 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 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  %514 = load i32, ptr %21, align 4
  switch i32 %514, label %516 [
    i32 0, label %515
    i32 1, label %515
  ]

515:                                              ; preds = %513, %513
  ret void

516:                                              ; preds = %513
  unreachable
}

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

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

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

declare ptr @qh_setlast(ptr noundef) #1

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

declare ptr @qh_findbestnew(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

declare double @qh_getangle(ptr noundef, ptr noundef, ptr noundef) #1

declare double @qh_vertex_bestdist(ptr noundef, ptr noundef) #1

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 136}
!14 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !12, 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, !12, i64 64, !12, 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, !12, i64 160, !12, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !12, i64 192, !12, i64 200, !10, i64 208, !10, i64 212, !12, 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, !12, i64 448, !12, i64 456, !12, 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, !12, 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, !12, 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, !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, !10, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !6, i64 2408, !6, i64 2416, !6, i64 2424, !6, i64 2432, !10, i64 2440, !10, i64 2444, !10, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !10, i64 2496, !10, i64 2500, !6, i64 2504, !10, i64 2512, !6, i64 2520, !10, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !10, i64 2568, !10, i64 2572, !10, i64 2576, !10, i64 2580, !10, i64 2584, !10, i64 2588, !10, i64 2592, !10, i64 2596, !15, i64 2600, !10, i64 2608, !10, i64 2612, !10, i64 2616, !10, i64 2620, !10, i64 2624, !6, i64 2632, !6, i64 2640, !10, i64 2648, !10, i64 2652, !10, i64 2656, !12, i64 2664, !10, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !12, i64 2728, !12, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !12, i64 2768, !12, 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, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, i64 2944, !10, i64 2952, !10, i64 2956, !10, i64 2960, !10, i64 2964, !10, i64 2968, !10, i64 2972, !6, i64 2976, !10, i64 2984, !10, i64 2988, !7, i64 2992, !7, i64 3192, !10, i64 3232, !12, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !16, i64 3272, !17, i64 3424}
!15 = !{!"long", !7, i64 0}
!16 = !{!"qhmemT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144}
!17 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !10, i64 5320, !10, i64 5324, !10, i64 5328, !10, i64 5332, !12, i64 5336}
!18 = !{!14, !6, i64 2424}
!19 = !{!20, !10, i64 108}
!20 = !{!"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, !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}
!21 = !{!14, !10, i64 2756}
!22 = !{!14, !10, i64 2792}
!23 = !{!14, !10, i64 80}
!24 = !{!7, !7, i64 0}
!25 = !{!14, !10, i64 148}
!26 = !{!14, !10, i64 628}
!27 = !{!14, !12, i64 1880}
!28 = !{!14, !12, i64 168}
!29 = !{!14, !12, i64 2680}
!30 = !{!20, !6, i64 24}
!31 = !{!20, !6, i64 64}
!32 = !{!14, !12, i64 1808}
!33 = !{!14, !6, i64 2640}
!34 = !{!14, !10, i64 2712}
!35 = !{!14, !12, i64 552}
!36 = !{!14, !10, i64 2620}
!37 = !{!14, !10, i64 144}
!38 = !{!20, !6, i64 96}


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

@.str.42 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [134 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [189 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [205 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [144 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [143 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [83 x i8], align 1

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

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

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

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

declare i32 @qh_pointid(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @qh_setappend(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @qh_findbest(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_partitioncoplanar(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef readonly %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  store double 0.000000e+00, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  %10 = getelementptr inbounds i8, ptr %0, i64 136
  %11 = load i32, ptr %10, align 8, !tbaa !11
  %12 = icmp sgt i32 %11, 3
  br i1 %12, label %13, label %25

13:                                               ; preds = %5
  %14 = getelementptr inbounds i8, ptr %0, i64 2424
  %15 = load ptr, ptr %14, align 8, !tbaa !17
  %16 = tail call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %1) #3
  %17 = getelementptr inbounds i8, ptr %2, i64 108
  %18 = load i32, ptr %17, align 4, !tbaa !18
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %21, label %19

19:                                               ; preds = %13
  %20 = load double, ptr %3, align 8, !tbaa !5
  br label %21

21:                                               ; preds = %13, %19
  %22 = phi double [ %20, %19 ], [ 0.000000e+00, %13 ]
  %23 = getelementptr inbounds i8, ptr %0, i64 2756
  %24 = load i32, ptr %23, align 4, !tbaa !20
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %15, i32 noundef 4090, ptr noundef nonnull @.str.42, i32 noundef %16, i32 noundef %18, double noundef %22, i32 noundef %4, i32 noundef %24) #3
  br label %25

25:                                               ; preds = %21, %5
  %26 = getelementptr inbounds i8, ptr %0, i64 2792
  store i32 1, ptr %26, align 8, !tbaa !21
  %.not179 = icmp ne ptr %3, null
  br i1 %.not179, label %91, label %27

27:                                               ; preds = %25
  %.not180 = icmp eq i32 %4, 0
  br i1 %.not180, label %30, label %28

28:                                               ; preds = %27
  %29 = call ptr @qh_findbestnew(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %6, i32 noundef 1, ptr noundef nonnull %9, ptr noundef nonnull %8) #3
  br label %34

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %0, i64 80
  %32 = load i32, ptr %31, align 8, !tbaa !22
  %33 = call ptr @qh_findbest(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, i32 noundef 1, i32 noundef 0, i32 noundef %32, ptr noundef nonnull %6, ptr noundef nonnull %9, ptr noundef nonnull %8) #3
  br label %34

34:                                               ; preds = %30, %28
  %.0168 = phi ptr [ %29, %28 ], [ %33, %30 ]
  %35 = getelementptr inbounds i8, ptr %0, i64 5160
  %36 = load i32, ptr %35, align 8, !tbaa !23
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %35, align 8, !tbaa !23
  %38 = load i32, ptr %8, align 4, !tbaa !9
  %39 = getelementptr inbounds i8, ptr %0, i64 4792
  %40 = load i32, ptr %39, align 8, !tbaa !23
  %41 = add nsw i32 %40, %38
  store i32 %41, ptr %39, align 8, !tbaa !23
  %42 = getelementptr inbounds i8, ptr %0, i64 80
  %43 = load i32, ptr %42, align 8, !tbaa !22
  %.not181 = icmp eq i32 %43, 0
  br i1 %.not181, label %44, label %93

44:                                               ; preds = %34
  %45 = getelementptr inbounds i8, ptr %0, i64 148
  %46 = load i32, ptr %45, align 4, !tbaa !24
  %.not182 = icmp eq i32 %46, 0
  br i1 %.not182, label %47, label %93

47:                                               ; preds = %44
  %48 = getelementptr inbounds i8, ptr %0, i64 628
  %49 = load i32, ptr %48, align 4, !tbaa !25
  %.not183 = icmp eq i32 %49, 0
  %50 = load double, ptr %6, align 8, !tbaa !5
  br i1 %.not183, label %71, label %51

51:                                               ; preds = %47
  %52 = getelementptr inbounds i8, ptr %0, i64 1880
  %53 = load double, ptr %52, align 8, !tbaa !26
  %54 = fneg double %53
  %55 = fcmp olt double %50, %54
  br i1 %55, label %56, label %93

56:                                               ; preds = %51
  %57 = getelementptr inbounds i8, ptr %0, i64 3736
  %58 = load i32, ptr %57, align 8, !tbaa !23
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %57, align 8, !tbaa !23
  %60 = load i32, ptr %10, align 8, !tbaa !11
  %61 = icmp sgt i32 %60, 3
  br i1 %61, label %62, label %69

62:                                               ; preds = %56
  %63 = getelementptr inbounds i8, ptr %0, i64 2424
  %64 = load ptr, ptr %63, align 8, !tbaa !17
  %65 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %1) #3
  %66 = getelementptr inbounds i8, ptr %.0168, i64 108
  %67 = load i32, ptr %66, align 4, !tbaa !18
  %68 = load double, ptr %6, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %64, i32 noundef 4062, ptr noundef nonnull @.str.43, i32 noundef %65, i32 noundef %67, double noundef %68, i32 noundef %4) #3
  br label %69

69:                                               ; preds = %62, %56
  %70 = getelementptr inbounds i8, ptr %0, i64 2756
  store i32 0, ptr %70, align 4, !tbaa !20
  br label %253

71:                                               ; preds = %47
  %72 = getelementptr inbounds i8, ptr %0, i64 168
  %73 = load double, ptr %72, align 8, !tbaa !27
  %74 = fneg double %73
  %75 = fcmp olt double %50, %74
  br i1 %75, label %76, label %93

76:                                               ; preds = %71
  %77 = load i32, ptr %10, align 8, !tbaa !11
  %78 = icmp sgt i32 %77, 3
  br i1 %78, label %79, label %86

79:                                               ; preds = %76
  %80 = getelementptr inbounds i8, ptr %0, i64 2424
  %81 = load ptr, ptr %80, align 8, !tbaa !17
  %82 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %1) #3
  %83 = getelementptr inbounds i8, ptr %.0168, i64 108
  %84 = load i32, ptr %83, align 4, !tbaa !18
  %85 = load double, ptr %6, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %81, i32 noundef 4063, ptr noundef nonnull @.str.44, i32 noundef %82, i32 noundef %84, double noundef %85, i32 noundef %4) #3
  br label %86

86:                                               ; preds = %79, %76
  %87 = getelementptr inbounds i8, ptr %0, i64 3736
  %88 = load i32, ptr %87, align 8, !tbaa !23
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %87, align 8, !tbaa !23
  %90 = getelementptr inbounds i8, ptr %0, i64 2756
  store i32 0, ptr %90, align 4, !tbaa !20
  br label %253

91:                                               ; preds = %25
  %92 = load double, ptr %3, align 8, !tbaa !5
  store double %92, ptr %6, align 8, !tbaa !5
  br label %93

93:                                               ; preds = %34, %44, %71, %51, %91
  %.1169 = phi ptr [ %2, %91 ], [ %.0168, %34 ], [ %.0168, %44 ], [ %.0168, %51 ], [ %.0168, %71 ]
  %94 = getelementptr inbounds i8, ptr %.1169, i64 112
  %95 = load i32, ptr %94, align 8
  %96 = and i32 %95, 2048
  %.not184 = icmp eq i32 %96, 0
  br i1 %.not184, label %105, label %97

97:                                               ; preds = %93
  %98 = getelementptr inbounds i8, ptr %0, i64 2424
  %99 = load ptr, ptr %98, align 8, !tbaa !17
  %100 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %1) #3
  %101 = getelementptr inbounds i8, ptr %2, i64 108
  %102 = load i32, ptr %101, align 4, !tbaa !18
  %103 = getelementptr inbounds i8, ptr %.1169, i64 108
  %104 = load i32, ptr %103, align 4, !tbaa !18
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %99, i32 noundef 6405, ptr noundef nonnull @.str.45, i32 noundef %100, i32 noundef %102, i32 noundef %104) #3
  call void @qh_errexit2(ptr noundef nonnull %0, i32 noundef 5, ptr noundef %2, ptr noundef nonnull %.1169)
  br label %105

105:                                              ; preds = %97, %93
  %106 = load double, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %0, i64 2680
  %108 = load double, ptr %107, align 8, !tbaa !28
  %109 = fcmp ogt double %106, %108
  br i1 %109, label %110, label %222

110:                                              ; preds = %105
  %.not185 = icmp eq ptr %.1169, %2
  %or.cond = or i1 %.not179, %.not185
  br i1 %or.cond, label %.critedge, label %111

111:                                              ; preds = %110
  %112 = getelementptr inbounds i8, ptr %0, i64 4784
  %113 = load i32, ptr %112, align 8, !tbaa !23
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %112, align 8, !tbaa !23
  %115 = getelementptr inbounds i8, ptr %2, i64 24
  %116 = load ptr, ptr %115, align 8, !tbaa !29
  %117 = getelementptr inbounds i8, ptr %.1169, i64 24
  %118 = load ptr, ptr %117, align 8, !tbaa !29
  %119 = call double @qh_getangle(ptr noundef nonnull %0, ptr noundef %116, ptr noundef %118) #3
  %120 = fcmp olt double %119, 0.000000e+00
  br i1 %120, label %121, label %..critedge_crit_edge

..critedge_crit_edge:                             ; preds = %111
  %.pre = load double, ptr %6, align 8, !tbaa !5
  br label %.critedge

121:                                              ; preds = %111
  %122 = getelementptr inbounds i8, ptr %.1169, i64 64
  %123 = load ptr, ptr %122, align 8, !tbaa !30
  %124 = call double @qh_vertex_bestdist(ptr noundef nonnull %0, ptr noundef %123) #3
  %125 = getelementptr inbounds i8, ptr %0, i64 4800
  %126 = load i32, ptr %125, align 8, !tbaa !23
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %125, align 8, !tbaa !23
  %128 = load i32, ptr %10, align 8, !tbaa !11
  %129 = icmp sgt i32 %128, 1
  br i1 %129, label %130, label %200

130:                                              ; preds = %121
  %131 = getelementptr inbounds i8, ptr %0, i64 2424
  %132 = load ptr, ptr %131, align 8, !tbaa !17
  %133 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %1) #3
  %134 = getelementptr inbounds i8, ptr %2, i64 108
  %135 = load i32, ptr %134, align 4, !tbaa !18
  %136 = getelementptr inbounds i8, ptr %.1169, i64 108
  %137 = load i32, ptr %136, align 4, !tbaa !18
  %138 = load double, ptr %6, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %132, i32 noundef 2058, ptr noundef nonnull @.str.46, i32 noundef %133, i32 noundef %135, i32 noundef %137, double noundef %138, double noundef %119) #3
  br label %200

.critedge:                                        ; preds = %..critedge_crit_edge, %110
  %139 = phi double [ %.pre, %..critedge_crit_edge ], [ %106, %110 ]
  %140 = getelementptr inbounds i8, ptr %0, i64 1808
  %141 = load double, ptr %140, align 8, !tbaa !31
  %142 = fmul double %141, 3.000000e+01
  %143 = fcmp ogt double %139, %142
  br i1 %143, label %144, label %.critedge191

144:                                              ; preds = %.critedge
  %145 = getelementptr inbounds i8, ptr %.1169, i64 64
  %146 = load ptr, ptr %145, align 8, !tbaa !30
  %147 = call double @qh_vertex_bestdist(ptr noundef nonnull %0, ptr noundef %146) #3
  %148 = getelementptr inbounds i8, ptr %2, i64 108
  %149 = load i32, ptr %148, align 4, !tbaa !18
  %150 = getelementptr inbounds i8, ptr %.1169, i64 108
  %151 = load i32, ptr %150, align 4, !tbaa !18
  %152 = icmp eq i32 %149, %151
  br i1 %152, label %153, label %165

153:                                              ; preds = %144
  %154 = getelementptr inbounds i8, ptr %0, i64 2756
  %155 = load i32, ptr %154, align 4, !tbaa !20
  %156 = icmp eq i32 %149, %155
  br i1 %156, label %157, label %163

157:                                              ; preds = %153
  %158 = getelementptr inbounds i8, ptr %0, i64 2424
  %159 = load ptr, ptr %158, align 8, !tbaa !17
  %160 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %1) #3
  %161 = load i32, ptr %148, align 4, !tbaa !18
  %162 = load double, ptr %6, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %159, i32 noundef 6404, ptr noundef nonnull @.str.47, i32 noundef %160, i32 noundef %161, double noundef %162, double noundef %147) #3
  call void @qh_errexit(ptr noundef nonnull %0, i32 noundef 5, ptr noundef nonnull %2, ptr noundef null) #3
  %.pre194 = load i32, ptr %148, align 4, !tbaa !18
  br label %163

163:                                              ; preds = %157, %153
  %164 = phi i32 [ %.pre194, %157 ], [ %149, %153 ]
  store i32 %164, ptr %154, align 4, !tbaa !20
  br label %165

165:                                              ; preds = %163, %144
  %166 = getelementptr inbounds i8, ptr %0, i64 2640
  %167 = load ptr, ptr %166, align 8, !tbaa !32
  %168 = icmp eq ptr %167, %1
  br i1 %168, label %169, label %176

169:                                              ; preds = %165
  %170 = getelementptr inbounds i8, ptr %0, i64 2424
  %171 = load ptr, ptr %170, align 8, !tbaa !17
  %172 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %1) #3
  %173 = load i32, ptr %148, align 4, !tbaa !18
  %174 = load i32, ptr %150, align 4, !tbaa !18
  %175 = load double, ptr %6, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %171, i32 noundef 6425, ptr noundef nonnull @.str.48, i32 noundef %172, i32 noundef %173, i32 noundef %174, double noundef %175, double noundef %147) #3
  call void @qh_errexit(ptr noundef nonnull %0, i32 noundef 7, ptr noundef nonnull %2, ptr noundef null) #3
  br label %176

176:                                              ; preds = %169, %165
  %177 = load double, ptr %140, align 8, !tbaa !31
  %178 = fmul double %177, 2.000000e+00
  %179 = fmul double %178, 3.000000e+01
  %180 = fcmp olt double %147, %179
  %181 = getelementptr inbounds i8, ptr %0, i64 2424
  br i1 %180, label %182, label %191

182:                                              ; preds = %176
  %183 = getelementptr inbounds i8, ptr %0, i64 4848
  %184 = load i32, ptr %183, align 8, !tbaa !23
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %183, align 8, !tbaa !23
  %186 = load ptr, ptr %181, align 8, !tbaa !17
  %187 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %1) #3
  %188 = load i32, ptr %148, align 4, !tbaa !18
  %189 = load i32, ptr %150, align 4, !tbaa !18
  %190 = load double, ptr %6, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %186, i32 noundef 7085, ptr noundef nonnull @.str.49, i32 noundef %187, i32 noundef %188, i32 noundef %189, double noundef %190, double noundef %147) #3
  br label %200

191:                                              ; preds = %176
  %192 = getelementptr inbounds i8, ptr %0, i64 4808
  %193 = load i32, ptr %192, align 8, !tbaa !23
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %192, align 8, !tbaa !23
  %195 = load ptr, ptr %181, align 8, !tbaa !17
  %196 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %1) #3
  %197 = load i32, ptr %148, align 4, !tbaa !18
  %198 = load i32, ptr %150, align 4, !tbaa !18
  %199 = load double, ptr %6, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %195, i32 noundef 7086, ptr noundef nonnull @.str.50, i32 noundef %196, i32 noundef %197, i32 noundef %198, double noundef %199, double noundef %147) #3
  br label %200

200:                                              ; preds = %121, %130, %191, %182
  %201 = getelementptr inbounds i8, ptr %0, i64 2712
  %202 = load i32, ptr %201, align 8, !tbaa !33
  store i32 0, ptr %201, align 8, !tbaa !33
  call void @qh_partitionpoint(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %.1169)
  store i32 %202, ptr %201, align 8, !tbaa !33
  %203 = getelementptr inbounds i8, ptr %0, i64 2756
  store i32 0, ptr %203, align 4, !tbaa !20
  br label %253

.critedge191:                                     ; preds = %.critedge
  %204 = getelementptr inbounds i8, ptr %0, i64 2756
  store i32 0, ptr %204, align 4, !tbaa !20
  store double %139, ptr %107, align 8, !tbaa !28
  %205 = getelementptr inbounds i8, ptr %0, i64 552
  %206 = load double, ptr %205, align 8, !tbaa !34
  %207 = fcmp ogt double %139, %206
  br i1 %207, label %211, label %208

208:                                              ; preds = %.critedge191
  %209 = load i32, ptr %10, align 8, !tbaa !11
  %210 = icmp sgt i32 %209, 2
  br i1 %210, label %211, label %222

211:                                              ; preds = %208, %.critedge191
  %212 = getelementptr inbounds i8, ptr %0, i64 2424
  %213 = load ptr, ptr %212, align 8, !tbaa !17
  %214 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %1) #3
  %215 = getelementptr inbounds i8, ptr %2, i64 108
  %216 = load i32, ptr %215, align 4, !tbaa !18
  %217 = load double, ptr %6, align 8, !tbaa !5
  %218 = getelementptr inbounds i8, ptr %.1169, i64 108
  %219 = load i32, ptr %218, align 4, !tbaa !18
  %220 = getelementptr inbounds i8, ptr %0, i64 2620
  %221 = load i32, ptr %220, align 4, !tbaa !35
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %213, i32 noundef 3041, ptr noundef nonnull @.str.51, i32 noundef %214, i32 noundef %216, double noundef %217, i32 noundef %219, i32 noundef %221) #3
  call void @qh_errprint(ptr noundef nonnull %0, ptr noundef nonnull @.str.52, ptr noundef %2, ptr noundef nonnull %.1169, ptr noundef null, ptr noundef null) #3
  br label %222

222:                                              ; preds = %208, %211, %105
  %223 = getelementptr inbounds i8, ptr %0, i64 144
  %224 = load i32, ptr %223, align 8, !tbaa !36
  %225 = getelementptr inbounds i8, ptr %0, i64 148
  %226 = load i32, ptr %225, align 4, !tbaa !24
  %227 = add i32 %226, %224
  %228 = getelementptr inbounds i8, ptr %0, i64 628
  %229 = load i32, ptr %228, align 4, !tbaa !25
  %230 = sub i32 0, %229
  %.not188 = icmp eq i32 %227, %230
  br i1 %.not188, label %243, label %231

231:                                              ; preds = %222
  %232 = getelementptr inbounds i8, ptr %.1169, i64 96
  %233 = load ptr, ptr %232, align 8, !tbaa !37
  %234 = call ptr @qh_setlast(ptr noundef %233) #3
  %.not189 = icmp eq ptr %234, null
  br i1 %.not189, label %.critedge193, label %235

235:                                              ; preds = %231
  %236 = getelementptr inbounds i8, ptr %0, i64 3608
  %237 = load i32, ptr %236, align 8, !tbaa !23
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %236, align 8, !tbaa !23
  call void @qh_distplane(ptr noundef nonnull %0, ptr noundef nonnull %234, ptr noundef nonnull %.1169, ptr noundef nonnull %7) #3
  %239 = load double, ptr %7, align 8, !tbaa !5
  %240 = load double, ptr %6, align 8, !tbaa !5
  %241 = fcmp olt double %239, %240
  br i1 %241, label %.critedge193, label %242

.critedge193:                                     ; preds = %231, %235
  call void @qh_setappend(ptr noundef nonnull %0, ptr noundef nonnull %232, ptr noundef %1) #3
  br label %243

242:                                              ; preds = %235
  call void @qh_setappend2ndlast(ptr noundef nonnull %0, ptr noundef nonnull %232, ptr noundef %1) #3
  br label %243

243:                                              ; preds = %.critedge193, %242, %222
  %244 = load i32, ptr %10, align 8, !tbaa !11
  %245 = icmp sgt i32 %244, 3
  br i1 %245, label %246, label %253

246:                                              ; preds = %243
  %247 = getelementptr inbounds i8, ptr %0, i64 2424
  %248 = load ptr, ptr %247, align 8, !tbaa !17
  %249 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %1) #3
  %250 = getelementptr inbounds i8, ptr %.1169, i64 108
  %251 = load i32, ptr %250, align 4, !tbaa !18
  %252 = load double, ptr %6, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %248, i32 noundef 4064, ptr noundef nonnull @.str.53, i32 noundef %249, i32 noundef %251, double noundef %252) #3
  br label %253

253:                                              ; preds = %243, %246, %200, %86, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  ret void
}

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

declare void @qh_distplane(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare ptr @qh_setlast(ptr noundef) local_unnamed_addr #1

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

declare ptr @qh_findbestnew(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare double @qh_getangle(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare double @qh_vertex_bestdist(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @qh_setappend2ndlast(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 = !{!"double", !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 136}
!12 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, 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, !6, i64 64, !6, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !13, i64 104, !10, i64 112, !10, i64 116, !13, i64 120, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !6, i64 160, !6, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !6, i64 192, !6, i64 200, !10, i64 208, !10, i64 212, !6, 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, !6, i64 448, !6, i64 456, !6, 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, !6, 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, !6, i64 592, !10, i64 600, !13, i64 608, !13, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !13, i64 648, !10, i64 656, !13, 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, !13, i64 1728, !13, i64 1736, !13, i64 1744, !13, i64 1752, !6, i64 1760, !6, i64 1768, !6, i64 1776, !6, i64 1784, !6, i64 1792, !6, i64 1800, !6, i64 1808, !6, i64 1816, !6, i64 1824, !6, i64 1832, !6, i64 1840, !6, i64 1848, !6, i64 1856, !6, i64 1864, !13, i64 1872, !6, i64 1880, !6, i64 1888, !6, i64 1896, !6, i64 1904, !10, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !13, i64 2408, !13, i64 2416, !13, i64 2424, !13, i64 2432, !10, i64 2440, !10, i64 2444, !10, i64 2448, !13, i64 2456, !13, i64 2464, !13, i64 2472, !13, i64 2480, !13, i64 2488, !10, i64 2496, !10, i64 2500, !13, i64 2504, !10, i64 2512, !13, i64 2520, !10, i64 2528, !13, i64 2536, !13, i64 2544, !13, i64 2552, !13, 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, !13, i64 2632, !13, i64 2640, !10, i64 2648, !10, i64 2652, !10, i64 2656, !6, i64 2664, !10, i64 2672, !6, i64 2680, !6, i64 2688, !6, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !6, i64 2728, !6, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !6, i64 2768, !6, i64 2776, !10, i64 2784, !10, i64 2788, !10, i64 2792, !10, i64 2796, !13, i64 2800, !13, i64 2808, !13, i64 2816, !13, i64 2824, !13, i64 2832, !13, i64 2840, !13, i64 2848, !13, i64 2856, !13, i64 2864, !10, i64 2872, !13, i64 2880, !13, i64 2888, !10, i64 2896, !10, i64 2900, !10, i64 2904, !13, i64 2912, !6, i64 2920, !6, i64 2928, !6, i64 2936, !6, i64 2944, !10, i64 2952, !10, i64 2956, !10, i64 2960, !10, i64 2964, !10, i64 2968, !10, i64 2972, !13, i64 2976, !10, i64 2984, !10, i64 2988, !7, i64 2992, !7, i64 3192, !10, i64 3232, !6, i64 3240, !13, i64 3248, !13, i64 3256, !13, i64 3264, !15, i64 3272, !16, i64 3424}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"qhmemT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !10, i64 64, !13, i64 72, !13, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144}
!16 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !10, i64 5320, !10, i64 5324, !10, i64 5328, !10, i64 5332, !6, i64 5336}
!17 = !{!12, !13, i64 2424}
!18 = !{!19, !10, i64 108}
!19 = !{!"facetT", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !7, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, 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}
!20 = !{!12, !10, i64 2756}
!21 = !{!12, !10, i64 2792}
!22 = !{!12, !10, i64 80}
!23 = !{!7, !7, i64 0}
!24 = !{!12, !10, i64 148}
!25 = !{!12, !10, i64 628}
!26 = !{!12, !6, i64 1880}
!27 = !{!12, !6, i64 168}
!28 = !{!12, !6, i64 2680}
!29 = !{!19, !13, i64 24}
!30 = !{!19, !13, i64 64}
!31 = !{!12, !6, i64 1808}
!32 = !{!12, !13, i64 2640}
!33 = !{!12, !10, i64 2712}
!34 = !{!12, !6, i64 552}
!35 = !{!12, !10, i64 2620}
!36 = !{!12, !10, i64 144}
!37 = !{!19, !13, i64 96}


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