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

@qh_qh = external global %struct.qhT, align 8
@.str.8 = external hidden unnamed_addr constant [86 x i8], align 1
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.9 = external hidden unnamed_addr constant [150 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [64 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_initmergesets() #1

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

declare void @qh_deletevisible() #1

declare void @qh_resetlists(i32 noundef, i32 noundef) #1

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

declare void @qh_freemergesets() #1

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

declare i32 @qh_setsize(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

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

23:                                               ; preds = %3
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 225), ptr noundef %24)
  br label %25

25:                                               ; preds = %23, %3
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %30, label %28

28:                                               ; preds = %25
  %29 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %29, i32 noundef 6213, ptr noundef @.str.8)
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %30

30:                                               ; preds = %28, %25
  call void @qh_detmaxoutside()
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %54

33:                                               ; preds = %30
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = call ptr @qh_findbest(ptr noundef %34, ptr noundef %35, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef %8, ptr noundef %13, ptr noundef %14)
  store ptr %36, ptr %6, align 8, !tbaa !5
  %37 = load i32, ptr %14, align 4, !tbaa !9
  %38 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 175), align 8, !tbaa !16
  %39 = add nsw i32 %38, %37
  store i32 %39, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 175), align 8, !tbaa !16
  %40 = load i32, ptr %13, align 4, !tbaa !9
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %53, label %42

42:                                               ; preds = %33
  %43 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 160), align 8, !tbaa !16
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 160), align 8, !tbaa !16
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.facetT, ptr %45, i32 0, i32 15
  %47 = load i32, ptr %46, align 8
  %48 = and i32 %47, -262145
  %49 = or i32 %48, 262144
  store i32 %49, ptr %46, align 8
  %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 204), align 8, !tbaa !17
  call void @qh_partitioncoplanar(ptr noundef %50, ptr noundef %51, ptr noundef %8, i32 noundef %52)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %297

53:                                               ; preds = %33
  br label %54

54:                                               ; preds = %53, %30
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_buildtracing(ptr noundef %55, ptr noundef %56)
  %57 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 89), align 4, !tbaa !18
  %58 = icmp slt i32 %57, 0
  br i1 %58, label %59, label %71

59:                                               ; preds = %54
  %60 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !19
  %61 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 89), align 4, !tbaa !18
  %62 = sub nsw i32 0, %61
  %63 = sub nsw i32 %62, 1
  %64 = icmp eq i32 %60, %63
  br i1 %64, label %65, label %71

65:                                               ; preds = %59
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.facetT, ptr %66, i32 0, i32 15
  %68 = load i32, ptr %67, align 8
  %69 = and i32 %68, -262145
  %70 = or i32 %69, 262144
  store i32 %70, ptr %67, align 8
  store i32 0, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %297

71:                                               ; preds = %59, %54
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_findhorizon(ptr noundef %72, ptr noundef %73, ptr noundef %16, ptr noundef %17)
  %74 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 48), align 4, !tbaa !20
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %92

76:                                               ; preds = %71
  %77 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !21
  %78 = icmp ne ptr %77, null
  br i1 %78, label %92, label %79

79:                                               ; preds = %76
  %80 = load i32, ptr %16, align 4, !tbaa !9
  %81 = load i32, ptr %17, align 4, !tbaa !9
  %82 = add nsw i32 %80, %81
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %92, label %84

84:                                               ; preds = %79
  %85 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 158), align 8, !tbaa !16
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 158), align 8, !tbaa !16
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.facetT, ptr %87, i32 0, i32 15
  %89 = load i32, ptr %88, align 8
  %90 = and i32 %89, -262145
  %91 = or i32 %90, 262144
  store i32 %91, ptr %88, align 8
  call void @qh_resetlists(i32 noundef 0, i32 noundef 1)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %297

92:                                               ; preds = %79, %76, %71
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = load i32, ptr %17, align 4, !tbaa !9
  %96 = call ptr @qh_buildcone(ptr noundef %93, ptr noundef %94, i32 noundef %95, ptr noundef %10)
  store ptr %96, ptr %12, align 8, !tbaa !5
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = icmp ne ptr %97, null
  br i1 %98, label %126, label %99

