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

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

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

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.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, i32 noundef, ptr noundef, ...) #1

declare void @qh_errexit(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) #1

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

declare ptr @qh_findbest(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, i32 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  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
  store double 0.000000e+00, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !9
  %20 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %21 = icmp sge i32 %20, 4
  br i1 %21, label %22, label %39

22:                                               ; preds = %4
  %23 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = call i32 @qh_pointid(ptr noundef %24)
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.facetT, ptr %26, i32 0, i32 14
  %28 = load i32, ptr %27, align 4, !tbaa !17
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %34

31:                                               ; preds = %22
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = load double, ptr %32, align 8, !tbaa !11
  br label %35

34:                                               ; preds = %22
  br label %35

35:                                               ; preds = %34, %31
  %36 = phi double [ %33, %31 ], [ 0.000000e+00, %34 ]
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 212), align 4, !tbaa !19
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %23, i32 noundef 4090, ptr noundef @.str.42, i32 noundef %25, i32 noundef %28, double noundef %36, i32 noundef %37, i32 noundef %38)
  br label %39

39:                                               ; preds = %35, %4
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 219), align 8, !tbaa !20
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %112, label %42

42:                                               ; preds = %39
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %49

45:                                               ; preds = %42
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = call ptr @qh_findbestnew(ptr noundef %46, ptr noundef %47, ptr noundef %11, i32 noundef 1, ptr noundef %16, ptr noundef %15)
  store ptr %48, ptr %9, align 8, !tbaa !5
  br label %54

49:                                               ; preds = %42
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 17), align 8, !tbaa !21
  %53 = call ptr @qh_findbest(ptr noundef %50, ptr noundef %51, i32 noundef 1, i32 noundef 0, i32 noundef %52, ptr noundef %11, ptr noundef %16, ptr noundef %15)
  store ptr %53, ptr %9, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %49, %45
  %55 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 217), align 8, !tbaa !22
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 217), align 8, !tbaa !22
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 171), align 8, !tbaa !22
  %59 = add nsw i32 %58, %57
  store i32 %59, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 171), align 8, !tbaa !22
  %60 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 17), align 8, !tbaa !21
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %111, label %62

62:                                               ; preds = %54
  %63 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 32), align 4, !tbaa !23
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %111, label %65

65:                                               ; preds = %62
  %66 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 109), align 4, !tbaa !24
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %89

68:                                               ; preds = %65
  %69 = load double, ptr %11, align 8, !tbaa !11
  %70 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 146), align 8, !tbaa !25
  %71 = fneg double %70
  %72 = fcmp olt double %69, %71
  br i1 %72, label %73, label %88

73:                                               ; preds = %68
  %74 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 39), align 8, !tbaa !22
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 39), align 8, !tbaa !22
  %76 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %77 = icmp sge i32 %76, 4
  br i1 %77, label %78, label %87

78:                                               ; preds = %73
  %79 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = call i32 @qh_pointid(ptr noundef %80)
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.facetT, ptr %82, i32 0, i32 14
  %84 = load i32, ptr %83, align 4, !tbaa !17
  %85 = load double, ptr %11, align 8, !tbaa !11
  %86 = load i32, ptr %8, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %79, i32 noundef 4062, ptr noundef @.str.43, i32 noundef %81, i32 noundef %84, double noundef %85, i32 noundef %86)
  br label %87

87:                                               ; preds = %78, %73
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 212), align 4, !tbaa !19
  store i32 1, ptr %19, align 4
  br label %352

88:                                               ; preds = %68
  br label %110

89:                                               ; preds = %65
  %90 = load double, ptr %11, align 8, !tbaa !11
  %91 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 35), align 8, !tbaa !26
  %92 = fneg double %91
  %93 = fcmp olt double %90, %92
  br i1 %93, label %94, label %109

94:                                               ; preds = %89
  %95 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %96 = icmp sge i32 %95, 4
  br i1 %96, label %97, label %106

97:                                               ; preds = %94
  %98 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = call i32 @qh_pointid(ptr noundef %99)
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.facetT, ptr %101, i32 0, i32 14
  %103 = load i32, ptr %102, align 4, !tbaa !17
  %104 = load double, ptr %11, align 8, !tbaa !11
  %105 = load i32, ptr %8, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %98, i32 noundef 4063, ptr noundef @.str.44, i32 noundef %100, i32 noundef %103, double noundef %104, i32 noundef %105)
  br label %106

106:                                              ; preds = %97, %94
  %107 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 39), align 8, !tbaa !22
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 39), align 8, !tbaa !22
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 212), align 4, !tbaa !19
  store i32 1, ptr %19, align 4
  br label %352

