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

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

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

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.3 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [51 x i8], align 1

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

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

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

declare i32 @qh_pointid(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_findbest(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca double, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !9
  store i32 %3, ptr %12, align 4, !tbaa !9
  store i32 %4, ptr %13, align 4, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  store double 0xFFDFFFFFFFFFFFFF, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  store ptr null, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  store ptr null, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %27 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  store i32 %27, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  %28 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !16
  %29 = add i32 %28, 1
  store i32 %29, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !16
  store i32 %29, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  store i32 0, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  store i32 1, ptr %26, align 4, !tbaa !9
  %30 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 90), align 8, !tbaa !17
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 90), align 8, !tbaa !17
  %32 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %33 = icmp sge i32 %32, 4
  br i1 %33, label %45, label %34

34:                                               ; preds = %8
  %35 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !18
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %69

37:                                               ; preds = %34
  %38 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 94), align 8, !tbaa !19
  %39 = icmp sge i32 %38, 0
  br i1 %39, label %40, label %69

40:                                               ; preds = %37
  %41 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 94), align 8, !tbaa !19
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = call i32 @qh_pointid(ptr noundef %42)
  %44 = icmp eq i32 %41, %43
  br i1 %44, label %45, label %69

45:                                               ; preds = %40, %8
  %46 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !18
  %47 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %48 = icmp sgt i32 %46, %47
  br i1 %48, label %49, label %51

49:                                               ; preds = %45
  %50 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !18
  store i32 %50, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  br label %51

51:                                               ; preds = %49, %45
  %52 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !20
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = call i32 @qh_pointid(ptr noundef %53)
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.facetT, ptr %55, i32 0, i32 14
  %57 = load i32, ptr %56, align 4, !tbaa !21
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 6), align 8, !tbaa !23
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %52, i32 noundef 8004, ptr noundef @.str.3, i32 noundef %54, i32 noundef %57, i32 noundef %58, i32 noundef %59, double noundef %60)
  %61 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !20
  %62 = load i32, ptr %26, align 4, !tbaa !9
  %63 = load i32, ptr %13, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %61, i32 noundef 8005, ptr noundef @.str.4, i32 noundef %62, i32 noundef %63)
  %64 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !20
  %65 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !24
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %64, i32 noundef 8006, ptr noundef @.str.5, i32 noundef %65)
  %66 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !20
  %67 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !17
  %68 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 199), align 8, !tbaa !25
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %66, i32 noundef 8007, ptr noundef @.str.6, i32 noundef %67, double noundef %68)
  br label %69

69:                                               ; preds = %51, %40, %37, %34
  %70 = load ptr, ptr %15, align 8, !tbaa !5
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %74

72:                                               ; preds = %69
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 1, ptr %73, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %72, %69
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.facetT, ptr %75, i32 0, i32 15
  %77 = load i32, ptr %76, align 8
  %78 = lshr i32 %77, 16
  %79 = and i32 %78, 1
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %117, label %81

81:                                               ; preds = %74
  %82 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 1, ptr %82, align 4, !tbaa !9
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %83, ptr noundef %84, ptr noundef %85)
  %86 = load i32, ptr %11, align 4, !tbaa !9
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %105, label %88

88:                                               ; preds = %81
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  %90 = load double, ptr %89, align 8, !tbaa !11
  %91 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 6), align 8, !tbaa !23
  %92 = fcmp oge double %90, %91
  br i1 %92, label %93, label %105

93:                                               ; preds = %88
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.facetT, ptr %94, i32 0, i32 15
  %96 = load i32, ptr %95, align 8
  %97 = lshr i32 %96, 17
  %98 = and i32 %97, 1
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %103

100:                                              ; preds = %93
  %101 = load i32, ptr %13, align 4, !tbaa !9
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %105, label %103

103:                                              ; preds = %100, %93
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %104, ptr %21, align 8, !tbaa !5
  br label %308

105:                                              ; preds = %100, %88, %81
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  %107 = load double, ptr %106, align 8, !tbaa !11
  store double %107, ptr %17, align 8, !tbaa !11
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.facetT, ptr %108, i32 0, i32 15
  %110 = load i32, ptr %109, align 8
  %111 = lshr i32 %110, 17
  %112 = and i32 %111, 1
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %116, label %114

114:                                              ; preds = %105
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %115, ptr %21, align 8, !tbaa !5
  br label %116

116:                                              ; preds = %114, %105
  br label %119

117:                                              ; preds = %74
  %118 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %118, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %117, %116
  %120 = load i32, ptr %24, align 4, !tbaa !9
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.facetT, ptr %121, i32 0, i32 13
  store i32 %120, ptr %122, align 8, !tbaa !26
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %123, ptr %18, align 8, !tbaa !5
  br label %124

124:                                              ; preds = %243, %119
  %125 = load ptr, ptr %18, align 8, !tbaa !5
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %245

127:                                              ; preds = %124
  %128 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %129 = icmp sge i32 %128, 4
  br i1 %129, label %130, label %145

130:                                              ; preds = %127
  %131 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !20
  %132 = load ptr, ptr %18, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.facetT, ptr %132, i32 0, i32 14
  %134 = load i32, ptr %133, align 4, !tbaa !21
  %135 = load double, ptr %17, align 8, !tbaa !11
  %136 = load ptr, ptr %21, align 8, !tbaa !5
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %142

138:                                              ; preds = %130
  %139 = load ptr, ptr %21, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.facetT, ptr %139, i32 0, i32 14
  %141 = load i32, ptr %140, align 4, !tbaa !21
  br label %143

142:                                              ; preds = %130
  br label %143

143:                                              ; preds = %142, %138
  %144 = phi i32 [ %141, %138 ], [ -1, %142 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %131, i32 noundef 4001, ptr noundef @.str.7, i32 noundef %134, double noundef %135, i32 noundef %144)
  br label %145

145:                                              ; preds = %143, %127
  %146 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %146, ptr %22, align 8, !tbaa !5
  store ptr null, ptr %19, align 8, !tbaa !5
  %147 = load ptr, ptr %18, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.facetT, ptr %147, i32 0, i32 10
  %149 = load ptr, ptr %148, align 8, !tbaa !27
  %150 = icmp ne ptr %149, null
  br i1 %150, label %151, label %243