99:                                               ; preds = %92
  %100 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 48), align 4, !tbaa !20
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %99
  store i32 1, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %297

103:                                              ; preds = %99
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = icmp ne ptr %104, null
  br i1 %105, label %106, label %125

106:                                              ; preds = %103
  %107 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 213), align 8, !tbaa !22
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 213), align 8, !tbaa !22
  %109 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 179), align 4, !tbaa !23
  %110 = icmp sge i32 %107, %109
  br i1 %110, label %111, label %121

111:                                              ; preds = %106
  %112 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %113 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 213), align 8, !tbaa !22
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = call i32 @qh_pointid(ptr noundef %114)
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.facetT, ptr %116, i32 0, i32 14
  %118 = load i32, ptr %117, align 4, !tbaa !24
  %119 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 179), align 4, !tbaa !23
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %112, i32 noundef 6296, ptr noundef @.str.9, i32 noundef %113, i32 noundef %115, i32 noundef %118, i32 noundef %119)
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_errexit(i32 noundef 5, ptr noundef %120, ptr noundef null)
  br label %121

121:                                              ; preds = %111, %106
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = call i32 @qh_addpoint(ptr noundef %122, ptr noundef %123, i32 noundef 1)
  store i32 %124, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %297

125:                                              ; preds = %103
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 213), align 8, !tbaa !22
  store i32 1, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %297

126:                                              ; preds = %92
  %127 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 213), align 8, !tbaa !22
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %141

129:                                              ; preds = %126
  %130 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 196), align 8, !tbaa !16
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 196), align 8, !tbaa !16
  %132 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 213), align 8, !tbaa !22
  %133 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 198), align 8, !tbaa !16
  %134 = add nsw i32 %133, %132
  store i32 %134, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 198), align 8, !tbaa !16
  %135 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 197), align 8, !tbaa !16
  %136 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 213), align 8, !tbaa !22
  %137 = icmp slt i32 %135, %136
  br i1 %137, label %138, label %140

138:                                              ; preds = %129
  %139 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 213), align 8, !tbaa !22
  store i32 %139, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 197), align 8, !tbaa !16
  br label %140

140:                                              ; preds = %138, %129
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 213), align 8, !tbaa !22
  br label %141

141:                                              ; preds = %140, %126
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.vertexT, ptr %142, i32 0, i32 2
  %144 = load ptr, ptr %143, align 8, !tbaa !26
  %145 = call i32 @qh_pointid(ptr noundef %144)
  store i32 %145, ptr %18, align 4, !tbaa !9
  %146 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 187), align 8, !tbaa !16
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 187), align 8, !tbaa !16
  %148 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 88), align 8, !tbaa !28
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %161

150:                                              ; preds = %141
  %151 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !19
  %152 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 88), align 8, !tbaa !28
  %153 = sub nsw i32 %152, 1
  %154 = icmp eq i32 %151, %153
  br i1 %154, label %155, label %161

155:                                              ; preds = %150
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.facetT, ptr %156, i32 0, i32 15
  %158 = load i32, ptr %157, align 8
  %159 = and i32 %158, -262145
  %160 = or i32 %159, 262144
  store i32 %160, ptr %157, align 8
  store i32 0, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %297

161:                                              ; preds = %150, %141
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 204), align 8, !tbaa !17
  %162 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 52), align 4, !tbaa !29
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %167, label %164

164:                                              ; preds = %161
  %165 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 37), align 4, !tbaa !30
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %167, label %201

167:                                              ; preds = %164, %161
  call void @qh_initmergesets()
  %168 = load i32, ptr %18, align 4, !tbaa !9
  %169 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 40), align 8, !tbaa !31
  %170 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 15), align 8, !tbaa !32
  call void @qh_premerge(i32 noundef %168, double noundef %169, double noundef %170)
  %171 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !16
  %172 = icmp sgt i32 %171, 50
  br i1 %172, label %173, label %174