109:                                              ; preds = %89
  br label %110

110:                                              ; preds = %109, %88
  br label %111

111:                                              ; preds = %110, %62, %54
  br label %116

112:                                              ; preds = %39
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %113, ptr %9, align 8, !tbaa !5
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = load double, ptr %114, align 8, !tbaa !11
  store double %115, ptr %11, align 8, !tbaa !11
  br label %116

116:                                              ; preds = %112, %111
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.facetT, ptr %117, i32 0, i32 15
  %119 = load i32, ptr %118, align 8
  %120 = lshr i32 %119, 11
  %121 = and i32 %120, 1
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %135

123:                                              ; preds = %116
  %124 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = call i32 @qh_pointid(ptr noundef %125)
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.facetT, ptr %127, i32 0, i32 14
  %129 = load i32, ptr %128, align 4, !tbaa !17
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.facetT, ptr %130, i32 0, i32 14
  %132 = load i32, ptr %131, align 4, !tbaa !17
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %124, i32 noundef 6405, ptr noundef @.str.45, i32 noundef %126, i32 noundef %129, i32 noundef %132)
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 5, ptr noundef %133, ptr noundef %134)
  br label %135

135:                                              ; preds = %123, %116
  %136 = load double, ptr %11, align 8, !tbaa !11
  %137 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 199), align 8, !tbaa !27
  %138 = fcmp ogt double %136, %137
  br i1 %138, label %139, label %305

139:                                              ; preds = %135
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = icmp ne ptr %140, null
  br i1 %141, label %181, label %142

142:                                              ; preds = %139
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  %145 = icmp ne ptr %143, %144
  br i1 %145, label %146, label %181

146:                                              ; preds = %142
  %147 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 170), align 8, !tbaa !22
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 170), align 8, !tbaa !22
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.facetT, ptr %149, i32 0, i32 3
  %151 = load ptr, ptr %150, align 8, !tbaa !28
  %152 = load ptr, ptr %9, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.facetT, ptr %152, i32 0, i32 3
  %154 = load ptr, ptr %153, align 8, !tbaa !28
  %155 = call double @qh_getangle(ptr noundef %151, ptr noundef %154)
  store double %155, ptr %12, align 8, !tbaa !11
  %156 = load double, ptr %12, align 8, !tbaa !11
  %157 = fcmp olt double %156, 0.000000e+00
  br i1 %157, label %158, label %180

158:                                              ; preds = %146
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.facetT, ptr %159, i32 0, i32 8
  %161 = load ptr, ptr %160, align 8, !tbaa !29
  %162 = call double @qh_vertex_bestdist(ptr noundef %161)
  store double %162, ptr %13, align 8, !tbaa !11
  %163 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 172), align 8, !tbaa !22
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 172), align 8, !tbaa !22
  %165 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %166 = icmp sge i32 %165, 2
  br i1 %166, label %167, label %179

167:                                              ; preds = %158
  %168 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = call i32 @qh_pointid(ptr noundef %169)
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.facetT, ptr %171, i32 0, i32 14
  %173 = load i32, ptr %172, align 4, !tbaa !17
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.facetT, ptr %174, i32 0, i32 14
  %176 = load i32, ptr %175, align 4, !tbaa !17
  %177 = load double, ptr %11, align 8, !tbaa !11
  %178 = load double, ptr %12, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %168, i32 noundef 2058, ptr noundef @.str.46, i32 noundef %170, i32 noundef %173, i32 noundef %176, double noundef %177, double noundef %178)
  br label %179

179:                                              ; preds = %167, %158
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %180

180:                                              ; preds = %179, %146
  br label %181

181:                                              ; preds = %180, %142, %139
  %182 = load i32, ptr %18, align 4, !tbaa !9
  %183 = icmp ne i32 %182, 0
  br i1 %183, label %274, label %184

184:                                              ; preds = %181
  %185 = load double, ptr %11, align 8, !tbaa !11
  %186 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 137), align 8, !tbaa !30
  %187 = fmul double %186, 3.000000e+01
  %188 = fcmp ogt double %185, %187
  br i1 %188, label %189, label %273

189:                                              ; preds = %184
  %190 = load ptr, ptr %9, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.facetT, ptr %190, i32 0, i32 8
  %192 = load ptr, ptr %191, align 8, !tbaa !29
  %193 = call double @qh_vertex_bestdist(ptr noundef %192)
  store double %193, ptr %13, align 8, !tbaa !11
  %194 = load ptr, ptr %6, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.facetT, ptr %194, i32 0, i32 14
  %196 = load i32, ptr %195, align 4, !tbaa !17
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.facetT, ptr %197, i32 0, i32 14
  %199 = load i32, ptr %198, align 4, !tbaa !17
  %200 = icmp eq i32 %196, %199
  br i1 %200, label %201, label %221