151:                                              ; preds = %145
  %152 = load ptr, ptr %18, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.facetT, ptr %152, i32 0, i32 10
  %154 = load ptr, ptr %153, align 8, !tbaa !27
  %155 = getelementptr inbounds %struct.setT, ptr %154, i32 0, i32 1
  %156 = getelementptr inbounds [1 x %union.setelemT], ptr %155, i64 0, i64 0
  store ptr %156, ptr %20, align 8, !tbaa !5
  br label %157

157:                                              ; preds = %241, %179, %172, %151
  %158 = load ptr, ptr %20, align 8, !tbaa !5
  %159 = getelementptr inbounds ptr, ptr %158, i32 1
  store ptr %159, ptr %20, align 8, !tbaa !5
  %160 = load ptr, ptr %158, align 8, !tbaa !5
  store ptr %160, ptr %19, align 8, !tbaa !5
  %161 = icmp ne ptr %160, null
  br i1 %161, label %162, label %242

162:                                              ; preds = %157
  %163 = load ptr, ptr %19, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.facetT, ptr %163, i32 0, i32 15
  %165 = load i32, ptr %164, align 8
  %166 = lshr i32 %165, 10
  %167 = and i32 %166, 1
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %173, label %169

169:                                              ; preds = %162
  %170 = load i32, ptr %12, align 4, !tbaa !9
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %173

172:                                              ; preds = %169
  br label %157, !llvm.loop !28

173:                                              ; preds = %169, %162
  %174 = load ptr, ptr %19, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.facetT, ptr %174, i32 0, i32 13
  %176 = load i32, ptr %175, align 8, !tbaa !26
  %177 = load i32, ptr %24, align 4, !tbaa !9
  %178 = icmp eq i32 %176, %177
  br i1 %178, label %179, label %180

179:                                              ; preds = %173
  br label %157, !llvm.loop !28

180:                                              ; preds = %173
  %181 = load i32, ptr %24, align 4, !tbaa !9
  %182 = load ptr, ptr %19, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.facetT, ptr %182, i32 0, i32 13
  store i32 %181, ptr %183, align 8, !tbaa !26
  %184 = load ptr, ptr %19, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.facetT, ptr %184, i32 0, i32 15
  %186 = load i32, ptr %185, align 8
  %187 = lshr i32 %186, 16
  %188 = and i32 %187, 1
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %241, label %190

190:                                              ; preds = %180
  %191 = load ptr, ptr %16, align 8, !tbaa !5
  %192 = load i32, ptr %191, align 4, !tbaa !9
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %191, align 4, !tbaa !9
  %194 = load ptr, ptr %9, align 8, !tbaa !5
  %195 = load ptr, ptr %19, align 8, !tbaa !5
  %196 = load ptr, ptr %14, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %194, ptr noundef %195, ptr noundef %196)
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  %198 = load double, ptr %197, align 8, !tbaa !11
  %199 = load double, ptr %17, align 8, !tbaa !11
  %200 = fcmp ogt double %198, %199
  br i1 %200, label %201, label %240

201:                                              ; preds = %190
  %202 = load i32, ptr %11, align 4, !tbaa !9
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %221, label %204

204:                                              ; preds = %201
  %205 = load ptr, ptr %14, align 8, !tbaa !5
  %206 = load double, ptr %205, align 8, !tbaa !11
  %207 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 6), align 8, !tbaa !23
  %208 = fcmp oge double %206, %207
  br i1 %208, label %209, label %221

209:                                              ; preds = %204
  %210 = load ptr, ptr %19, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.facetT, ptr %210, i32 0, i32 15
  %212 = load i32, ptr %211, align 8
  %213 = lshr i32 %212, 17
  %214 = and i32 %213, 1
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %219

216:                                              ; preds = %209
  %217 = load i32, ptr %13, align 4, !tbaa !9
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %221, label %219

219:                                              ; preds = %216, %209
  %220 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %220, ptr %21, align 8, !tbaa !5
  br label %308

221:                                              ; preds = %216, %204, %201
  %222 = load ptr, ptr %19, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.facetT, ptr %222, i32 0, i32 15
  %224 = load i32, ptr %223, align 8
  %225 = lshr i32 %224, 17
  %226 = and i32 %225, 1
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %232, label %228

228:                                              ; preds = %221
  %229 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %229, ptr %21, align 8, !tbaa !5
  %230 = load ptr, ptr %14, align 8, !tbaa !5
  %231 = load double, ptr %230, align 8, !tbaa !11
  store double %231, ptr %17, align 8, !tbaa !11
  br label %242

232:                                              ; preds = %221
  %233 = load ptr, ptr %21, align 8, !tbaa !5
  %234 = icmp ne ptr %233, null
  br i1 %234, label %238, label %235

235:                                              ; preds = %232
  %236 = load ptr, ptr %14, align 8, !tbaa !5
  %237 = load double, ptr %236, align 8, !tbaa !11
  store double %237, ptr %17, align 8, !tbaa !11
  br label %242

238:                                              ; preds = %232
  br label %239

239:                                              ; preds = %238
  br label %240

240:                                              ; preds = %239, %190
  br label %241

241:                                              ; preds = %240, %180
  br label %157, !llvm.loop !28

242:                                              ; preds = %235, %228, %157
  br label %243

243:                                              ; preds = %242, %145
  %244 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %244, ptr %18, align 8, !tbaa !5
  br label %124, !llvm.loop !30

245:                                              ; preds = %124
  %246 = load i32, ptr %12, align 4, !tbaa !9
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %280

248:                                              ; preds = %245
  %249 = load ptr, ptr %21, align 8, !tbaa !5
  %250 = icmp ne ptr %249, null
  br i1 %250, label %257, label %251

251:                                              ; preds = %248
  store double 0xFFDFFFFFFFFFFFFF, ptr %17, align 8, !tbaa !11
  %252 = load ptr, ptr %9, align 8, !tbaa !5
  %253 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !31
  %254 = load i32, ptr %11, align 4, !tbaa !9
  %255 = load ptr, ptr %15, align 8, !tbaa !5
  %256 = call ptr @qh_findbestnew(ptr noundef %252, ptr noundef %253, ptr noundef %17, i32 noundef %254, ptr noundef %255, ptr noundef %25)
  store ptr %256, ptr %21, align 8, !tbaa !5
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %279