173:                                              ; preds = %167
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 204), align 8, !tbaa !17
  br label %200

174:                                              ; preds = %167
  %175 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !33
  store ptr %175, ptr %11, align 8, !tbaa !5
  br label %176

176:                                              ; preds = %195, %174
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  %178 = icmp ne ptr %177, null
  br i1 %178, label %179, label %184

179:                                              ; preds = %176
  %180 = load ptr, ptr %11, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.facetT, ptr %180, i32 0, i32 7
  %182 = load ptr, ptr %181, align 8, !tbaa !34
  %183 = icmp ne ptr %182, null
  br label %184

184:                                              ; preds = %179, %176
  %185 = phi i1 [ false, %176 ], [ %183, %179 ]
  br i1 %185, label %186, label %199

186:                                              ; preds = %184
  %187 = load ptr, ptr %11, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.facetT, ptr %187, i32 0, i32 15
  %189 = load i32, ptr %188, align 8
  %190 = lshr i32 %189, 13
  %191 = and i32 %190, 1
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %194, label %193

193:                                              ; preds = %186
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 204), align 8, !tbaa !17
  br label %199

194:                                              ; preds = %186
  br label %195

195:                                              ; preds = %194
  %196 = load ptr, ptr %11, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.facetT, ptr %196, i32 0, i32 7
  %198 = load ptr, ptr %197, align 8, !tbaa !34
  store ptr %198, ptr %11, align 8, !tbaa !5
  br label %176, !llvm.loop !35

199:                                              ; preds = %193, %184
  br label %200

200:                                              ; preds = %199, %173
  br label %206

201:                                              ; preds = %164
  %202 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 10), align 4, !tbaa !37
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %205

204:                                              ; preds = %201
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 204), align 8, !tbaa !17
  br label %205

205:                                              ; preds = %204, %201
  br label %206

206:                                              ; preds = %205, %200
  %207 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !38
  %208 = icmp sge i32 %207, 4
  br i1 %208, label %209, label %211

209:                                              ; preds = %206
  %210 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 167), align 8, !tbaa !39
  call void @qh_checkpolygon(ptr noundef %210)
  br label %211

211:                                              ; preds = %209, %206
  call void @qh_partitionvisible(i32 noundef 0, ptr noundef %15)
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 204), align 8, !tbaa !17
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 205), align 4, !tbaa !40
  %212 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 179), align 8, !tbaa !16
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 179), align 8, !tbaa !16
  %214 = load i32, ptr %15, align 4, !tbaa !9
  %215 = sitofp i32 %214 to double
  %216 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !41
  %217 = sitofp i32 %216 to double
  %218 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 112), align 8, !tbaa !42
  %219 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 179), align 4, !tbaa !23
  %220 = sub nsw i32 %218, %219
  %221 = sitofp i32 %220 to double
  %222 = fmul double %217, %221
  %223 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 179), align 4, !tbaa !23
  %224 = sitofp i32 %223 to double
  %225 = fdiv double %222, %224
  %226 = fsub double %215, %225
  store double %226, ptr %9, align 8, !tbaa !43
  %227 = load double, ptr %9, align 8, !tbaa !43
  %228 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 180), align 8, !tbaa !16
  %229 = fadd double %228, %227
  store double %229, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 180), align 8, !tbaa !16
  %230 = load double, ptr %9, align 8, !tbaa !43
  %231 = load double, ptr %9, align 8, !tbaa !43
  %232 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 181), align 8, !tbaa !16
  %233 = call double @llvm.fmuladd.f64(double %230, double %231, double %232)
  store double %233, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 181), align 8, !tbaa !16
  call void @qh_deletevisible()
  %234 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 120), align 8, !tbaa !16
  %235 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 179), align 4, !tbaa !23
  %236 = icmp slt i32 %234, %235
  br i1 %236, label %237, label %239

237:                                              ; preds = %211
  %238 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 179), align 4, !tbaa !23
  store i32 %238, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 120), align 8, !tbaa !16
  br label %239