201:                                              ; preds = %189
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.facetT, ptr %202, i32 0, i32 14
  %204 = load i32, ptr %203, align 4, !tbaa !17
  %205 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 212), align 4, !tbaa !19
  %206 = icmp eq i32 %204, %205
  br i1 %206, label %207, label %217

207:                                              ; preds = %201
  %208 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = call i32 @qh_pointid(ptr noundef %209)
  %211 = load ptr, ptr %6, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.facetT, ptr %211, i32 0, i32 14
  %213 = load i32, ptr %212, align 4, !tbaa !17
  %214 = load double, ptr %11, align 8, !tbaa !11
  %215 = load double, ptr %13, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %208, i32 noundef 6404, ptr noundef @.str.47, i32 noundef %210, i32 noundef %213, double noundef %214, double noundef %215)
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_errexit(i32 noundef 5, ptr noundef %216, ptr noundef null)
  br label %217

217:                                              ; preds = %207, %201
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.facetT, ptr %218, i32 0, i32 14
  %220 = load i32, ptr %219, align 4, !tbaa !17
  store i32 %220, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 212), align 4, !tbaa !19
  br label %221

221:                                              ; preds = %217, %189
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 193), align 8, !tbaa !31
  %224 = icmp eq ptr %222, %223
  br i1 %224, label %225, label %238

225:                                              ; preds = %221
  %226 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %227 = load ptr, ptr %5, align 8, !tbaa !5
  %228 = call i32 @qh_pointid(ptr noundef %227)
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.facetT, ptr %229, i32 0, i32 14
  %231 = load i32, ptr %230, align 4, !tbaa !17
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.facetT, ptr %232, i32 0, i32 14
  %234 = load i32, ptr %233, align 4, !tbaa !17
  %235 = load double, ptr %11, align 8, !tbaa !11
  %236 = load double, ptr %13, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %226, i32 noundef 6425, ptr noundef @.str.48, i32 noundef %228, i32 noundef %231, i32 noundef %234, double noundef %235, double noundef %236)
  %237 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_errexit(i32 noundef 7, ptr noundef %237, ptr noundef null)
  br label %238

238:                                              ; preds = %225, %221
  %239 = load double, ptr %13, align 8, !tbaa !11
  %240 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 137), align 8, !tbaa !30
  %241 = fmul double 2.000000e+00, %240
  %242 = fmul double %241, 3.000000e+01
  %243 = fcmp olt double %239, %242
  br i1 %243, label %244, label %258

244:                                              ; preds = %238
  %245 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 178), align 8, !tbaa !22
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 178), align 8, !tbaa !22
  %247 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = call i32 @qh_pointid(ptr noundef %248)
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.facetT, ptr %250, i32 0, i32 14
  %252 = load i32, ptr %251, align 4, !tbaa !17
  %253 = load ptr, ptr %9, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.facetT, ptr %253, i32 0, i32 14
  %255 = load i32, ptr %254, align 4, !tbaa !17
  %256 = load double, ptr %11, align 8, !tbaa !11
  %257 = load double, ptr %13, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %247, i32 noundef 7085, ptr noundef @.str.49, i32 noundef %249, i32 noundef %252, i32 noundef %255, double noundef %256, double noundef %257)
  br label %272

258:                                              ; preds = %238
  %259 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 173), align 8, !tbaa !22
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 173), align 8, !tbaa !22
  %261 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  %263 = call i32 @qh_pointid(ptr noundef %262)
  %264 = load ptr, ptr %6, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.facetT, ptr %264, i32 0, i32 14
  %266 = load i32, ptr %265, align 4, !tbaa !17
  %267 = load ptr, ptr %9, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.facetT, ptr %267, i32 0, i32 14
  %269 = load i32, ptr %268, align 4, !tbaa !17
  %270 = load double, ptr %11, align 8, !tbaa !11
  %271 = load double, ptr %13, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %261, i32 noundef 7086, ptr noundef @.str.50, i32 noundef %263, i32 noundef %266, i32 noundef %269, double noundef %270, double noundef %271)
  br label %272

272:                                              ; preds = %258, %244
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %273

273:                                              ; preds = %272, %184
  br label %274

274:                                              ; preds = %273, %181
  %275 = load i32, ptr %18, align 4, !tbaa !9
  %276 = icmp ne i32 %275, 0
  br i1 %276, label %277, label %282