257:                                              ; preds = %248
  %258 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 205), align 4, !tbaa !32
  %259 = icmp ne i32 %258, 0
  br i1 %259, label %278, label %260

260:                                              ; preds = %257
  %261 = load double, ptr %17, align 8, !tbaa !11
  %262 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 134), align 8, !tbaa !33
  %263 = fneg double %262
  %264 = fcmp olt double %261, %263
  br i1 %264, label %265, label %278

265:                                              ; preds = %260
  %266 = call i32 @qh_sharpnewfacets()
  %267 = icmp ne i32 %266, 0
  br i1 %267, label %268, label %276

268:                                              ; preds = %265
  %269 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 103), align 8, !tbaa !17
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 103), align 8, !tbaa !17
  %271 = load ptr, ptr %9, align 8, !tbaa !5
  %272 = load ptr, ptr %21, align 8, !tbaa !5
  %273 = load i32, ptr %11, align 4, !tbaa !9
  %274 = load ptr, ptr %15, align 8, !tbaa !5
  %275 = call ptr @qh_findbestnew(ptr noundef %271, ptr noundef %272, ptr noundef %17, i32 noundef %273, ptr noundef %274, ptr noundef %25)
  store ptr %275, ptr %21, align 8, !tbaa !5
  store i32 0, ptr %26, align 4, !tbaa !9
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 204), align 8, !tbaa !34
  br label %277

276:                                              ; preds = %265
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 205), align 4, !tbaa !32
  br label %277

277:                                              ; preds = %276, %268
  br label %278

278:                                              ; preds = %277, %260, %257
  br label %279

279:                                              ; preds = %278, %251
  br label %280

280:                                              ; preds = %279, %245
  %281 = load ptr, ptr %21, align 8, !tbaa !5
  %282 = icmp ne ptr %281, null
  br i1 %282, label %288, label %283

283:                                              ; preds = %280
  %284 = load ptr, ptr %22, align 8, !tbaa !5
  %285 = load ptr, ptr %9, align 8, !tbaa !5
  %286 = load ptr, ptr %16, align 8, !tbaa !5
  %287 = call ptr @qh_findbestlower(ptr noundef %284, ptr noundef %285, ptr noundef %17, ptr noundef %286)
  store ptr %287, ptr %21, align 8, !tbaa !5
  br label %288

288:                                              ; preds = %283, %280
  %289 = load i32, ptr %26, align 4, !tbaa !9
  %290 = icmp ne i32 %289, 0
  br i1 %290, label %291, label %296

291:                                              ; preds = %288
  %292 = load ptr, ptr %9, align 8, !tbaa !5
  %293 = load ptr, ptr %21, align 8, !tbaa !5
  %294 = load i32, ptr %13, align 4, !tbaa !9
  %295 = call ptr @qh_findbesthorizon(i32 noundef 0, ptr noundef %292, ptr noundef %293, i32 noundef %294, ptr noundef %17, ptr noundef %25)
  store ptr %295, ptr %21, align 8, !tbaa !5
  br label %296

296:                                              ; preds = %291, %288
  %297 = load double, ptr %17, align 8, !tbaa !11
  %298 = load ptr, ptr %14, align 8, !tbaa !5
  store double %297, ptr %298, align 8, !tbaa !11
  %299 = load ptr, ptr %15, align 8, !tbaa !5
  %300 = icmp ne ptr %299, null
  br i1 %300, label %301, label %307

301:                                              ; preds = %296
  %302 = load double, ptr %17, align 8, !tbaa !11
  %303 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 6), align 8, !tbaa !23
  %304 = fcmp olt double %302, %303
  br i1 %304, label %305, label %307

305:                                              ; preds = %301
  %306 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %306, align 4, !tbaa !9
  br label %307

307:                                              ; preds = %305, %301, %296
  br label %308

308:                                              ; preds = %307, %219, %103
  %309 = load ptr, ptr %16, align 8, !tbaa !5
  %310 = load i32, ptr %309, align 4, !tbaa !9
  %311 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 92), align 8, !tbaa !17
  %312 = add nsw i32 %311, %310
  store i32 %312, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 92), align 8, !tbaa !17
  %313 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 91), align 8, !tbaa !17
  %314 = load ptr, ptr %16, align 8, !tbaa !5
  %315 = load i32, ptr %314, align 4, !tbaa !9
  %316 = icmp slt i32 %313, %315
  br i1 %316, label %317, label %320

317:                                              ; preds = %308
  %318 = load ptr, ptr %16, align 8, !tbaa !5
  %319 = load i32, ptr %318, align 4, !tbaa !9
  store i32 %319, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 91), align 8, !tbaa !17
  br label %320

320:                                              ; preds = %317, %308
  %321 = load i32, ptr %25, align 4, !tbaa !9
  %322 = load ptr, ptr %16, align 8, !tbaa !5
  %323 = load i32, ptr %322, align 4, !tbaa !9
  %324 = add nsw i32 %323, %321
  store i32 %324, ptr %322, align 4, !tbaa !9
  %325 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %325, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %326 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  ret ptr %326
}

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

declare i32 @qh_sharpnewfacets() #2

declare ptr @qh_findbestlower(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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, !10, i64 2784}
!17 = !{!7, !7, i64 0}
!18 = !{!14, !10, i64 536}
!19 = !{!14, !10, i64 544}
!20 = !{!14, !6, i64 2424}
!21 = !{!22, !10, i64 108}
!22 = !{!"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}
!23 = !{!14, !12, i64 24}
!24 = !{!14, !10, i64 2620}
!25 = !{!14, !12, i64 2680}
!26 = !{!22, !10, i64 104}
!27 = !{!22, !6, i64 80}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = !{!14, !6, i64 2480}
!32 = !{!14, !10, i64 2716}
!33 = !{!14, !12, i64 1784}
!34 = !{!14, !10, i64 2712}


; 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.3 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [51 x i8], align 1

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

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

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

declare i32 @qh_pointid(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_findbest(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #0 {
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  store double 0xFFDFFFFFFFFFFFFF, ptr %9, align 8, !tbaa !5
  %11 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !9
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !14
  %13 = add i32 %12, 1
  store i32 %13, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  store i32 0, ptr %10, align 4, !tbaa !15
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 720), align 8, !tbaa !16
  %15 = add nsw i32 %14, 1
  store i32 %15, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 720), align 8, !tbaa !16
  %16 = icmp sgt i32 %11, 3
  br i1 %16, label %25, label %17

17:                                               ; preds = %8
  %18 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 536), align 8, !tbaa !17
  %19 = icmp ne i32 %18, 0
  %20 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 544), align 8
  %21 = icmp sgt i32 %20, -1
  %or.cond = select i1 %19, i1 %21, i1 false
  br i1 %or.cond, label %22, label %42