239:                                              ; preds = %237, %211
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 8, !tbaa !44
  %240 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !38
  %241 = icmp sge i32 %240, 4
  br i1 %241, label %242, label %249

242:                                              ; preds = %239
  %243 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 178), align 8, !tbaa !45
  %244 = icmp slt i32 %243, 200
  br i1 %244, label %245, label %246

245:                                              ; preds = %242
  call void @qh_printlists()
  br label %246

246:                                              ; preds = %245, %242
  %247 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !33
  call void @qh_printfacetlist(ptr noundef %247, ptr noundef null, i32 noundef 1)
  %248 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !46
  call void @qh_checkpolygon(ptr noundef %248)
  br label %261

249:                                              ; preds = %239
  %250 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 14), align 4, !tbaa !47
  %251 = icmp ne i32 %250, 0
  br i1 %251, label %252, label %260

252:                                              ; preds = %249
  %253 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 178), align 8, !tbaa !45
  %254 = icmp slt i32 %253, 1000
  br i1 %254, label %255, label %257

255:                                              ; preds = %252
  %256 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !46
  call void @qh_checkpolygon(ptr noundef %256)
  br label %259

257:                                              ; preds = %252
  %258 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !33
  call void @qh_checkpolygon(ptr noundef %258)
  br label %259

259:                                              ; preds = %257, %255
  br label %260

260:                                              ; preds = %259, %249
  br label %261

261:                                              ; preds = %260, %246
  %262 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 89), align 4, !tbaa !18
  %263 = icmp sgt i32 %262, 0
  br i1 %263, label %264, label %274

264:                                              ; preds = %261
  %265 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !19
  %266 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 89), align 4, !tbaa !18
  %267 = sub nsw i32 %266, 1
  %268 = icmp eq i32 %265, %267
  br i1 %268, label %269, label %274

269:                                              ; preds = %264
  %270 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 223), align 8, !tbaa !48
  %271 = call i32 @qh_setsize(ptr noundef %270)
  %272 = icmp sgt i32 %271, 0
  br i1 %272, label %273, label %274

273:                                              ; preds = %269
  store i32 0, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %297

274:                                              ; preds = %269, %264, %261
  call void @qh_resetlists(i32 noundef 1, i32 noundef 1)
  %275 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), align 8, !tbaa !49
  %276 = icmp ne ptr %275, null
  br i1 %276, label %277, label %279

277:                                              ; preds = %274
  %278 = load i32, ptr %18, align 4, !tbaa !9
  call void @qh_all_vertexmerges(i32 noundef %278, ptr noundef null, ptr noundef null)
  call void @qh_freemergesets()
  br label %279

279:                                              ; preds = %277, %274
  %280 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 89), align 4, !tbaa !18
  %281 = icmp sgt i32 %280, 0
  br i1 %281, label %282, label %288

282:                                              ; preds = %279
  %283 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !19
  %284 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 89), align 4, !tbaa !18
  %285 = sub nsw i32 %284, 1
  %286 = icmp eq i32 %283, %285
  br i1 %286, label %287, label %288

287:                                              ; preds = %282
  store i32 0, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %297

288:                                              ; preds = %282, %279
  %289 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !38
  %290 = icmp sge i32 %289, 2
  br i1 %290, label %291, label %296

291:                                              ; preds = %288
  %292 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %293 = load ptr, ptr %5, align 8, !tbaa !5
  %294 = call i32 @qh_pointid(ptr noundef %293)
  %295 = load double, ptr %9, align 8, !tbaa !43
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %292, i32 noundef 2056, ptr noundef @.str.10, i32 noundef %294, double noundef %295)
  br label %296

296:                                              ; preds = %291, %288
  store i32 1, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %297

297:                                              ; preds = %296, %287, %273, %155, %125, %121, %102, %84, %65, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %298 = load i32, ptr %4, align 4
  ret i32 %298
}

declare i32 @qh_pointid(ptr noundef) #1

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