277:                                              ; preds = %274
  %278 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 204), align 8, !tbaa !32
  store i32 %278, ptr %17, align 4, !tbaa !9
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 204), align 8, !tbaa !32
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_partitionpoint(ptr noundef %279, ptr noundef %280)
  %281 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %281, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 204), align 8, !tbaa !32
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 212), align 4, !tbaa !19
  store i32 1, ptr %19, align 4
  br label %352

282:                                              ; preds = %274
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 212), align 4, !tbaa !19
  %283 = load double, ptr %11, align 8, !tbaa !11
  store double %283, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 199), align 8, !tbaa !27
  %284 = load double, ptr %11, align 8, !tbaa !11
  %285 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 95), align 8, !tbaa !33
  %286 = fcmp ogt double %284, %285
  br i1 %286, label %290, label %287

287:                                              ; preds = %282
  %288 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %289 = icmp sge i32 %288, 3
  br i1 %289, label %290, label %304

290:                                              ; preds = %287, %282
  %291 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %292 = load ptr, ptr %5, align 8, !tbaa !5
  %293 = call i32 @qh_pointid(ptr noundef %292)
  %294 = load ptr, ptr %6, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.facetT, ptr %294, i32 0, i32 14
  %296 = load i32, ptr %295, align 4, !tbaa !17
  %297 = load double, ptr %11, align 8, !tbaa !11
  %298 = load ptr, ptr %9, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.facetT, ptr %298, i32 0, i32 14
  %300 = load i32, ptr %299, align 4, !tbaa !17
  %301 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !34
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %291, i32 noundef 3041, ptr noundef @.str.51, i32 noundef %293, i32 noundef %296, double noundef %297, i32 noundef %300, i32 noundef %301)
  %302 = load ptr, ptr %6, align 8, !tbaa !5
  %303 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_errprint(ptr noundef @.str.52, ptr noundef %302, ptr noundef %303, ptr noundef null, ptr noundef null)
  br label %304

304:                                              ; preds = %290, %287
  br label %305

305:                                              ; preds = %304, %135
  %306 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 31), align 8, !tbaa !35
  %307 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 32), align 4, !tbaa !23
  %308 = add i32 %306, %307
  %309 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 109), align 4, !tbaa !24
  %310 = add i32 %308, %309
  %311 = icmp ne i32 %310, 0
  br i1 %311, label %312, label %340

312:                                              ; preds = %305
  %313 = load ptr, ptr %9, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.facetT, ptr %313, i32 0, i32 12
  %315 = load ptr, ptr %314, align 8, !tbaa !36
  %316 = call ptr @qh_setlast(ptr noundef %315)
  store ptr %316, ptr %10, align 8, !tbaa !5
  %317 = load ptr, ptr %10, align 8, !tbaa !5
  %318 = icmp ne ptr %317, null
  br i1 %318, label %319, label %324

319:                                              ; preds = %312
  %320 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 23), align 8, !tbaa !22
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 23), align 8, !tbaa !22
  %322 = load ptr, ptr %10, align 8, !tbaa !5
  %323 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %322, ptr noundef %323, ptr noundef %14)
  br label %324

324:                                              ; preds = %319, %312
  %325 = load ptr, ptr %10, align 8, !tbaa !5
  %326 = icmp ne ptr %325, null
  br i1 %326, label %327, label %331

327:                                              ; preds = %324
  %328 = load double, ptr %14, align 8, !tbaa !11
  %329 = load double, ptr %11, align 8, !tbaa !11
  %330 = fcmp olt double %328, %329
  br i1 %330, label %331, label %335

331:                                              ; preds = %327, %324
  %332 = load ptr, ptr %9, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.facetT, ptr %332, i32 0, i32 12
  %334 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %333, ptr noundef %334)
  br label %339

335:                                              ; preds = %327
  %336 = load ptr, ptr %9, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.facetT, ptr %336, i32 0, i32 12
  %338 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setappend2ndlast(ptr noundef %337, ptr noundef %338)
  br label %339

339:                                              ; preds = %335, %331
  br label %340

340:                                              ; preds = %339, %305
  %341 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %342 = icmp sge i32 %341, 4
  br i1 %342, label %343, label %351

343:                                              ; preds = %340
  %344 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %345 = load ptr, ptr %5, align 8, !tbaa !5
  %346 = call i32 @qh_pointid(ptr noundef %345)
  %347 = load ptr, ptr %9, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.facetT, ptr %347, i32 0, i32 14
  %349 = load i32, ptr %348, align 4, !tbaa !17
  %350 = load double, ptr %11, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %344, i32 noundef 4064, ptr noundef @.str.53, i32 noundef %346, i32 noundef %349, double noundef %350)
  br label %351