22:                                               ; preds = %17
  %23 = tail call i32 @qh_pointid(ptr noundef %0) #3
  %24 = icmp eq i32 %20, %23
  br i1 %24, label %._crit_edge212, label %42

._crit_edge212:                                   ; preds = %22
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !9
  br label %25

25:                                               ; preds = %._crit_edge212, %8
  %26 = phi i32 [ %.pre, %._crit_edge212 ], [ %11, %8 ]
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 536), align 8, !tbaa !17
  %28 = icmp sgt i32 %27, %26
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  store i32 %27, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !9
  br label %30

30:                                               ; preds = %29, %25
  %31 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !18
  %32 = tail call i32 @qh_pointid(ptr noundef %0) #3
  %33 = getelementptr inbounds i8, ptr %1, i64 108
  %34 = load i32, ptr %33, align 4, !tbaa !19
  %35 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 24), align 8, !tbaa !21
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %31, i32 noundef 8004, ptr noundef nonnull @.str.3, i32 noundef %32, i32 noundef %34, i32 noundef %3, i32 noundef %2, double noundef %35) #3
  %36 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !18
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %36, i32 noundef 8005, ptr noundef nonnull @.str.4, i32 noundef 1, i32 noundef %4) #3
  %37 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !18
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !22
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %37, i32 noundef 8006, ptr noundef nonnull @.str.5, i32 noundef %38) #3
  %39 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !18
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !16
  %41 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2680), align 8, !tbaa !23
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %39, i32 noundef 8007, ptr noundef nonnull @.str.6, i32 noundef %40, double noundef %41) #3
  br label %42

42:                                               ; preds = %30, %22, %17
  %.not = icmp ne ptr %6, null
  br i1 %.not, label %43, label %44

43:                                               ; preds = %42
  store i32 1, ptr %6, align 4, !tbaa !15
  br label %44

44:                                               ; preds = %43, %42
  %45 = getelementptr inbounds i8, ptr %1, i64 112
  %46 = load i32, ptr %45, align 8
  %47 = and i32 %46, 65536
  %.not104 = icmp eq i32 %47, 0
  br i1 %.not104, label %48, label %59

48:                                               ; preds = %44
  store i32 1, ptr %7, align 4, !tbaa !15
  tail call void @qh_distplane(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %5)
  %.not105 = icmp eq i32 %2, 0
  %.pre213 = load double, ptr %5, align 8, !tbaa !5
  br i1 %.not105, label %49, label %._crit_edge214

._crit_edge214:                                   ; preds = %48
  %.pre215 = load i32, ptr %45, align 8
  br label %56

49:                                               ; preds = %48
  %50 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 24), align 8, !tbaa !21
  %51 = fcmp ult double %.pre213, %50
  %.pre216 = load i32, ptr %45, align 8
  br i1 %51, label %56, label %52

52:                                               ; preds = %49
  %53 = and i32 %.pre216, 131072
  %54 = icmp ne i32 %53, 0
  %55 = icmp ne i32 %4, 0
  %or.cond3 = and i1 %55, %54
  br i1 %or.cond3, label %56, label %.loopexit143

56:                                               ; preds = %._crit_edge214, %52, %49
  %57 = phi i32 [ %.pre215, %._crit_edge214 ], [ %.pre216, %52 ], [ %.pre216, %49 ]
  %58 = and i32 %57, 131072
  %.not106 = icmp eq i32 %58, 0
  %spec.select = select i1 %.not106, ptr %1, ptr null
  br label %.lr.ph171

59:                                               ; preds = %44
  store i32 0, ptr %7, align 4, !tbaa !15
  br label %.lr.ph171

.lr.ph171:                                        ; preds = %59, %56
  %.promoted = phi double [ 0xFFDFFFFFFFFFFFFF, %59 ], [ %.pre213, %56 ]
  %.092 = phi ptr [ null, %59 ], [ %spec.select, %56 ]
  %60 = getelementptr inbounds i8, ptr %1, i64 104
  store i32 %13, ptr %60, align 8, !tbaa !24
  %61 = icmp ne i32 %3, 0
  %.not118.not = icmp eq i32 %2, 0
  %62 = icmp ne i32 %4, 0
  br i1 %.not118.not, label %.lr.ph171.split, label %.lr.ph171.split.us

.lr.ph171.split.us:                               ; preds = %.lr.ph171
  br i1 %61, label %.lr.ph171.split.us.split.us, label %.lr.ph171.split.us.split

.lr.ph171.split.us.split.us:                      ; preds = %.lr.ph171.split.us, %.lr.ph171.split.us.split.us.backedge
  %.089170.us.us = phi ptr [ %.089170.us.us.be, %.lr.ph171.split.us.split.us.backedge ], [ %1, %.lr.ph171.split.us ]
  %.1169.us.us = phi ptr [ %.1169.us.us.be, %.lr.ph171.split.us.split.us.backedge ], [ %.092, %.lr.ph171.split.us ]
  %.us-phi156159167.us.us = phi double [ %.us-phi156159167.us.us.be, %.lr.ph171.split.us.split.us.backedge ], [ %.promoted, %.lr.ph171.split.us ]
  %.1169.us.us.fr = freeze ptr %.1169.us.us
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !9
  %64 = icmp sgt i32 %63, 3
  br i1 %64, label %65, label %74