declare void @qh_detmaxoutside() #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
declare dso_local void @qh_partitioncoplanar(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

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

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

declare void @qh_premerge(i32 noundef, double noundef, double noundef) #1

declare void @qh_checkpolygon(ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

declare void @qh_printlists() #1

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

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

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

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


; 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 global %struct.qhT, align 8
@.str.8 = external hidden unnamed_addr constant [86 x i8], align 1
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.9 = external hidden unnamed_addr constant [150 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [64 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_initmergesets() local_unnamed_addr #1

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

declare void @qh_deletevisible() local_unnamed_addr #1

declare void @qh_resetlists(i32 noundef, i32 noundef) local_unnamed_addr #1

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

declare void @qh_freemergesets() local_unnamed_addr #1

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

declare i32 @qh_setsize(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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @qh_addpoint(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = alloca double, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2672), align 8, !tbaa !9
  %11 = tail call i32 @qh_pointid(ptr noundef %0) #4
  %12 = icmp eq i32 %11, -1
  br i1 %12, label %13, label %14

13:                                               ; preds = %3
  tail call void @qh_setappend(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 2832), ptr noundef %0) #4
  br label %14

14:                                               ; preds = %13, %3
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %15, label %17

15:                                               ; preds = %14
  %16 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %16, i32 noundef 6213, ptr noundef nonnull @.str.8) #4
  tail call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null) #4
  br label %17

17:                                               ; preds = %15, %14
  tail call void @qh_detmaxoutside() #4
  %.not48 = icmp eq i32 %2, 0
  br i1 %.not48, label %31, label %18

18:                                               ; preds = %17
  %19 = call ptr @qh_findbest(ptr noundef %0, ptr noundef %1, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  %20 = load i32, ptr %7, align 4, !tbaa !5
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1400), align 8, !tbaa !15
  %22 = add nsw i32 %21, %20
  store i32 %22, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1400), align 8, !tbaa !15
  %23 = load i32, ptr %6, align 4, !tbaa !5
  %.not49 = icmp eq i32 %23, 0
  br i1 %.not49, label %24, label %31

24:                                               ; preds = %18
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1280), align 8, !tbaa !15
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1280), align 8, !tbaa !15
  %27 = getelementptr inbounds i8, ptr %19, i64 112
  %28 = load i32, ptr %27, align 8
  %29 = or i32 %28, 262144
  store i32 %29, ptr %27, align 8
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !16
  call void @qh_partitioncoplanar(ptr noundef %0, ptr noundef %19, ptr noundef nonnull %4, i32 noundef %30)
  br label %193

31:                                               ; preds = %18, %17
  %.038 = phi ptr [ %19, %18 ], [ %1, %17 ]
  call void @qh_buildtracing(ptr noundef %0, ptr noundef %.038)
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 524), align 4, !tbaa !17
  %33 = icmp slt i32 %32, 0
  br i1 %33, label %34, label %42

34:                                               ; preds = %31
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !18
  %36 = xor i32 %35, %32
  %37 = icmp eq i32 %36, -1
  br i1 %37, label %38, label %42

38:                                               ; preds = %34
  %39 = getelementptr inbounds i8, ptr %.038, i64 112
  %40 = load i32, ptr %39, align 8
  %41 = or i32 %40, 262144
  store i32 %41, ptr %39, align 8
  br label %193

42:                                               ; preds = %34, %31
  call void @qh_findhorizon(ptr noundef %0, ptr noundef %.038, ptr noundef nonnull %9, ptr noundef nonnull %10)
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 236), align 4, !tbaa !19
  %44 = icmp eq i32 %43, 0
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2632), align 8
  %46 = icmp ne ptr %45, null
  %or.cond = select i1 %44, i1 true, i1 %46
  %.pre = load i32, ptr %10, align 4, !tbaa !5
  br i1 %or.cond, label %56, label %47

47:                                               ; preds = %42
  %48 = load i32, ptr %9, align 4, !tbaa !5
  %49 = sub i32 0, %.pre
  %.not50 = icmp eq i32 %48, %49
  br i1 %.not50, label %50, label %56