351:                                              ; preds = %343, %340
  store i32 0, ptr %19, align 4
  br label %352

352:                                              ; preds = %351, %277, %106, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  %353 = load i32, ptr %19, align 4
  switch i32 %353, label %355 [
    i32 0, label %354
    i32 1, label %354
  ]

354:                                              ; preds = %352, %352
  ret void

355:                                              ; preds = %352
  unreachable
}

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_errexit2(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) #2

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

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

declare double @qh_vertex_bestdist(ptr noundef) #1

declare void @qh_setappend2ndlast(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, !6, i64 2984, !10, i64 2992}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !6, i64 2424}
!17 = !{!18, !10, i64 108}
!18 = !{!"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}
!19 = !{!14, !10, i64 2756}
!20 = !{!14, !10, i64 2792}
!21 = !{!14, !10, i64 80}
!22 = !{!7, !7, i64 0}
!23 = !{!14, !10, i64 148}
!24 = !{!14, !10, i64 628}
!25 = !{!14, !12, i64 1880}
!26 = !{!14, !12, i64 168}
!27 = !{!14, !12, i64 2680}
!28 = !{!18, !6, i64 24}
!29 = !{!18, !6, i64 64}
!30 = !{!14, !12, i64 1808}
!31 = !{!14, !6, i64 2640}
!32 = !{!14, !10, i64 2712}
!33 = !{!14, !12, i64 552}
!34 = !{!14, !10, i64 2620}
!35 = !{!14, !10, i64 144}
!36 = !{!18, !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"

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

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.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, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

declare void @qh_errexit(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) local_unnamed_addr #1

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

declare ptr @qh_findbest(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 readonly %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !11
  %10 = icmp sgt i32 %9, 3
  br i1 %10, label %11, label %21

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

16:                                               ; preds = %11
  %17 = load double, ptr %2, align 8, !tbaa !5
  br label %18

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

21:                                               ; preds = %18, %4
  store i32 1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2792), align 8, !tbaa !19
  %.not94 = icmp ne ptr %2, null
  br i1 %.not94, label %73, label %22

22:                                               ; preds = %21
  %.not95 = icmp eq i32 %3, 0
  br i1 %.not95, label %25, label %23

23:                                               ; preds = %22
  %24 = call ptr @qh_findbestnew(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %5, i32 noundef 1, ptr noundef nonnull %8, ptr noundef nonnull %7) #3
  br label %28

25:                                               ; preds = %22
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 80), align 8, !tbaa !20
  %27 = call ptr @qh_findbest(ptr noundef %0, ptr noundef %1, i32 noundef 1, i32 noundef 0, i32 noundef %26, ptr noundef nonnull %5, ptr noundef nonnull %8, ptr noundef nonnull %7) #3
  br label %28

28:                                               ; preds = %25, %23
  %.083 = phi ptr [ %24, %23 ], [ %27, %25 ]
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1736), align 8, !tbaa !21
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1736), align 8, !tbaa !21
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1368), align 8, !tbaa !21
  %33 = add nsw i32 %32, %31
  store i32 %33, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1368), align 8, !tbaa !21
  %34 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 80), align 8, !tbaa !20
  %35 = icmp ne i32 %34, 0
  %36 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 148), align 4
  %37 = icmp ne i32 %36, 0
  %or.cond = select i1 %35, i1 true, i1 %37
  br i1 %or.cond, label %75, label %38

38:                                               ; preds = %28
  %39 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 628), align 4, !tbaa !22
  %.not96 = icmp eq i32 %39, 0
  %40 = load double, ptr %5, align 8, !tbaa !5
  br i1 %.not96, label %57, label %41

41:                                               ; preds = %38
  %42 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1880), align 8, !tbaa !23
  %43 = fneg double %42
  %44 = fcmp olt double %40, %43
  br i1 %44, label %45, label %75

45:                                               ; preds = %41
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 312), align 8, !tbaa !21
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 312), align 8, !tbaa !21
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !11
  %49 = icmp sgt i32 %48, 3
  br i1 %49, label %50, label %56

50:                                               ; preds = %45
  %51 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  %52 = call i32 @qh_pointid(ptr noundef %0) #3
  %53 = getelementptr inbounds i8, ptr %.083, i64 108
  %54 = load i32, ptr %53, align 4, !tbaa !16
  %55 = load double, ptr %5, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %51, i32 noundef 4062, ptr noundef nonnull @.str.43, i32 noundef %52, i32 noundef %54, double noundef %55, i32 noundef %3) #3
  br label %56