65:                                               ; preds = %.lr.ph171.split.us.split.us
  %66 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !18
  %67 = getelementptr inbounds i8, ptr %.089170.us.us, i64 108
  %68 = load i32, ptr %67, align 4, !tbaa !19
  %.not114.us.us = icmp eq ptr %.1169.us.us.fr, null
  br i1 %.not114.us.us, label %72, label %69

69:                                               ; preds = %65
  %70 = getelementptr inbounds i8, ptr %.1169.us.us.fr, i64 108
  %71 = load i32, ptr %70, align 4, !tbaa !19
  br label %72

72:                                               ; preds = %69, %65
  %73 = phi i32 [ %71, %69 ], [ -1, %65 ]
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %66, i32 noundef 4001, ptr noundef nonnull @.str.7, i32 noundef %68, double noundef %.us-phi156159167.us.us, i32 noundef %73) #3
  br label %74

74:                                               ; preds = %72, %.lr.ph171.split.us.split.us
  %75 = getelementptr inbounds i8, ptr %.089170.us.us, i64 80
  %76 = load ptr, ptr %75, align 8, !tbaa !25
  %.not115.us.us = icmp eq ptr %76, null
  br i1 %.not115.us.us, label %._crit_edge, label %77

77:                                               ; preds = %74
  %78 = getelementptr inbounds i8, ptr %76, i64 8
  %79 = load ptr, ptr %78, align 8, !tbaa !26
  %.not116152.us.us = icmp eq ptr %79, null
  br i1 %.not116152.us.us, label %._crit_edge, label %.lr.ph.us.us

.lr.ph.us.us:                                     ; preds = %77
  %80 = getelementptr inbounds i8, ptr %76, i64 16
  %.not120.us.us = icmp eq ptr %.1169.us.us.fr, null
  br i1 %.not120.us.us, label %.lr.ph.split.us.us.split.us191.split.us, label %.lr.ph.split.us.us.split.us191.split

.lr.ph.split.us.us.split.us191.split:             ; preds = %.lr.ph.us.us, %.backedge.us.us.us182
  %81 = phi ptr [ %102, %.backedge.us.us.us182 ], [ %79, %.lr.ph.us.us ]
  %82 = phi ptr [ %101, %.backedge.us.us.us182 ], [ %80, %.lr.ph.us.us ]
  %83 = getelementptr inbounds i8, ptr %81, i64 112
  %84 = load i32, ptr %83, align 8
  %85 = and i32 %84, 1024
  %86 = icmp eq i32 %85, 0
  br i1 %86, label %.backedge.us.us.us182, label %87

87:                                               ; preds = %.lr.ph.split.us.us.split.us191.split
  %88 = getelementptr inbounds i8, ptr %81, i64 104
  %89 = load i32, ptr %88, align 8, !tbaa !24
  %90 = icmp eq i32 %89, %13
  br i1 %90, label %.backedge.us.us.us182, label %91

91:                                               ; preds = %87
  store i32 %13, ptr %88, align 8, !tbaa !24
  %92 = and i32 %84, 65536
  %.not117.us.us.us180 = icmp eq i32 %92, 0
  br i1 %.not117.us.us.us180, label %93, label %.backedge.us.us.us182

93:                                               ; preds = %91
  %94 = load i32, ptr %7, align 4, !tbaa !15
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %7, align 4, !tbaa !15
  tail call void @qh_distplane(ptr noundef %0, ptr noundef nonnull %81, ptr noundef %5)
  %96 = load double, ptr %5, align 8, !tbaa !5
  %97 = fcmp ogt double %96, %.us-phi156159167.us.us
  br i1 %97, label %98, label %.backedge.us.us.us182

98:                                               ; preds = %93
  %99 = load i32, ptr %83, align 8
  %100 = and i32 %99, 131072
  %.not119.us.us.us181 = icmp eq i32 %100, 0
  br i1 %.not119.us.us.us181, label %.lr.ph171.split.us.split.us.backedge, label %.backedge.us.us.us182, !llvm.loop !27

.backedge.us.us.us182:                            ; preds = %91, %93, %98, %87, %.lr.ph.split.us.us.split.us191.split
  %101 = getelementptr inbounds i8, ptr %82, i64 8
  %102 = load ptr, ptr %82, align 8, !tbaa !26
  %.not116.us.us.us183 = icmp eq ptr %102, null
  br i1 %.not116.us.us.us183, label %._crit_edge, label %.lr.ph.split.us.us.split.us191.split, !llvm.loop !29

.lr.ph.split.us.us.split.us191.split.us:          ; preds = %.lr.ph.us.us, %.backedge.us.us.us182.us
  %103 = phi ptr [ %125, %.backedge.us.us.us182.us ], [ %79, %.lr.ph.us.us ]
  %104 = phi ptr [ %124, %.backedge.us.us.us182.us ], [ %80, %.lr.ph.us.us ]
  %105 = getelementptr inbounds i8, ptr %103, i64 112
  %106 = load i32, ptr %105, align 8
  %107 = and i32 %106, 1024
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %.backedge.us.us.us182.us, label %109

109:                                              ; preds = %.lr.ph.split.us.us.split.us191.split.us
  %110 = getelementptr inbounds i8, ptr %103, i64 104
  %111 = load i32, ptr %110, align 8, !tbaa !24
  %112 = icmp eq i32 %111, %13
  br i1 %112, label %.backedge.us.us.us182.us, label %113

113:                                              ; preds = %109
  store i32 %13, ptr %110, align 8, !tbaa !24
  %114 = and i32 %106, 65536
  %.not117.us.us.us180.us = icmp eq i32 %114, 0
  br i1 %.not117.us.us.us180.us, label %115, label %.backedge.us.us.us182.us

115:                                              ; preds = %113
  %116 = load i32, ptr %7, align 4, !tbaa !15
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %7, align 4, !tbaa !15
  tail call void @qh_distplane(ptr noundef %0, ptr noundef nonnull %103, ptr noundef %5)
  %118 = load double, ptr %5, align 8, !tbaa !5
  %119 = fcmp ogt double %118, %.us-phi156159167.us.us
  br i1 %119, label %120, label %.backedge.us.us.us182.us