50:                                               ; preds = %47
  %51 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1264), align 8, !tbaa !15
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1264), align 8, !tbaa !15
  %53 = getelementptr inbounds i8, ptr %.038, i64 112
  %54 = load i32, ptr %53, align 8
  %55 = or i32 %54, 262144
  store i32 %55, ptr %53, align 8
  call void @qh_resetlists(i32 noundef 0, i32 noundef 1) #4
  br label %193

56:                                               ; preds = %47, %42
  %57 = call ptr @qh_buildcone(ptr noundef %0, ptr noundef %.038, i32 noundef %.pre, ptr noundef nonnull %5)
  %.not51 = icmp eq ptr %57, null
  br i1 %.not51, label %58, label %76

58:                                               ; preds = %56
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 236), align 4, !tbaa !19
  %.not52 = icmp eq i32 %59, 0
  br i1 %.not52, label %60, label %193

60:                                               ; preds = %58
  %61 = load ptr, ptr %5, align 8, !tbaa !20
  %.not53 = icmp eq ptr %61, null
  br i1 %.not53, label %75, label %62

62:                                               ; preds = %60
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2760), align 8, !tbaa !21
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2760), align 8, !tbaa !21
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2572), align 4, !tbaa !22
  %.not54 = icmp slt i32 %63, %65
  br i1 %.not54, label %72, label %66

66:                                               ; preds = %62
  %67 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  %68 = call i32 @qh_pointid(ptr noundef %0) #4
  %69 = getelementptr inbounds i8, ptr %.038, i64 108
  %70 = load i32, ptr %69, align 4, !tbaa !23
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2572), align 4, !tbaa !22
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %67, i32 noundef 6296, ptr noundef nonnull @.str.9, i32 noundef %64, i32 noundef %68, i32 noundef %70, i32 noundef %71) #4
  call void @qh_errexit(i32 noundef 5, ptr noundef %.038, ptr noundef null) #4
  %.pre63 = load ptr, ptr %5, align 8, !tbaa !20
  br label %72

72:                                               ; preds = %66, %62
  %73 = phi ptr [ %.pre63, %66 ], [ %61, %62 ]
  %74 = call i32 @qh_addpoint(ptr noundef %0, ptr noundef %73, i32 noundef 1)
  br label %193

75:                                               ; preds = %60
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2760), align 8, !tbaa !21
  br label %193

76:                                               ; preds = %56
  %77 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2760), align 8, !tbaa !21
  %.not55 = icmp eq i32 %77, 0
  br i1 %.not55, label %87, label %78

78:                                               ; preds = %76
  %79 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1568), align 8, !tbaa !15
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1568), align 8, !tbaa !15
  %81 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1584), align 8, !tbaa !15
  %82 = add nsw i32 %81, %77
  store i32 %82, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1584), align 8, !tbaa !15
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1576), align 8, !tbaa !15
  %84 = icmp slt i32 %83, %77
  br i1 %84, label %85, label %86

85:                                               ; preds = %78
  store i32 %77, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1576), align 8, !tbaa !15
  br label %86

86:                                               ; preds = %85, %78
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2760), align 8, !tbaa !21
  br label %87

87:                                               ; preds = %86, %76
  %88 = getelementptr inbounds i8, ptr %57, i64 16
  %89 = load ptr, ptr %88, align 8, !tbaa !25
  %90 = call i32 @qh_pointid(ptr noundef %89) #4
  %91 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1496), align 8, !tbaa !15
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1496), align 8, !tbaa !15
  %93 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 520), align 8, !tbaa !27
  %.not56 = icmp eq i32 %93, 0
  br i1 %.not56, label %102, label %94

94:                                               ; preds = %87
  %95 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !18
  %96 = add nsw i32 %93, -1
  %97 = icmp eq i32 %95, %96
  br i1 %97, label %98, label %102

98:                                               ; preds = %94
  %99 = getelementptr inbounds i8, ptr %.038, i64 112
  %100 = load i32, ptr %99, align 8
  %101 = or i32 %100, 262144
  store i32 %101, ptr %99, align 8
  br label %193