56:                                               ; preds = %50, %45
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2756), align 4, !tbaa !18
  br label %210

57:                                               ; preds = %38
  %58 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 168), align 8, !tbaa !24
  %59 = fneg double %58
  %60 = fcmp olt double %40, %59
  br i1 %60, label %61, label %75

61:                                               ; preds = %57
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !11
  %63 = icmp sgt i32 %62, 3
  br i1 %63, label %64, label %70

64:                                               ; preds = %61
  %65 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  %66 = call i32 @qh_pointid(ptr noundef %0) #3
  %67 = getelementptr inbounds i8, ptr %.083, i64 108
  %68 = load i32, ptr %67, align 4, !tbaa !16
  %69 = load double, ptr %5, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %65, i32 noundef 4063, ptr noundef nonnull @.str.44, i32 noundef %66, i32 noundef %68, double noundef %69, i32 noundef %3) #3
  br label %70

70:                                               ; preds = %64, %61
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 312), align 8, !tbaa !21
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 312), align 8, !tbaa !21
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2756), align 4, !tbaa !18
  br label %210

73:                                               ; preds = %21
  %74 = load double, ptr %2, align 8, !tbaa !5
  store double %74, ptr %5, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %28, %57, %41, %73
  %.184 = phi ptr [ %1, %73 ], [ %.083, %28 ], [ %.083, %41 ], [ %.083, %57 ]
  %76 = getelementptr inbounds i8, ptr %.184, i64 112
  %77 = load i32, ptr %76, align 8
  %78 = and i32 %77, 2048
  %.not97 = icmp eq i32 %78, 0
  br i1 %.not97, label %86, label %79

79:                                               ; preds = %75
  %80 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  %81 = call i32 @qh_pointid(ptr noundef %0) #3
  %82 = getelementptr inbounds i8, ptr %1, i64 108
  %83 = load i32, ptr %82, align 4, !tbaa !16
  %84 = getelementptr inbounds i8, ptr %.184, i64 108
  %85 = load i32, ptr %84, align 4, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %80, i32 noundef 6405, ptr noundef nonnull @.str.45, i32 noundef %81, i32 noundef %83, i32 noundef %85) #3
  call void @qh_errexit2(i32 noundef 5, ptr noundef %1, ptr noundef nonnull %.184)
  br label %86

86:                                               ; preds = %79, %75
  %87 = load double, ptr %5, align 8, !tbaa !5
  %88 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2680), align 8, !tbaa !25
  %89 = fcmp ogt double %87, %88
  br i1 %89, label %90, label %184

90:                                               ; preds = %86
  %.not98 = icmp eq ptr %.184, %1
  %or.cond103 = or i1 %.not94, %.not98
  br i1 %or.cond103, label %.critedge, label %91

91:                                               ; preds = %90
  %92 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1360), align 8, !tbaa !21
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1360), align 8, !tbaa !21
  %94 = getelementptr inbounds i8, ptr %1, i64 24
  %95 = load ptr, ptr %94, align 8, !tbaa !26
  %96 = getelementptr inbounds i8, ptr %.184, i64 24
  %97 = load ptr, ptr %96, align 8, !tbaa !26
  %98 = call double @qh_getangle(ptr noundef %95, ptr noundef %97) #3
  %99 = fcmp olt double %98, 0.000000e+00
  br i1 %99, label %100, label %..critedge_crit_edge

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

100:                                              ; preds = %91
  %101 = getelementptr inbounds i8, ptr %.184, i64 64
  %102 = load ptr, ptr %101, align 8, !tbaa !27
  %103 = call double @qh_vertex_bestdist(ptr noundef %102) #3
  %104 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1376), align 8, !tbaa !21
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1376), align 8, !tbaa !21
  %106 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !11
  %107 = icmp sgt i32 %106, 1
  br i1 %107, label %108, label %169

108:                                              ; preds = %100
  %109 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  %110 = call i32 @qh_pointid(ptr noundef %0) #3
  %111 = getelementptr inbounds i8, ptr %1, i64 108
  %112 = load i32, ptr %111, align 4, !tbaa !16
  %113 = getelementptr inbounds i8, ptr %.184, i64 108
  %114 = load i32, ptr %113, align 4, !tbaa !16
  %115 = load double, ptr %5, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %109, i32 noundef 2058, ptr noundef nonnull @.str.46, i32 noundef %110, i32 noundef %112, i32 noundef %114, double noundef %115, double noundef %98) #3
  br label %169