120:                                              ; preds = %115
  %121 = getelementptr inbounds i8, ptr %103, i64 112
  %122 = load i32, ptr %121, align 8
  %123 = and i32 %122, 131072
  %.not119.us.us.us181.us = icmp eq i32 %123, 0
  %.lcssa202. = select i1 %.not119.us.us.us181.us, ptr %103, ptr null
  br label %.lr.ph171.split.us.split.us.backedge

.lr.ph171.split.us.split.us.backedge:             ; preds = %98, %120
  %.089170.us.us.be = phi ptr [ %103, %120 ], [ %81, %98 ]
  %.1169.us.us.be = phi ptr [ %.lcssa202., %120 ], [ %81, %98 ]
  %.us-phi156159167.us.us.be = phi double [ %118, %120 ], [ %96, %98 ]
  br label %.lr.ph171.split.us.split.us, !llvm.loop !27

.backedge.us.us.us182.us:                         ; preds = %113, %115, %109, %.lr.ph.split.us.us.split.us191.split.us
  %124 = getelementptr inbounds i8, ptr %104, i64 8
  %125 = load ptr, ptr %104, align 8, !tbaa !26
  %.not116.us.us.us183.us = icmp eq ptr %125, null
  br i1 %.not116.us.us.us183.us, label %._crit_edge.thread, label %.lr.ph.split.us.us.split.us191.split.us, !llvm.loop !29

.lr.ph171.split.us.split.loopexit:                ; preds = %159
  %.mux = select i1 %.not119.us.us.us, ptr %145, ptr null
  br label %.lr.ph171.split.us.split, !llvm.loop !27

.lr.ph171.split.us.split:                         ; preds = %.lr.ph171.split.us, %.lr.ph171.split.us.split.loopexit
  %.089170.us = phi ptr [ %145, %.lr.ph171.split.us.split.loopexit ], [ %1, %.lr.ph171.split.us ]
  %.1169.us = phi ptr [ %.mux, %.lr.ph171.split.us.split.loopexit ], [ %.092, %.lr.ph171.split.us ]
  %.us-phi156159167.us = phi double [ %157, %.lr.ph171.split.us.split.loopexit ], [ %.promoted, %.lr.ph171.split.us ]
  %126 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !9
  %127 = icmp sgt i32 %126, 3
  br i1 %127, label %128, label %137

128:                                              ; preds = %.lr.ph171.split.us.split
  %129 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !18
  %130 = getelementptr inbounds i8, ptr %.089170.us, i64 108
  %131 = load i32, ptr %130, align 4, !tbaa !19
  %.not114.us = icmp eq ptr %.1169.us, null
  br i1 %.not114.us, label %135, label %132

132:                                              ; preds = %128
  %133 = getelementptr inbounds i8, ptr %.1169.us, i64 108
  %134 = load i32, ptr %133, align 4, !tbaa !19
  br label %135

135:                                              ; preds = %132, %128
  %136 = phi i32 [ %134, %132 ], [ -1, %128 ]
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %129, i32 noundef 4001, ptr noundef nonnull @.str.7, i32 noundef %131, double noundef %.us-phi156159167.us, i32 noundef %136) #3
  br label %137

137:                                              ; preds = %135, %.lr.ph171.split.us.split
  %138 = getelementptr inbounds i8, ptr %.089170.us, i64 80
  %139 = load ptr, ptr %138, align 8, !tbaa !25
  %.not115.us = icmp eq ptr %139, null
  br i1 %.not115.us, label %._crit_edge, label %140

140:                                              ; preds = %137
  %141 = getelementptr inbounds i8, ptr %139, i64 8
  %142 = load ptr, ptr %141, align 8, !tbaa !26
  %.not116152.us = icmp eq ptr %142, null
  br i1 %.not116152.us, label %._crit_edge, label %.lr.ph.us

.lr.ph.us:                                        ; preds = %140
  %143 = getelementptr inbounds i8, ptr %139, i64 16
  %.not120.us = icmp eq ptr %.1169.us, null
  br label %144

144:                                              ; preds = %.backedge.us.us.us, %.lr.ph.us
  %145 = phi ptr [ %142, %.lr.ph.us ], [ %163, %.backedge.us.us.us ]
  %146 = phi ptr [ %143, %.lr.ph.us ], [ %162, %.backedge.us.us.us ]
  %147 = getelementptr inbounds i8, ptr %145, i64 112
  %148 = getelementptr inbounds i8, ptr %145, i64 104
  %149 = load i32, ptr %148, align 8, !tbaa !24
  %150 = icmp eq i32 %149, %13
  br i1 %150, label %.backedge.us.us.us, label %151

151:                                              ; preds = %144
  %152 = load i32, ptr %147, align 8
  store i32 %13, ptr %148, align 8, !tbaa !24
  %153 = and i32 %152, 65536
  %.not117.us.us.us = icmp eq i32 %153, 0
  br i1 %.not117.us.us.us, label %154, label %.backedge.us.us.us

154:                                              ; preds = %151
  %155 = load i32, ptr %7, align 4, !tbaa !15
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %7, align 4, !tbaa !15
  tail call void @qh_distplane(ptr noundef %0, ptr noundef nonnull %145, ptr noundef %5)
  %157 = load double, ptr %5, align 8, !tbaa !5
  %158 = fcmp ogt double %157, %.us-phi156159167.us
  br i1 %158, label %159, label %.backedge.us.us.us

159:                                              ; preds = %154
  %160 = load i32, ptr %147, align 8
  %161 = and i32 %160, 131072
  %.not119.us.us.us = icmp eq i32 %161, 0
  %brmerge = select i1 %.not119.us.us.us, i1 true, i1 %.not120.us
  br i1 %brmerge, label %.lr.ph171.split.us.split.loopexit, label %.backedge.us.us.us

.backedge.us.us.us:                               ; preds = %159, %151, %154, %144
  %162 = getelementptr inbounds i8, ptr %146, i64 8
  %163 = load ptr, ptr %146, align 8, !tbaa !26
  %.not116.us.us.us = icmp eq ptr %163, null
  br i1 %.not116.us.us.us, label %._crit_edge, label %144, !llvm.loop !29

.lr.ph171.split.loopexit.split.loop.exit:         ; preds = %205
  %.mux298.le = select i1 %.not119, ptr %183, ptr null
  br label %.lr.ph171.split.loopexit