102:                                              ; preds = %94, %87
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !16
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 252), align 4, !tbaa !28
  %104 = icmp ne i32 %103, 0
  %105 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 180), align 4
  %106 = icmp ne i32 %105, 0
  %or.cond3 = select i1 %104, i1 true, i1 %106
  br i1 %or.cond3, label %107, label %122

107:                                              ; preds = %102
  call void @qh_initmergesets() #4
  %108 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 192), align 8, !tbaa !29
  %109 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 64), align 8, !tbaa !30
  call void @qh_premerge(i32 noundef %90, double noundef %108, double noundef %109) #4
  %110 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !15
  %111 = icmp sgt i32 %110, 50
  br i1 %111, label %.critedge.sink.split, label %112

112:                                              ; preds = %107
  %113 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !31
  br label %114

114:                                              ; preds = %118, %112
  %.039 = phi ptr [ %113, %112 ], [ %117, %118 ]
  %.not58 = icmp eq ptr %.039, null
  br i1 %.not58, label %.critedge, label %115

115:                                              ; preds = %114
  %116 = getelementptr inbounds i8, ptr %.039, i64 56
  %117 = load ptr, ptr %116, align 8, !tbaa !32
  %.not59 = icmp eq ptr %117, null
  br i1 %.not59, label %.critedge, label %118

118:                                              ; preds = %115
  %119 = getelementptr inbounds i8, ptr %.039, i64 112
  %120 = load i32, ptr %119, align 8
  %121 = and i32 %120, 8192
  %.not60 = icmp eq i32 %121, 0
  br i1 %.not60, label %.critedge.sink.split, label %114, !llvm.loop !33

122:                                              ; preds = %102
  %123 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 44), align 4, !tbaa !35
  %.not57 = icmp eq i32 %123, 0
  br i1 %.not57, label %.critedge, label %.critedge.sink.split

.critedge.sink.split:                             ; preds = %118, %122, %107
  store i32 1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !16
  br label %.critedge

.critedge:                                        ; preds = %114, %115, %.critedge.sink.split, %122
  %124 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !36
  %125 = icmp sgt i32 %124, 3
  br i1 %125, label %126, label %128

126:                                              ; preds = %.critedge
  %127 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2488), align 8, !tbaa !37
  call void @qh_checkpolygon(ptr noundef %127) #4
  br label %128

128:                                              ; preds = %126, %.critedge
  call void @qh_partitionvisible(i32 noundef 0, ptr noundef nonnull %8)
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !16
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !38
  %129 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1432), align 8, !tbaa !15
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1432), align 8, !tbaa !15
  %131 = load i32, ptr %8, align 4, !tbaa !5
  %132 = sitofp i32 %131 to double
  %133 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !39
  %134 = sitofp i32 %133 to double
  %135 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !40
  %136 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2572), align 4, !tbaa !22
  %137 = sub nsw i32 %135, %136
  %138 = sitofp i32 %137 to double
  %139 = fmul double %134, %138
  %140 = sitofp i32 %136 to double
  %141 = fdiv double %139, %140
  %142 = fsub double %132, %141
  %143 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1440), align 8, !tbaa !15
  %144 = fadd double %143, %142
  store double %144, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1440), align 8, !tbaa !15
  %145 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1448), align 8, !tbaa !15
  %146 = call double @llvm.fmuladd.f64(double %142, double %142, double %145)
  store double %146, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1448), align 8, !tbaa !15
  call void @qh_deletevisible() #4
  %147 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 960), align 8, !tbaa !15
  %148 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2572), align 4, !tbaa !22
  %149 = icmp slt i32 %147, %148
  br i1 %149, label %150, label %151

150:                                              ; preds = %128
  store i32 %148, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 960), align 8, !tbaa !15
  br label %151

151:                                              ; preds = %150, %128
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2704), align 8, !tbaa !41
  %152 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !36
  %153 = icmp sgt i32 %152, 3
  br i1 %153, label %154, label %160