.critedge:                                        ; preds = %..critedge_crit_edge, %90
  %116 = phi double [ %.pre, %..critedge_crit_edge ], [ %87, %90 ]
  %117 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1808), align 8, !tbaa !28
  %118 = fmul double %117, 3.000000e+01
  %119 = fcmp ogt double %116, %118
  br i1 %119, label %120, label %.critedge105

120:                                              ; preds = %.critedge
  %121 = getelementptr inbounds i8, ptr %.184, i64 64
  %122 = load ptr, ptr %121, align 8, !tbaa !27
  %123 = call double @qh_vertex_bestdist(ptr noundef %122) #3
  %124 = getelementptr inbounds i8, ptr %1, i64 108
  %125 = load i32, ptr %124, align 4, !tbaa !16
  %126 = getelementptr inbounds i8, ptr %.184, i64 108
  %127 = load i32, ptr %126, align 4, !tbaa !16
  %128 = icmp eq i32 %125, %127
  br i1 %128, label %129, label %139

129:                                              ; preds = %120
  %130 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2756), align 4, !tbaa !18
  %131 = icmp eq i32 %125, %130
  br i1 %131, label %132, label %137

132:                                              ; preds = %129
  %133 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  %134 = call i32 @qh_pointid(ptr noundef %0) #3
  %135 = load i32, ptr %124, align 4, !tbaa !16
  %136 = load double, ptr %5, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %133, i32 noundef 6404, ptr noundef nonnull @.str.47, i32 noundef %134, i32 noundef %135, double noundef %136, double noundef %123) #3
  call void @qh_errexit(i32 noundef 5, ptr noundef nonnull %1, ptr noundef null) #3
  %.pre108 = load i32, ptr %124, align 4, !tbaa !16
  br label %137

137:                                              ; preds = %132, %129
  %138 = phi i32 [ %.pre108, %132 ], [ %125, %129 ]
  store i32 %138, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2756), align 4, !tbaa !18
  br label %139

139:                                              ; preds = %137, %120
  %140 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2640), align 8, !tbaa !29
  %141 = icmp eq ptr %140, %0
  br i1 %141, label %142, label %148

142:                                              ; preds = %139
  %143 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  %144 = call i32 @qh_pointid(ptr noundef %0) #3
  %145 = load i32, ptr %124, align 4, !tbaa !16
  %146 = load i32, ptr %126, align 4, !tbaa !16
  %147 = load double, ptr %5, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %143, i32 noundef 6425, ptr noundef nonnull @.str.48, i32 noundef %144, i32 noundef %145, i32 noundef %146, double noundef %147, double noundef %123) #3
  call void @qh_errexit(i32 noundef 7, ptr noundef nonnull %1, ptr noundef null) #3
  br label %148

148:                                              ; preds = %142, %139
  %149 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1808), align 8, !tbaa !28
  %150 = fmul double %149, 2.000000e+00
  %151 = fmul double %150, 3.000000e+01
  %152 = fcmp olt double %123, %151
  br i1 %152, label %153, label %161

153:                                              ; preds = %148
  %154 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1424), align 8, !tbaa !21
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1424), align 8, !tbaa !21
  %156 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  %157 = call i32 @qh_pointid(ptr noundef %0) #3
  %158 = load i32, ptr %124, align 4, !tbaa !16
  %159 = load i32, ptr %126, align 4, !tbaa !16
  %160 = load double, ptr %5, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %156, i32 noundef 7085, ptr noundef nonnull @.str.49, i32 noundef %157, i32 noundef %158, i32 noundef %159, double noundef %160, double noundef %123) #3
  br label %169

161:                                              ; preds = %148
  %162 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1384), align 8, !tbaa !21
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1384), align 8, !tbaa !21
  %164 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  %165 = call i32 @qh_pointid(ptr noundef %0) #3
  %166 = load i32, ptr %124, align 4, !tbaa !16
  %167 = load i32, ptr %126, align 4, !tbaa !16
  %168 = load double, ptr %5, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %164, i32 noundef 7086, ptr noundef nonnull @.str.50, i32 noundef %165, i32 noundef %166, i32 noundef %167, double noundef %168, double noundef %123) #3
  br label %169

169:                                              ; preds = %100, %108, %161, %153
  %170 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !30
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !30
  call void @qh_partitionpoint(ptr noundef %0, ptr noundef nonnull %.184)
  store i32 %170, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !30
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2756), align 4, !tbaa !18
  br label %210