.lr.ph171.split.loopexit:                         ; preds = %.thread, %.lr.ph171.split.loopexit.split.loop.exit
  %.1169.ph = phi ptr [ %.mux298.le, %.lr.ph171.split.loopexit.split.loop.exit ], [ null, %.thread ]
  br label %.lr.ph171.split

.lr.ph171.split:                                  ; preds = %.lr.ph171, %.lr.ph171.split.loopexit
  %.089170 = phi ptr [ %183, %.lr.ph171.split.loopexit ], [ %1, %.lr.ph171 ]
  %.1169 = phi ptr [ %.1169.ph, %.lr.ph171.split.loopexit ], [ %.092, %.lr.ph171 ]
  %.us-phi156159167 = phi double [ %198, %.lr.ph171.split.loopexit ], [ %.promoted, %.lr.ph171 ]
  %164 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !9
  %165 = icmp sgt i32 %164, 3
  br i1 %165, label %166, label %175

166:                                              ; preds = %.lr.ph171.split
  %167 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !18
  %168 = getelementptr inbounds i8, ptr %.089170, i64 108
  %169 = load i32, ptr %168, align 4, !tbaa !19
  %.not114 = icmp eq ptr %.1169, null
  br i1 %.not114, label %173, label %170

170:                                              ; preds = %166
  %171 = getelementptr inbounds i8, ptr %.1169, i64 108
  %172 = load i32, ptr %171, align 4, !tbaa !19
  br label %173

173:                                              ; preds = %166, %170
  %174 = phi i32 [ %172, %170 ], [ -1, %166 ]
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %167, i32 noundef 4001, ptr noundef nonnull @.str.7, i32 noundef %169, double noundef %.us-phi156159167, i32 noundef %174) #3
  br label %175

175:                                              ; preds = %173, %.lr.ph171.split
  %176 = getelementptr inbounds i8, ptr %.089170, i64 80
  %177 = load ptr, ptr %176, align 8, !tbaa !25
  %.not115 = icmp eq ptr %177, null
  br i1 %.not115, label %._crit_edge, label %178

178:                                              ; preds = %175
  %179 = getelementptr inbounds i8, ptr %177, i64 8
  %180 = load ptr, ptr %179, align 8, !tbaa !26
  %.not116152 = icmp eq ptr %180, null
  br i1 %.not116152, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %178
  %181 = getelementptr inbounds i8, ptr %177, i64 16
  %.not120 = icmp eq ptr %.1169, null
  br label %182

182:                                              ; preds = %.lr.ph, %.backedge
  %183 = phi ptr [ %180, %.lr.ph ], [ %207, %.backedge ]
  %184 = phi ptr [ %181, %.lr.ph ], [ %206, %.backedge ]
  %185 = getelementptr inbounds i8, ptr %183, i64 112
  %186 = load i32, ptr %185, align 8
  %187 = and i32 %186, 1024
  %188 = icmp eq i32 %187, 0
  %or.cond5 = and i1 %61, %188
  br i1 %or.cond5, label %.backedge, label %189

189:                                              ; preds = %182
  %190 = getelementptr inbounds i8, ptr %183, i64 104
  %191 = load i32, ptr %190, align 8, !tbaa !24
  %192 = icmp eq i32 %191, %13
  br i1 %192, label %.backedge, label %193

193:                                              ; preds = %189
  store i32 %13, ptr %190, align 8, !tbaa !24
  %194 = and i32 %186, 65536
  %.not117 = icmp eq i32 %194, 0
  br i1 %.not117, label %195, label %.backedge

195:                                              ; preds = %193
  %196 = load i32, ptr %7, align 4, !tbaa !15
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %7, align 4, !tbaa !15
  tail call void @qh_distplane(ptr noundef %0, ptr noundef nonnull %183, ptr noundef %5)
  %198 = load double, ptr %5, align 8, !tbaa !5
  %199 = fcmp ogt double %198, %.us-phi156159167
  br i1 %199, label %200, label %.backedge

200:                                              ; preds = %195
  %201 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 24), align 8
  %202 = fcmp ult double %198, %201
  %.pre218 = load i32, ptr %185, align 8
  %.pre221 = and i32 %.pre218, 131072
  br i1 %202, label %205, label %203

203:                                              ; preds = %200
  %204 = icmp ne i32 %.pre221, 0
  %or.cond7 = and i1 %62, %204
  br i1 %or.cond7, label %.thread, label %.loopexit143

205:                                              ; preds = %200
  %.not119 = icmp eq i32 %.pre221, 0
  %brmerge297 = select i1 %.not119, i1 true, i1 %.not120
  br i1 %brmerge297, label %.lr.ph171.split.loopexit.split.loop.exit, label %.backedge, !llvm.loop !27

.thread:                                          ; preds = %203
  br i1 %.not120, label %.lr.ph171.split.loopexit, label %.backedge, !llvm.loop !27

.backedge:                                        ; preds = %205, %193, %.thread, %195, %182, %189
  %206 = getelementptr inbounds i8, ptr %184, i64 8
  %207 = load ptr, ptr %184, align 8, !tbaa !26
  %.not116 = icmp eq ptr %207, null
  br i1 %.not116, label %._crit_edge, label %182, !llvm.loop !29

._crit_edge:                                      ; preds = %140, %137, %.backedge.us.us.us, %77, %74, %.backedge.us.us.us182, %178, %175, %.backedge
  %208 = phi double [ %.us-phi156159167, %.backedge ], [ %.us-phi156159167, %175 ], [ %.us-phi156159167, %178 ], [ %.us-phi156159167.us.us, %.backedge.us.us.us182 ], [ %.us-phi156159167.us.us, %74 ], [ %.us-phi156159167.us.us, %77 ], [ %.us-phi156159167.us, %.backedge.us.us.us ], [ %.us-phi156159167.us, %137 ], [ %.us-phi156159167.us, %140 ]
  %.1.lcssa = phi ptr [ %.1169, %.backedge ], [ %.1169, %175 ], [ %.1169, %178 ], [ %.1169.us.us.fr, %.backedge.us.us.us182 ], [ %.1169.us.us.fr, %74 ], [ %.1169.us.us.fr, %77 ], [ %.1169.us, %.backedge.us.us.us ], [ %.1169.us, %137 ], [ %.1169.us, %140 ]
  %.091.lcssa = phi ptr [ %.089170, %.backedge ], [ %.089170, %175 ], [ %.089170, %178 ], [ %.089170.us.us, %.backedge.us.us.us182 ], [ %.089170.us.us, %74 ], [ %.089170.us.us, %77 ], [ %.089170.us, %.backedge.us.us.us ], [ %.089170.us, %137 ], [ %.089170.us, %140 ]
  store double %208, ptr %9, align 8, !tbaa !5
  %.not108 = icmp eq i32 %3, 0
  %.not112134 = icmp eq ptr %.1.lcssa, null
  br i1 %.not108, label %.thread131, label %209