154:                                              ; preds = %151
  %155 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2568), align 8, !tbaa !42
  %156 = icmp slt i32 %155, 200
  br i1 %156, label %157, label %158

157:                                              ; preds = %154
  call void @qh_printlists() #4
  br label %158

158:                                              ; preds = %157, %154
  %159 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !31
  call void @qh_printfacetlist(ptr noundef %159, ptr noundef null, i32 noundef 1) #4
  br label %.sink.split

160:                                              ; preds = %151
  %161 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 60), align 4, !tbaa !43
  %.not61 = icmp eq i32 %161, 0
  br i1 %.not61, label %166, label %162

162:                                              ; preds = %160
  %163 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2568), align 8, !tbaa !42
  %164 = icmp slt i32 %163, 1000
  %. = select i1 %164, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480)
  br label %.sink.split

.sink.split:                                      ; preds = %162, %158
  %.sink64 = phi ptr [ getelementptr inbounds (i8, ptr @qh_qh, i64 2456), %158 ], [ %., %162 ]
  %165 = load ptr, ptr %.sink64, align 8, !tbaa !20
  call void @qh_checkpolygon(ptr noundef %165) #4
  br label %166

166:                                              ; preds = %.sink.split, %160
  %167 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 524), align 4, !tbaa !17
  %168 = icmp sgt i32 %167, 0
  br i1 %168, label %169, label %177

169:                                              ; preds = %166
  %170 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !18
  %171 = add nsw i32 %167, -1
  %172 = icmp eq i32 %170, %171
  br i1 %172, label %173, label %177

173:                                              ; preds = %169
  %174 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2816), align 8, !tbaa !44
  %175 = call i32 @qh_setsize(ptr noundef %174) #4
  %176 = icmp sgt i32 %175, 0
  br i1 %176, label %193, label %177

177:                                              ; preds = %173, %169, %166
  call void @qh_resetlists(i32 noundef 1, i32 noundef 1) #4
  %178 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2800), align 8, !tbaa !45
  %.not62 = icmp eq ptr %178, null
  br i1 %.not62, label %180, label %179

179:                                              ; preds = %177
  call void @qh_all_vertexmerges(i32 noundef %90, ptr noundef null, ptr noundef null) #4
  call void @qh_freemergesets() #4
  br label %180

180:                                              ; preds = %179, %177
  %181 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 524), align 4, !tbaa !17
  %182 = icmp sgt i32 %181, 0
  br i1 %182, label %183, label %187

183:                                              ; preds = %180
  %184 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !18
  %185 = add nsw i32 %181, -1
  %186 = icmp eq i32 %184, %185
  br i1 %186, label %193, label %187

187:                                              ; preds = %183, %180
  %188 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !36
  %189 = icmp sgt i32 %188, 1
  br i1 %189, label %190, label %193

190:                                              ; preds = %187
  %191 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  %192 = call i32 @qh_pointid(ptr noundef %0) #4
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %191, i32 noundef 2056, ptr noundef nonnull @.str.10, i32 noundef %192, double noundef %142) #4
  br label %193

193:                                              ; preds = %187, %190, %183, %173, %58, %98, %75, %72, %50, %38, %24
  %.0 = phi i32 [ 0, %38 ], [ 0, %98 ], [ %74, %72 ], [ 1, %75 ], [ 1, %50 ], [ 1, %24 ], [ 1, %58 ], [ 0, %173 ], [ 0, %183 ], [ 1, %190 ], [ 1, %187 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  ret i32 %.0
}

declare i32 @qh_pointid(ptr noundef) local_unnamed_addr #1

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

declare void @qh_detmaxoutside() 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
declare dso_local void @qh_partitioncoplanar(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

declare void @qh_premerge(i32 noundef, double noundef, double noundef) local_unnamed_addr #1

declare void @qh_checkpolygon(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

declare void @qh_printlists() local_unnamed_addr #1

declare void @qh_printfacetlist(ptr noundef, ptr noundef, i32 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

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


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