.critedge105:                                     ; preds = %.critedge
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2756), align 4, !tbaa !18
  store double %116, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2680), align 8, !tbaa !25
  %171 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 552), align 8, !tbaa !31
  %172 = fcmp ogt double %116, %171
  %173 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8
  %174 = icmp sgt i32 %173, 2
  %or.cond3 = select i1 %172, i1 true, i1 %174
  br i1 %or.cond3, label %175, label %184

175:                                              ; preds = %.critedge105
  %176 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  %177 = call i32 @qh_pointid(ptr noundef %0) #3
  %178 = getelementptr inbounds i8, ptr %1, i64 108
  %179 = load i32, ptr %178, align 4, !tbaa !16
  %180 = load double, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds i8, ptr %.184, i64 108
  %182 = load i32, ptr %181, align 4, !tbaa !16
  %183 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !32
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %176, i32 noundef 3041, ptr noundef nonnull @.str.51, i32 noundef %177, i32 noundef %179, double noundef %180, i32 noundef %182, i32 noundef %183) #3
  call void @qh_errprint(ptr noundef nonnull @.str.52, ptr noundef %1, ptr noundef nonnull %.184, ptr noundef null, ptr noundef null) #3
  br label %184

184:                                              ; preds = %175, %.critedge105, %86
  %185 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 144), align 8, !tbaa !33
  %186 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 148), align 4, !tbaa !34
  %187 = add i32 %186, %185
  %188 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 628), align 4, !tbaa !22
  %189 = sub i32 0, %188
  %.not101 = icmp eq i32 %187, %189
  br i1 %.not101, label %201, label %190

190:                                              ; preds = %184
  %191 = getelementptr inbounds i8, ptr %.184, i64 96
  %192 = load ptr, ptr %191, align 8, !tbaa !35
  %193 = call ptr @qh_setlast(ptr noundef %192) #3
  %.not102 = icmp eq ptr %193, null
  br i1 %.not102, label %.critedge107, label %194

194:                                              ; preds = %190
  %195 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 184), align 8, !tbaa !21
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 184), align 8, !tbaa !21
  call void @qh_distplane(ptr noundef nonnull %193, ptr noundef nonnull %.184, ptr noundef nonnull %6) #3
  %197 = load double, ptr %6, align 8, !tbaa !5
  %198 = load double, ptr %5, align 8, !tbaa !5
  %199 = fcmp olt double %197, %198
  br i1 %199, label %.critedge107, label %200

.critedge107:                                     ; preds = %190, %194
  call void @qh_setappend(ptr noundef nonnull %191, ptr noundef %0) #3
  br label %201

200:                                              ; preds = %194
  call void @qh_setappend2ndlast(ptr noundef nonnull %191, ptr noundef %0) #3
  br label %201

201:                                              ; preds = %.critedge107, %200, %184
  %202 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !11
  %203 = icmp sgt i32 %202, 3
  br i1 %203, label %204, label %210

204:                                              ; preds = %201
  %205 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  %206 = call i32 @qh_pointid(ptr noundef %0) #3
  %207 = getelementptr inbounds i8, ptr %.184, i64 108
  %208 = load i32, ptr %207, align 4, !tbaa !16
  %209 = load double, ptr %5, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %205, i32 noundef 4064, ptr noundef nonnull @.str.53, i32 noundef %206, i32 noundef %208, double noundef %209) #3
  br label %210

210:                                              ; preds = %201, %204, %169, %70, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret void
}

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_errexit2(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) local_unnamed_addr #2

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

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

declare double @qh_vertex_bestdist(ptr noundef) local_unnamed_addr #1

declare void @qh_setappend2ndlast(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, !13, i64 2984, !10, i64 2992}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !13, i64 2424}
!16 = !{!17, !10, i64 108}
!17 = !{!"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}
!18 = !{!12, !10, i64 2756}
!19 = !{!12, !10, i64 2792}
!20 = !{!12, !10, i64 80}
!21 = !{!7, !7, i64 0}
!22 = !{!12, !10, i64 628}
!23 = !{!12, !6, i64 1880}
!24 = !{!12, !6, i64 168}
!25 = !{!12, !6, i64 2680}
!26 = !{!17, !13, i64 24}
!27 = !{!17, !13, i64 64}
!28 = !{!12, !6, i64 1808}
!29 = !{!12, !13, i64 2640}
!30 = !{!12, !10, i64 2712}
!31 = !{!12, !6, i64 552}
!32 = !{!12, !10, i64 2620}
!33 = !{!12, !10, i64 144}
!34 = !{!12, !10, i64 148}
!35 = !{!17, !13, i64 96}


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