._crit_edge.thread:                               ; preds = %.backedge.us.us.us182.us
  store double %.us-phi156159167.us.us, ptr %9, align 8, !tbaa !5
  br label %.thread252

209:                                              ; preds = %._crit_edge
  br i1 %.not112134, label %.thread252, label %212

.thread252:                                       ; preds = %._crit_edge.thread, %209
  %.091.lcssa251257 = phi ptr [ %.091.lcssa, %209 ], [ %.089170.us.us, %._crit_edge.thread ]
  store double 0xFFDFFFFFFFFFFFFF, ptr %9, align 8, !tbaa !5
  %210 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !30
  %211 = call ptr @qh_findbestnew(ptr noundef %0, ptr noundef %210, ptr noundef nonnull %9, i32 noundef %2, ptr noundef %6, ptr noundef nonnull %10)
  br label %225

212:                                              ; preds = %209
  %213 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !31
  %.not110 = icmp eq i32 %213, 0
  br i1 %.not110, label %214, label %.thread127

214:                                              ; preds = %212
  %215 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1784), align 8, !tbaa !32
  %216 = fneg double %215
  %217 = fcmp olt double %208, %216
  br i1 %217, label %218, label %.thread127

218:                                              ; preds = %214
  %219 = tail call i32 @qh_sharpnewfacets() #3
  %.not111 = icmp eq i32 %219, 0
  br i1 %.not111, label %224, label %220

220:                                              ; preds = %218
  %221 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 824), align 8, !tbaa !16
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 824), align 8, !tbaa !16
  %223 = call ptr @qh_findbestnew(ptr noundef %0, ptr noundef nonnull %.1.lcssa, ptr noundef nonnull %9, i32 noundef %2, ptr noundef %6, ptr noundef nonnull %10)
  store i32 1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !33
  br label %225

224:                                              ; preds = %218
  store i32 1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !31
  br label %.thread127

225:                                              ; preds = %.thread252, %220
  %.091.lcssa251256 = phi ptr [ %.091.lcssa, %220 ], [ %.091.lcssa251257, %.thread252 ]
  %.3 = phi ptr [ %223, %220 ], [ %211, %.thread252 ]
  %.not112 = icmp eq ptr %.3, null
  br i1 %.not112, label %227, label %.thread138

.thread131:                                       ; preds = %._crit_edge
  br i1 %.not112134, label %.thread136, label %.thread127

.thread136:                                       ; preds = %.thread131
  %226 = call ptr @qh_findbestlower(ptr noundef %.091.lcssa, ptr noundef %0, ptr noundef nonnull %9, ptr noundef %7) #3
  br label %.thread127

227:                                              ; preds = %225
  %228 = call ptr @qh_findbestlower(ptr noundef %.091.lcssa251256, ptr noundef %0, ptr noundef nonnull %9, ptr noundef %7) #3
  br label %.thread138

.thread127:                                       ; preds = %.thread131, %.thread136, %212, %224, %214
  %.4130 = phi ptr [ %.1.lcssa, %214 ], [ %.1.lcssa, %224 ], [ %.1.lcssa, %212 ], [ %226, %.thread136 ], [ %.1.lcssa, %.thread131 ]
  %229 = call ptr @qh_findbesthorizon(i32 noundef 0, ptr noundef %0, ptr noundef %.4130, i32 noundef %4, ptr noundef nonnull %9, ptr noundef nonnull %10)
  br label %.thread138

.thread138:                                       ; preds = %225, %227, %.thread127
  %.5 = phi ptr [ %229, %.thread127 ], [ %228, %227 ], [ %.3, %225 ]
  %230 = load double, ptr %9, align 8, !tbaa !5
  store double %230, ptr %5, align 8, !tbaa !5
  %231 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 24), align 8
  %232 = fcmp olt double %230, %231
  %or.cond142 = select i1 %.not, i1 %232, i1 false
  br i1 %or.cond142, label %233, label %.loopexit143

233:                                              ; preds = %.thread138
  store i32 0, ptr %6, align 4, !tbaa !15
  br label %.loopexit143

.loopexit143:                                     ; preds = %203, %52, %.thread138, %233
  %.6 = phi ptr [ %.5, %233 ], [ %.5, %.thread138 ], [ %1, %52 ], [ %183, %203 ]
  %234 = load i32, ptr %7, align 4, !tbaa !15
  %235 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 736), align 8, !tbaa !16
  %236 = add nsw i32 %235, %234
  store i32 %236, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 736), align 8, !tbaa !16
  %237 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 728), align 8, !tbaa !16
  %238 = load i32, ptr %7, align 4, !tbaa !15
  %239 = icmp slt i32 %237, %238
  br i1 %239, label %240, label %241

240:                                              ; preds = %.loopexit143
  store i32 %238, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 728), align 8, !tbaa !16
  %.pre219 = load i32, ptr %7, align 4, !tbaa !15
  br label %241

241:                                              ; preds = %240, %.loopexit143
  %242 = phi i32 [ %.pre219, %240 ], [ %238, %.loopexit143 ]
  %243 = load i32, ptr %10, align 4, !tbaa !15
  %244 = add nsw i32 %242, %243
  store i32 %244, ptr %7, align 4, !tbaa !15
  store i32 %11, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  ret ptr %.6
}

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

declare i32 @qh_sharpnewfacets() local_unnamed_addr #2

declare ptr @qh_findbestlower(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass