; 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.8 = external hidden unnamed_addr constant [132 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [113 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

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

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

declare i32 @qh_pointid(ptr noundef) #3

; 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_findbesthorizon(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca i32, align 4
  store i32 %0, ptr %7, align 4, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %28 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %28, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  store ptr null, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %29 = load ptr, ptr %12, align 8, !tbaa !9
  %30 = load i32, ptr %29, align 4, !tbaa !5
  store i32 %30, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 0, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %31 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !11
  %32 = add i32 %31, 1
  store i32 %32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !11
  store i32 %32, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %33 = load i32, ptr %7, align 4, !tbaa !5
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %38, label %35

35:                                               ; preds = %6
  %36 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 95), align 8, !tbaa !15
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 95), align 8, !tbaa !15
  br label %61

38:                                               ; preds = %6
  %39 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 48), align 4, !tbaa !16
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %48

41:                                               ; preds = %38
  %42 = load ptr, ptr %9, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.facetT, ptr %42, i32 0, i32 15
  %44 = load i32, ptr %43, align 8
  %45 = lshr i32 %44, 19
  %46 = and i32 %45, 1
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %60

48:                                               ; preds = %41, %38
  %49 = load ptr, ptr %11, align 8, !tbaa !9
  %50 = load double, ptr %49, align 8, !tbaa !17
  %51 = load ptr, ptr %9, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.facetT, ptr %51, i32 0, i32 1
  %53 = load double, ptr %52, align 8, !tbaa !18
  %54 = fcmp ogt double %50, %53
  br i1 %54, label %55, label %60

55:                                               ; preds = %48
  %56 = load ptr, ptr %11, align 8, !tbaa !9
  %57 = load double, ptr %56, align 8, !tbaa !17
  %58 = load ptr, ptr %9, align 8, !tbaa !9
  %59 = getelementptr inbounds %struct.facetT, ptr %58, i32 0, i32 1
  store double %57, ptr %59, align 8, !tbaa !18
  br label %60

60:                                               ; preds = %55, %48, %41
  br label %61

61:                                               ; preds = %60, %35
  %62 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !15
  %63 = icmp sgt i32 %62, 50
  %64 = zext i1 %63 to i64
  %65 = select i1 %63, i32 2, i32 1
  %66 = sitofp i32 %65 to double
  %67 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 199), align 8, !tbaa !20
  %68 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 134), align 8, !tbaa !21
  %69 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %68, double %67)
  %70 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 44), align 8, !tbaa !22
  %71 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 35), align 8, !tbaa !23
  %72 = fcmp olt double %70, %71
  br i1 %72, label %73, label %75

73:                                               ; preds = %61
  %74 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 35), align 8, !tbaa !23
  br label %77

75:                                               ; preds = %61
  %76 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 44), align 8, !tbaa !22
  br label %77

77:                                               ; preds = %75, %73
  %78 = phi double [ %74, %73 ], [ %76, %75 ]
  %79 = fadd double %69, %78
  %80 = fmul double %66, %79
  store double %80, ptr %26, align 8, !tbaa !17
  %81 = load ptr, ptr %11, align 8, !tbaa !9
  %82 = load double, ptr %81, align 8, !tbaa !17
  %83 = load double, ptr %26, align 8, !tbaa !17
  %84 = fsub double %82, %83
  store double %84, ptr %25, align 8, !tbaa !17
  %85 = load i32, ptr %7, align 4, !tbaa !5
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %96

87:                                               ; preds = %77
  %88 = load double, ptr %25, align 8, !tbaa !17
  %89 = load double, ptr %26, align 8, !tbaa !17
  %90 = fneg double %89
  %91 = fcmp ogt double %88, %90
  br i1 %91, label %92, label %95

92:                                               ; preds = %87
  %93 = load double, ptr %26, align 8, !tbaa !17
  %94 = fneg double %93
  store double %94, ptr %25, align 8, !tbaa !17
  br label %95

95:                                               ; preds = %92, %87
  br label %96

96:                                               ; preds = %95, %77
  store i32 0, ptr %20, align 4, !tbaa !5
  %97 = load i32, ptr %23, align 4, !tbaa !5
  %98 = load ptr, ptr %9, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct.facetT, ptr %98, i32 0, i32 13
  store i32 %97, ptr %99, align 8, !tbaa !24
  %100 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %100, ptr %17, align 8, !tbaa !9
  br label %101

101:                                              ; preds = %321, %96
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %22, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %22, align 4, !tbaa !5
  %105 = load i32, ptr %7, align 4, !tbaa !5
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %119

107:                                              ; preds = %102
  %108 = load ptr, ptr %17, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct.facetT, ptr %108, i32 0, i32 15
  %110 = load i32, ptr %109, align 8
  %111 = and i32 %110, 511
  %112 = icmp sgt i32 %111, 10
  br i1 %112, label %113, label %119

113:                                              ; preds = %107
  %114 = load ptr, ptr %17, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct.facetT, ptr %114, i32 0, i32 10
  %116 = load ptr, ptr %115, align 8, !tbaa !25
  %117 = call i32 @qh_setsize(ptr noundef %116)
  %118 = icmp sgt i32 %117, 100
  br label %119

119:                                              ; preds = %113, %107, %102
  %120 = phi i1 [ false, %107 ], [ false, %102 ], [ %118, %113 ]
  %121 = zext i1 %120 to i32
  store i32 %121, ptr %27, align 4, !tbaa !5
  %122 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !26
  %123 = icmp sge i32 %122, 4
  br i1 %123, label %124, label %145

124:                                              ; preds = %119
  %125 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !27
  %126 = load ptr, ptr %17, align 8, !tbaa !9
  %127 = getelementptr inbounds %struct.facetT, ptr %126, i32 0, i32 14
  %128 = load i32, ptr %127, align 4, !tbaa !28
  %129 = load ptr, ptr %11, align 8, !tbaa !9
  %130 = load double, ptr %129, align 8, !tbaa !17
  %131 = load ptr, ptr %13, align 8, !tbaa !9
  %132 = icmp ne ptr %131, null
  br i1 %132, label %133, label %137

133:                                              ; preds = %124
  %134 = load ptr, ptr %13, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.facetT, ptr %134, i32 0, i32 14
  %136 = load i32, ptr %135, align 4, !tbaa !28
  br label %138

137:                                              ; preds = %124
  br label %138

138:                                              ; preds = %137, %133
  %139 = phi i32 [ %136, %133 ], [ -1, %137 ]
  %140 = load i32, ptr %7, align 4, !tbaa !5
  %141 = load i32, ptr %10, align 4, !tbaa !5
  %142 = load double, ptr %25, align 8, !tbaa !17
  %143 = load i32, ptr %27, align 4, !tbaa !5
  %144 = load double, ptr %26, align 8, !tbaa !17
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %125, i32 noundef 4002, ptr noundef @.str.8, i32 noundef %128, double noundef %130, i32 noundef %139, i32 noundef %140, i32 noundef %141, double noundef %142, i32 noundef %143, double noundef %144)
  br label %145

145:                                              ; preds = %138, %119
  store ptr null, ptr %15, align 8, !tbaa !9
  %146 = load ptr, ptr %17, align 8, !tbaa !9
  %147 = getelementptr inbounds %struct.facetT, ptr %146, i32 0, i32 10
  %148 = load ptr, ptr %147, align 8, !tbaa !25
  %149 = icmp ne ptr %148, null
  br i1 %149, label %150, label %288

150:                                              ; preds = %145
  %151 = load ptr, ptr %17, align 8, !tbaa !9
  %152 = getelementptr inbounds %struct.facetT, ptr %151, i32 0, i32 10
  %153 = load ptr, ptr %152, align 8, !tbaa !25
  %154 = getelementptr inbounds %struct.setT, ptr %153, i32 0, i32 1
  %155 = getelementptr inbounds [1 x %union.setelemT], ptr %154, i64 0, i64 0
  store ptr %155, ptr %16, align 8, !tbaa !9
  br label %156

156:                                              ; preds = %285, %241, %235, %167, %150
  %157 = load ptr, ptr %16, align 8, !tbaa !9
  %158 = getelementptr inbounds ptr, ptr %157, i32 1
  store ptr %158, ptr %16, align 8, !tbaa !9
  %159 = load ptr, ptr %157, align 8, !tbaa !9
  store ptr %159, ptr %15, align 8, !tbaa !9
  %160 = icmp ne ptr %159, null
  br i1 %160, label %161, label %287

161:                                              ; preds = %156
  %162 = load ptr, ptr %15, align 8, !tbaa !9
  %163 = getelementptr inbounds %struct.facetT, ptr %162, i32 0, i32 13
  %164 = load i32, ptr %163, align 8, !tbaa !24
  %165 = load i32, ptr %23, align 4, !tbaa !5
  %166 = icmp eq i32 %164, %165
  br i1 %166, label %167, label %168

167:                                              ; preds = %161
  br label %156, !llvm.loop !29

168:                                              ; preds = %161
  %169 = load i32, ptr %23, align 4, !tbaa !5
  %170 = load ptr, ptr %15, align 8, !tbaa !9
  %171 = getelementptr inbounds %struct.facetT, ptr %170, i32 0, i32 13
  store i32 %169, ptr %171, align 8, !tbaa !24
  %172 = load ptr, ptr %15, align 8, !tbaa !9
  %173 = getelementptr inbounds %struct.facetT, ptr %172, i32 0, i32 15
  %174 = load i32, ptr %173, align 8
  %175 = lshr i32 %174, 16
  %176 = and i32 %175, 1
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %258, label %178

178:                                              ; preds = %168
  %179 = load ptr, ptr %8, align 8, !tbaa !9
  %180 = load ptr, ptr %15, align 8, !tbaa !9
  call void @qh_distplane(ptr noundef %179, ptr noundef %180, ptr noundef %14)
  %181 = load ptr, ptr %12, align 8, !tbaa !9
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %181, align 4, !tbaa !5
  %184 = load double, ptr %14, align 8, !tbaa !17
  %185 = load ptr, ptr %11, align 8, !tbaa !9
  %186 = load double, ptr %185, align 8, !tbaa !17
  %187 = fcmp ogt double %184, %186
  br i1 %187, label %188, label %227

188:                                              ; preds = %178
  %189 = load ptr, ptr %15, align 8, !tbaa !9
  %190 = getelementptr inbounds %struct.facetT, ptr %189, i32 0, i32 15
  %191 = load i32, ptr %190, align 8
  %192 = lshr i32 %191, 17
  %193 = and i32 %192, 1
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %195, label %205

195:                                              ; preds = %188
  %196 = load i32, ptr %7, align 4, !tbaa !5
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %205, label %198

198:                                              ; preds = %195
  %199 = load i32, ptr %10, align 4, !tbaa !5
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %226, label %201

201:                                              ; preds = %198
  %202 = load double, ptr %14, align 8, !tbaa !17
  %203 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 6), align 8, !tbaa !31
  %204 = fcmp oge double %202, %203
  br i1 %204, label %205, label %226

205:                                              ; preds = %201, %195, %188
  %206 = load i32, ptr %7, align 4, !tbaa !5
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %222, label %208

208:                                              ; preds = %205
  %209 = load double, ptr %14, align 8, !tbaa !17
  %210 = load double, ptr %26, align 8, !tbaa !17
  %211 = fsub double %209, %210
  store double %211, ptr %25, align 8, !tbaa !17
  %212 = load double, ptr %14, align 8, !tbaa !17
  %213 = load ptr, ptr %11, align 8, !tbaa !9
  %214 = load double, ptr %213, align 8, !tbaa !17
  %215 = load double, ptr %26, align 8, !tbaa !17
  %216 = fadd double %214, %215
  %217 = fcmp ogt double %212, %216
  br i1 %217, label %218, label %221

218:                                              ; preds = %208
  %219 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 98), align 8, !tbaa !15
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 98), align 8, !tbaa !15
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %221

221:                                              ; preds = %218, %208
  br label %222

222:                                              ; preds = %221, %205
  %223 = load ptr, ptr %15, align 8, !tbaa !9
  store ptr %223, ptr %13, align 8, !tbaa !9
  %224 = load double, ptr %14, align 8, !tbaa !17
  %225 = load ptr, ptr %11, align 8, !tbaa !9
  store double %224, ptr %225, align 8, !tbaa !17
  store i32 1, ptr %24, align 4, !tbaa !5
  br label %226

226:                                              ; preds = %222, %201, %198
  br label %244

227:                                              ; preds = %178
  %228 = load i32, ptr %27, align 4, !tbaa !5
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %237

230:                                              ; preds = %227
  %231 = load double, ptr %14, align 8, !tbaa !17
  %232 = load double, ptr %25, align 8, !tbaa !17
  %233 = fmul double 5.000000e+00, %232
  %234 = fcmp olt double %231, %233
  br i1 %234, label %235, label %236

235:                                              ; preds = %230
  br label %156, !llvm.loop !29

236:                                              ; preds = %230
  br label %243

237:                                              ; preds = %227
  %238 = load double, ptr %14, align 8, !tbaa !17
  %239 = load double, ptr %25, align 8, !tbaa !17
  %240 = fcmp olt double %238, %239
  br i1 %240, label %241, label %242

241:                                              ; preds = %237
  br label %156, !llvm.loop !29

242:                                              ; preds = %237
  br label %243

243:                                              ; preds = %242, %236
  br label %244

244:                                              ; preds = %243, %226
  %245 = load i32, ptr %7, align 4, !tbaa !5
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %247, label %257

247:                                              ; preds = %244
  %248 = load double, ptr %14, align 8, !tbaa !17
  %249 = load ptr, ptr %15, align 8, !tbaa !9
  %250 = getelementptr inbounds %struct.facetT, ptr %249, i32 0, i32 1
  %251 = load double, ptr %250, align 8, !tbaa !18
  %252 = fcmp ogt double %248, %251
  br i1 %252, label %253, label %257

253:                                              ; preds = %247
  %254 = load double, ptr %14, align 8, !tbaa !17
  %255 = load ptr, ptr %15, align 8, !tbaa !9
  %256 = getelementptr inbounds %struct.facetT, ptr %255, i32 0, i32 1
  store double %254, ptr %256, align 8, !tbaa !18
  br label %257

257:                                              ; preds = %253, %247, %244
  br label %258

258:                                              ; preds = %257, %168
  %259 = load ptr, ptr %18, align 8, !tbaa !9
  %260 = icmp ne ptr %259, null
  br i1 %260, label %261, label %285

261:                                              ; preds = %258
  %262 = load i32, ptr %21, align 4, !tbaa !5
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %21, align 4, !tbaa !5
  %264 = load i32, ptr %20, align 4, !tbaa !5
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %20, align 4, !tbaa !5
  %266 = icmp ne i32 %264, 0
  br i1 %266, label %282, label %267

267:                                              ; preds = %261
  %268 = load ptr, ptr %18, align 8, !tbaa !9
  %269 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 236), align 8, !tbaa !32
  %270 = getelementptr inbounds %struct.setT, ptr %269, i32 0, i32 1
  %271 = getelementptr inbounds [1 x %union.setelemT], ptr %270, i64 0, i64 0
  store ptr %268, ptr %271, align 8, !tbaa !15
  %272 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 236), align 8, !tbaa !32
  %273 = getelementptr inbounds %struct.setT, ptr %272, i32 0, i32 1
  %274 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 236), align 8, !tbaa !32
  %275 = getelementptr inbounds %struct.setT, ptr %274, i32 0, i32 0
  %276 = load i32, ptr %275, align 8, !tbaa !33
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [1 x %union.setelemT], ptr %273, i64 0, i64 %277
  store i32 2, ptr %278, align 8, !tbaa !15
  %279 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 236), align 8, !tbaa !32
  %280 = getelementptr inbounds %struct.setT, ptr %279, i32 0, i32 1
  %281 = getelementptr inbounds [1 x %union.setelemT], ptr %280, i64 0, i64 1
  store ptr null, ptr %281, align 8, !tbaa !15
  br label %284

282:                                              ; preds = %261
  %283 = load ptr, ptr %18, align 8, !tbaa !9
  call void @qh_setappend(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 236), ptr noundef %283)
  br label %284

284:                                              ; preds = %282, %267
  br label %285

285:                                              ; preds = %284, %258
  %286 = load ptr, ptr %15, align 8, !tbaa !9
  store ptr %286, ptr %18, align 8, !tbaa !9
  br label %156, !llvm.loop !29

287:                                              ; preds = %156
  br label %288

288:                                              ; preds = %287, %145
  %289 = load ptr, ptr %18, align 8, !tbaa !9
  store ptr %289, ptr %17, align 8, !tbaa !9
  %290 = load ptr, ptr %17, align 8, !tbaa !9
  %291 = icmp ne ptr %290, null
  br i1 %291, label %292, label %293

292:                                              ; preds = %288
  store ptr null, ptr %18, align 8, !tbaa !9
  br label %321

293:                                              ; preds = %288
  %294 = load i32, ptr %20, align 4, !tbaa !5
  %295 = icmp ne i32 %294, 0
  br i1 %295, label %297, label %296

296:                                              ; preds = %293
  br label %322

297:                                              ; preds = %293
  %298 = load i32, ptr %20, align 4, !tbaa !5
  %299 = add nsw i32 %298, -1
  store i32 %299, ptr %20, align 4, !tbaa !5
  %300 = icmp ne i32 %299, 0
  br i1 %300, label %316, label %301

301:                                              ; preds = %297
  %302 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 236), align 8, !tbaa !32
  %303 = getelementptr inbounds %struct.setT, ptr %302, i32 0, i32 1
  %304 = getelementptr inbounds [1 x %union.setelemT], ptr %303, i64 0, i64 0
  %305 = load ptr, ptr %304, align 8, !tbaa !15
  store ptr %305, ptr %17, align 8, !tbaa !9
  %306 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 236), align 8, !tbaa !32
  %307 = getelementptr inbounds %struct.setT, ptr %306, i32 0, i32 1
  %308 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 236), align 8, !tbaa !32
  %309 = getelementptr inbounds %struct.setT, ptr %308, i32 0, i32 0
  %310 = load i32, ptr %309, align 8, !tbaa !33
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [1 x %union.setelemT], ptr %307, i64 0, i64 %311
  store i32 1, ptr %312, align 8, !tbaa !15
  %313 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 236), align 8, !tbaa !32
  %314 = getelementptr inbounds %struct.setT, ptr %313, i32 0, i32 1
  %315 = getelementptr inbounds [1 x %union.setelemT], ptr %314, i64 0, i64 0
  store ptr null, ptr %315, align 8, !tbaa !15
  br label %319

316:                                              ; preds = %297
  %317 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 236), align 8, !tbaa !32
  %318 = call ptr @qh_setdellast(ptr noundef %317)
  store ptr %318, ptr %17, align 8, !tbaa !9
  br label %319

319:                                              ; preds = %316, %301
  br label %320

320:                                              ; preds = %319
  br label %321

321:                                              ; preds = %320, %292
  br label %101

322:                                              ; preds = %296
  %323 = load i32, ptr %7, align 4, !tbaa !5
  %324 = icmp ne i32 %323, 0
  br i1 %324, label %350, label %325

325:                                              ; preds = %322
  %326 = load ptr, ptr %12, align 8, !tbaa !9
  %327 = load i32, ptr %326, align 4, !tbaa !5
  %328 = load i32, ptr %19, align 4, !tbaa !5
  %329 = sub nsw i32 %327, %328
  %330 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 97), align 8, !tbaa !15
  %331 = add nsw i32 %330, %329
  store i32 %331, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 97), align 8, !tbaa !15
  %332 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 96), align 8, !tbaa !15
  %333 = load ptr, ptr %12, align 8, !tbaa !9
  %334 = load i32, ptr %333, align 4, !tbaa !5
  %335 = load i32, ptr %19, align 4, !tbaa !5
  %336 = sub nsw i32 %334, %335
  %337 = icmp slt i32 %332, %336
  br i1 %337, label %338, label %343

338:                                              ; preds = %325
  %339 = load ptr, ptr %12, align 8, !tbaa !9
  %340 = load i32, ptr %339, align 4, !tbaa !5
  %341 = load i32, ptr %19, align 4, !tbaa !5
  %342 = sub nsw i32 %340, %341
  store i32 %342, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 96), align 8, !tbaa !15
  br label %343

343:                                              ; preds = %338, %325
  %344 = load i32, ptr %24, align 4, !tbaa !5
  %345 = icmp ne i32 %344, 0
  br i1 %345, label %346, label %349

346:                                              ; preds = %343
  %347 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 148), align 8, !tbaa !15
  %348 = add nsw i32 %347, 1
  store i32 %348, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 148), align 8, !tbaa !15
  br label %349

349:                                              ; preds = %346, %343
  br label %350

350:                                              ; preds = %349, %322
  %351 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !26
  %352 = icmp sge i32 %351, 4
  br i1 %352, label %353, label %375

353:                                              ; preds = %350
  %354 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !27
  %355 = load ptr, ptr %8, align 8, !tbaa !9
  %356 = call i32 @qh_pointid(ptr noundef %355)
  %357 = load i32, ptr %24, align 4, !tbaa !5
  %358 = load ptr, ptr %13, align 8, !tbaa !9
  %359 = icmp ne ptr %358, null
  br i1 %359, label %360, label %364

360:                                              ; preds = %353
  %361 = load ptr, ptr %13, align 8, !tbaa !9
  %362 = getelementptr inbounds %struct.facetT, ptr %361, i32 0, i32 14
  %363 = load i32, ptr %362, align 4, !tbaa !28
  br label %365

364:                                              ; preds = %353
  br label %365

365:                                              ; preds = %364, %360
  %366 = phi i32 [ %363, %360 ], [ -1, %364 ]
  %367 = load ptr, ptr %11, align 8, !tbaa !9
  %368 = load double, ptr %367, align 8, !tbaa !17
  %369 = load i32, ptr %22, align 4, !tbaa !5
  %370 = load i32, ptr %21, align 4, !tbaa !5
  %371 = load ptr, ptr %12, align 8, !tbaa !9
  %372 = load i32, ptr %371, align 4, !tbaa !5
  %373 = load i32, ptr %19, align 4, !tbaa !5
  %374 = sub nsw i32 %372, %373
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %354, i32 noundef 4003, ptr noundef @.str.9, i32 noundef %356, i32 noundef %357, i32 noundef %366, double noundef %368, i32 noundef %369, i32 noundef %370, i32 noundef %374)
  br label %375

375:                                              ; preds = %365, %350
  %376 = load ptr, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  ret ptr %376
}

declare i32 @qh_setsize(ptr noundef) #3

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

declare ptr @qh_setdellast(ptr noundef) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "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 #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, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 2784}
!12 = !{!"qhT", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !13, 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, !13, i64 64, !13, i64 72, !6, i64 80, !6, i64 84, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !10, i64 104, !6, i64 112, !6, i64 116, !10, i64 120, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144, !6, i64 148, !6, i64 152, !13, i64 160, !13, i64 168, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 188, !13, i64 192, !13, i64 200, !6, i64 208, !6, i64 212, !13, 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, !13, i64 448, !13, i64 456, !13, 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, !13, 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, !13, i64 592, !6, i64 600, !10, i64 608, !10, i64 616, !6, i64 624, !6, i64 628, !6, i64 632, !6, i64 636, !6, i64 640, !10, i64 648, !6, i64 656, !10, 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, !10, i64 1728, !10, i64 1736, !10, i64 1744, !10, 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, !10, i64 1872, !13, i64 1880, !13, i64 1888, !13, i64 1896, !13, i64 1904, !6, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !10, i64 2408, !10, i64 2416, !10, i64 2424, !10, i64 2432, !6, i64 2440, !6, i64 2444, !6, i64 2448, !10, i64 2456, !10, i64 2464, !10, i64 2472, !10, i64 2480, !10, i64 2488, !6, i64 2496, !6, i64 2500, !10, i64 2504, !6, i64 2512, !10, i64 2520, !6, i64 2528, !10, i64 2536, !10, i64 2544, !10, i64 2552, !10, 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, !14, i64 2600, !6, i64 2608, !6, i64 2612, !6, i64 2616, !6, i64 2620, !6, i64 2624, !10, i64 2632, !10, i64 2640, !6, i64 2648, !6, i64 2652, !6, i64 2656, !13, i64 2664, !6, i64 2672, !13, i64 2680, !13, i64 2688, !13, i64 2696, !6, i64 2704, !6, i64 2708, !6, i64 2712, !6, i64 2716, !6, i64 2720, !13, i64 2728, !13, i64 2736, !6, i64 2744, !6, i64 2748, !6, i64 2752, !6, i64 2756, !6, i64 2760, !6, i64 2764, !13, i64 2768, !13, i64 2776, !6, i64 2784, !6, i64 2788, !6, i64 2792, !6, i64 2796, !10, i64 2800, !10, i64 2808, !10, i64 2816, !10, i64 2824, !10, i64 2832, !10, i64 2840, !10, i64 2848, !10, i64 2856, !10, i64 2864, !6, i64 2872, !10, i64 2880, !10, i64 2888, !6, i64 2896, !6, i64 2900, !6, i64 2904, !10, i64 2912, !13, i64 2920, !13, i64 2928, !13, i64 2936, !13, i64 2944, !6, i64 2952, !6, i64 2956, !6, i64 2960, !6, i64 2964, !6, i64 2968, !6, i64 2972, !10, i64 2976, !10, i64 2984, !6, i64 2992}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!12, !6, i64 236}
!17 = !{!13, !13, i64 0}
!18 = !{!19, !13, i64 8}
!19 = !{!"facetT", !13, i64 0, !13, i64 8, !13, i64 16, !10, i64 24, !7, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, 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}
!20 = !{!12, !13, i64 2680}
!21 = !{!12, !13, i64 1784}
!22 = !{!12, !13, i64 216}
!23 = !{!12, !13, i64 168}
!24 = !{!19, !6, i64 104}
!25 = !{!19, !10, i64 80}
!26 = !{!12, !6, i64 136}
!27 = !{!12, !10, i64 2424}
!28 = !{!19, !6, i64 108}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!12, !13, i64 24}
!32 = !{!12, !10, i64 2912}
!33 = !{!34, !6, i64 0}
!34 = !{!"setT", !6, i64 0, !7, i64 8}


; 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 }
%union.setelemT = type { ptr }

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.8 = external hidden unnamed_addr constant [132 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [113 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

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

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

declare i32 @qh_pointid(ptr noundef) local_unnamed_addr #3

; 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_findbesthorizon(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr nocapture noundef %4, ptr nocapture noundef %5) local_unnamed_addr #0 {
  %7 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %8 = load i32, ptr %5, align 4, !tbaa !5
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !9
  %10 = add i32 %9, 1
  store i32 %10, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !9
  %11 = icmp ne i32 %0, 0
  br i1 %11, label %15, label %12

12:                                               ; preds = %6
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 760), align 8, !tbaa !14
  %14 = add nsw i32 %13, 1
  store i32 %14, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 760), align 8, !tbaa !14
  br label %27

15:                                               ; preds = %6
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 236), align 4, !tbaa !15
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %21, label %17

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %2, i64 112
  %19 = load i32, ptr %18, align 8
  %20 = and i32 %19, 524288
  %.not126 = icmp eq i32 %20, 0
  br i1 %.not126, label %27, label %21

21:                                               ; preds = %17, %15
  %22 = load double, ptr %4, align 8, !tbaa !16
  %23 = getelementptr inbounds i8, ptr %2, i64 8
  %24 = load double, ptr %23, align 8, !tbaa !17
  %25 = fcmp ogt double %22, %24
  br i1 %25, label %26, label %27

26:                                               ; preds = %21
  store double %22, ptr %23, align 8, !tbaa !17
  br label %27

27:                                               ; preds = %17, %21, %26, %12
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !14
  %29 = icmp sgt i32 %28, 50
  %30 = select i1 %29, i32 2, i32 1
  %31 = uitofp nneg i32 %30 to double
  %32 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2680), align 8, !tbaa !19
  %33 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1784), align 8, !tbaa !20
  %34 = tail call double @llvm.fmuladd.f64(double %33, double 2.000000e+00, double %32)
  %35 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 216), align 8
  %36 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 168), align 8
  %37 = fcmp olt double %35, %36
  %38 = select i1 %37, double %36, double %35
  %39 = fadd double %34, %38
  %40 = fmul double %39, %31
  %41 = load double, ptr %4, align 8, !tbaa !16
  %42 = fsub double %41, %40
  br i1 %11, label %43, label %47

43:                                               ; preds = %27
  %44 = fneg double %40
  %45 = fcmp ogt double %42, %44
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  br label %47

47:                                               ; preds = %43, %46, %27
  %.085 = phi double [ %44, %46 ], [ %42, %43 ], [ %42, %27 ]
  %48 = getelementptr inbounds i8, ptr %2, i64 104
  store i32 %10, ptr %48, align 8, !tbaa !21
  %.not136 = icmp ne i32 %3, 0
  br label %.outer._crit_edge.thread281

.outer._crit_edge.thread281:                      ; preds = %.outer._crit_edge.thread281.backedge, %47
  %.0108 = phi ptr [ %2, %47 ], [ %.0108.be, %.outer._crit_edge.thread281.backedge ]
  %.0101 = phi i32 [ 0, %47 ], [ %.0101.be, %.outer._crit_edge.thread281.backedge ]
  %.097 = phi i32 [ 0, %47 ], [ %.097.be, %.outer._crit_edge.thread281.backedge ]
  %.096 = phi i32 [ 0, %47 ], [ %49, %.outer._crit_edge.thread281.backedge ]
  %.090 = phi i32 [ 0, %47 ], [ %.090.be, %.outer._crit_edge.thread281.backedge ]
  %.186 = phi double [ %.085, %47 ], [ %.186.be, %.outer._crit_edge.thread281.backedge ]
  %.0 = phi ptr [ %2, %47 ], [ %.0.be, %.outer._crit_edge.thread281.backedge ]
  %49 = add nuw nsw i32 %.096, 1
  br i1 %11, label %50, label %60

50:                                               ; preds = %.outer._crit_edge.thread281
  %51 = getelementptr inbounds i8, ptr %.0108, i64 112
  %52 = load i32, ptr %51, align 8
  %53 = and i32 %52, 511
  %54 = icmp ugt i32 %53, 10
  br i1 %54, label %55, label %60

55:                                               ; preds = %50
  %56 = getelementptr inbounds i8, ptr %.0108, i64 80
  %57 = load ptr, ptr %56, align 8, !tbaa !22
  %58 = call i32 @qh_setsize(ptr noundef %57) #4
  %59 = icmp sgt i32 %58, 100
  br label %60

60:                                               ; preds = %55, %50, %.outer._crit_edge.thread281
  %61 = phi i1 [ false, %50 ], [ false, %.outer._crit_edge.thread281 ], [ %59, %55 ]
  %.fr = freeze i1 %61
  %62 = zext i1 %.fr to i32
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !23
  %64 = icmp sgt i32 %63, 3
  br i1 %64, label %65, label %75

65:                                               ; preds = %60
  %66 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !24
  %67 = getelementptr inbounds i8, ptr %.0108, i64 108
  %68 = load i32, ptr %67, align 4, !tbaa !25
  %69 = load double, ptr %4, align 8, !tbaa !16
  %.not127 = icmp eq ptr %.0, null
  br i1 %.not127, label %73, label %70

70:                                               ; preds = %65
  %71 = getelementptr inbounds i8, ptr %.0, i64 108
  %72 = load i32, ptr %71, align 4, !tbaa !25
  br label %73

73:                                               ; preds = %65, %70
  %74 = phi i32 [ %72, %70 ], [ -1, %65 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %66, i32 noundef 4002, ptr noundef nonnull @.str.8, i32 noundef %68, double noundef %69, i32 noundef %74, i32 noundef %0, i32 noundef %3, double noundef %.186, i32 noundef %62, double noundef %40) #4
  br label %75

75:                                               ; preds = %73, %60
  %76 = getelementptr inbounds i8, ptr %.0108, i64 80
  %77 = load ptr, ptr %76, align 8, !tbaa !22
  %.not128 = icmp eq ptr %77, null
  br i1 %.not128, label %.thread146, label %78

78:                                               ; preds = %75
  %79 = getelementptr inbounds i8, ptr %77, i64 8
  %80 = load ptr, ptr %79, align 8, !tbaa !26
  %.not129178215 = icmp eq ptr %80, null
  br i1 %.not129178215, label %.thread146, label %.lr.ph.lr.ph

.lr.ph.lr.ph:                                     ; preds = %78
  %81 = getelementptr inbounds i8, ptr %77, i64 16
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.lr.ph, %.outer
  %82 = phi ptr [ %80, %.lr.ph.lr.ph ], [ %163, %.outer ]
  %83 = phi ptr [ %81, %.lr.ph.lr.ph ], [ %162, %.outer ]
  %.1.ph225 = phi ptr [ %.0, %.lr.ph.lr.ph ], [ %.3, %.outer ]
  %.287.ph224 = phi double [ %.186, %.lr.ph.lr.ph ], [ %.5, %.outer ]
  %.191.ph223 = phi i32 [ %.090, %.lr.ph.lr.ph ], [ %.393, %.outer ]
  %.198.ph220 = phi i32 [ %.097, %.lr.ph.lr.ph ], [ %.299, %.outer ]
  %.1102.ph219 = phi i32 [ %.0101, %.lr.ph.lr.ph ], [ %.5106, %.outer ]
  %.1111.ph216 = phi ptr [ null, %.lr.ph.lr.ph ], [ %147, %.outer ]
  %84 = fmul double %.287.ph224, 5.000000e+00
  br i1 %.fr, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.backedge.us
  %85 = phi ptr [ %103, %.backedge.us ], [ %82, %.lr.ph ]
  %86 = phi ptr [ %102, %.backedge.us ], [ %83, %.lr.ph ]
  %87 = getelementptr inbounds i8, ptr %85, i64 104
  %88 = load i32, ptr %87, align 8, !tbaa !21
  %89 = icmp eq i32 %88, %10
  br i1 %89, label %.backedge.us, label %90

90:                                               ; preds = %.lr.ph.split.us
  store i32 %10, ptr %87, align 8, !tbaa !21
  %91 = getelementptr inbounds i8, ptr %85, i64 112
  %92 = load i32, ptr %91, align 8
  %93 = and i32 %92, 65536
  %.not135.us = icmp eq i32 %93, 0
  br i1 %.not135.us, label %94, label %.thread141

94:                                               ; preds = %90
  call void @qh_distplane(ptr noundef %1, ptr noundef nonnull %85, ptr noundef nonnull %7)
  %95 = load i32, ptr %5, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %5, align 4, !tbaa !5
  %97 = load double, ptr %7, align 8, !tbaa !16
  %98 = load double, ptr %4, align 8, !tbaa !16
  %99 = fcmp ogt double %97, %98
  br i1 %99, label %.split.us, label %100

100:                                              ; preds = %94
  %101 = fcmp olt double %97, %84
  br i1 %101, label %.backedge.us, label %.loopexit

.backedge.us:                                     ; preds = %100, %.lr.ph.split.us
  %102 = getelementptr inbounds i8, ptr %86, i64 8
  %103 = load ptr, ptr %86, align 8, !tbaa !26
  %.not129.us = icmp eq ptr %103, null
  br i1 %.not129.us, label %.outer._crit_edge, label %.lr.ph.split.us, !llvm.loop !27

.lr.ph.split:                                     ; preds = %.lr.ph, %.backedge
  %104 = phi ptr [ %110, %.backedge ], [ %82, %.lr.ph ]
  %105 = phi ptr [ %109, %.backedge ], [ %83, %.lr.ph ]
  %106 = getelementptr inbounds i8, ptr %104, i64 104
  %107 = load i32, ptr %106, align 8, !tbaa !21
  %108 = icmp eq i32 %107, %10
  br i1 %108, label %.backedge, label %111

.backedge:                                        ; preds = %.lr.ph.split, %136
  %109 = getelementptr inbounds i8, ptr %105, i64 8
  %110 = load ptr, ptr %105, align 8, !tbaa !26
  %.not129 = icmp eq ptr %110, null
  br i1 %.not129, label %.outer._crit_edge, label %.lr.ph.split, !llvm.loop !27

111:                                              ; preds = %.lr.ph.split
  store i32 %10, ptr %106, align 8, !tbaa !21
  %112 = getelementptr inbounds i8, ptr %104, i64 112
  %113 = load i32, ptr %112, align 8
  %114 = and i32 %113, 65536
  %.not135 = icmp eq i32 %114, 0
  br i1 %.not135, label %115, label %.thread141

115:                                              ; preds = %111
  call void @qh_distplane(ptr noundef %1, ptr noundef nonnull %104, ptr noundef nonnull %7)
  %116 = load i32, ptr %5, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %5, align 4, !tbaa !5
  %118 = load double, ptr %7, align 8, !tbaa !16
  %119 = load double, ptr %4, align 8, !tbaa !16
  %120 = fcmp ogt double %118, %119
  br i1 %120, label %.split.us, label %136

.split.us:                                        ; preds = %115, %94
  %.us-phi191 = phi ptr [ %85, %94 ], [ %104, %115 ]
  %.us-phi192 = phi double [ %97, %94 ], [ %118, %115 ]
  %.us-phi193 = phi double [ %98, %94 ], [ %119, %115 ]
  %.us-phi194 = phi ptr [ %86, %94 ], [ %105, %115 ]
  %121 = getelementptr inbounds i8, ptr %.us-phi191, i64 112
  %122 = load i32, ptr %121, align 8
  %123 = and i32 %122, 131072
  %124 = icmp eq i32 %123, 0
  %or.cond = or i1 %11, %124
  br i1 %or.cond, label %128, label %125

125:                                              ; preds = %.split.us
  %126 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 24), align 8
  %127 = fcmp ult double %.us-phi192, %126
  %or.cond140 = select i1 %.not136, i1 true, i1 %127
  br i1 %or.cond140, label %.thread141, label %.thread

128:                                              ; preds = %.split.us
  br i1 %11, label %135, label %.thread

.thread:                                          ; preds = %125, %128
  %129 = fsub double %.us-phi192, %40
  %130 = fadd double %40, %.us-phi193
  %131 = fcmp ogt double %.us-phi192, %130
  br i1 %131, label %132, label %135

132:                                              ; preds = %.thread
  %133 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 784), align 8, !tbaa !14
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 784), align 8, !tbaa !14
  br label %135

135:                                              ; preds = %.thread, %132, %128
  %.2103 = phi i32 [ %.1102.ph219, %128 ], [ 0, %132 ], [ %.1102.ph219, %.thread ]
  %.388 = phi double [ %.287.ph224, %128 ], [ %129, %132 ], [ %129, %.thread ]
  store double %.us-phi192, ptr %4, align 8, !tbaa !16
  br label %.loopexit

136:                                              ; preds = %115
  %137 = fcmp olt double %118, %.287.ph224
  br i1 %137, label %.backedge, label %.loopexit

.loopexit:                                        ; preds = %136, %100, %135
  %138 = phi double [ %.us-phi192, %135 ], [ %97, %100 ], [ %118, %136 ]
  %139 = phi ptr [ %.us-phi194, %135 ], [ %86, %100 ], [ %105, %136 ]
  %140 = phi ptr [ %.us-phi191, %135 ], [ %85, %100 ], [ %104, %136 ]
  %.3104 = phi i32 [ %.2103, %135 ], [ %.1102.ph219, %100 ], [ %.1102.ph219, %136 ]
  %.292 = phi i32 [ 1, %135 ], [ %.191.ph223, %100 ], [ %.191.ph223, %136 ]
  %.489 = phi double [ %.388, %135 ], [ %.287.ph224, %100 ], [ %.287.ph224, %136 ]
  %.2 = phi ptr [ %.us-phi191, %135 ], [ %.1.ph225, %100 ], [ %.1.ph225, %136 ]
  br i1 %11, label %141, label %.thread141

141:                                              ; preds = %.loopexit
  %142 = getelementptr inbounds i8, ptr %140, i64 8
  %143 = load double, ptr %142, align 8, !tbaa !17
  %144 = fcmp ogt double %138, %143
  br i1 %144, label %145, label %.thread141

145:                                              ; preds = %141
  store double %138, ptr %142, align 8, !tbaa !17
  br label %.thread141

.thread141:                                       ; preds = %111, %90, %125, %.loopexit, %141, %145
  %146 = phi ptr [ %139, %145 ], [ %139, %141 ], [ %139, %.loopexit ], [ %.us-phi194, %125 ], [ %86, %90 ], [ %105, %111 ]
  %147 = phi ptr [ %140, %145 ], [ %140, %141 ], [ %140, %.loopexit ], [ %.us-phi191, %125 ], [ %85, %90 ], [ %104, %111 ]
  %.4105 = phi i32 [ %.3104, %145 ], [ %.3104, %141 ], [ %.3104, %.loopexit ], [ %.1102.ph219, %125 ], [ %.1102.ph219, %90 ], [ %.1102.ph219, %111 ]
  %.393 = phi i32 [ %.292, %145 ], [ %.292, %141 ], [ %.292, %.loopexit ], [ %.191.ph223, %125 ], [ %.191.ph223, %90 ], [ %.191.ph223, %111 ]
  %.5 = phi double [ %.489, %145 ], [ %.489, %141 ], [ %.489, %.loopexit ], [ %.287.ph224, %125 ], [ %.287.ph224, %90 ], [ %.287.ph224, %111 ]
  %.3 = phi ptr [ %.2, %145 ], [ %.2, %141 ], [ %.2, %.loopexit ], [ %.1.ph225, %125 ], [ %.1.ph225, %90 ], [ %.1.ph225, %111 ]
  %.not137 = icmp eq ptr %.1111.ph216, null
  br i1 %.not137, label %.outer, label %148

148:                                              ; preds = %.thread141
  %149 = add nsw i32 %.198.ph220, 1
  %.not138 = icmp eq i32 %.4105, 0
  br i1 %.not138, label %150, label %160

150:                                              ; preds = %148
  %151 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2912), align 8, !tbaa !29
  %152 = getelementptr inbounds i8, ptr %151, i64 8
  store ptr %.1111.ph216, ptr %152, align 8, !tbaa !14
  %153 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2912), align 8, !tbaa !29
  %154 = getelementptr inbounds i8, ptr %153, i64 8
  %155 = load i32, ptr %153, align 8, !tbaa !30
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [1 x %union.setelemT], ptr %154, i64 0, i64 %156
  store i32 2, ptr %157, align 8, !tbaa !14
  %158 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2912), align 8, !tbaa !29
  %159 = getelementptr inbounds i8, ptr %158, i64 16
  store ptr null, ptr %159, align 8, !tbaa !14
  br label %.outer

160:                                              ; preds = %148
  %161 = add nsw i32 %.4105, 1
  call void @qh_setappend(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 2912), ptr noundef nonnull %.1111.ph216) #4
  br label %.outer

.outer:                                           ; preds = %150, %160, %.thread141
  %.5106 = phi i32 [ %161, %160 ], [ 1, %150 ], [ %.4105, %.thread141 ]
  %.299 = phi i32 [ %149, %160 ], [ %149, %150 ], [ %.198.ph220, %.thread141 ]
  %162 = getelementptr inbounds i8, ptr %146, i64 8
  %163 = load ptr, ptr %146, align 8, !tbaa !26
  %.not129178 = icmp eq ptr %163, null
  br i1 %.not129178, label %.outer._crit_edge.thread281.backedge, label %.lr.ph, !llvm.loop !27

.outer._crit_edge:                                ; preds = %.backedge, %.backedge.us
  %.not130 = icmp eq ptr %.1111.ph216, null
  br i1 %.not130, label %.thread146, label %.outer._crit_edge.thread281.backedge

.outer._crit_edge.thread281.backedge:             ; preds = %.outer, %.outer._crit_edge, %175, %167
  %.0108.be = phi ptr [ %176, %175 ], [ %169, %167 ], [ %.1111.ph216, %.outer._crit_edge ], [ %147, %.outer ]
  %.0101.be = phi i32 [ %165, %175 ], [ 0, %167 ], [ %.1102.ph219, %.outer._crit_edge ], [ %.5106, %.outer ]
  %.097.be = phi i32 [ %.3100156, %175 ], [ %.3100156, %167 ], [ %.198.ph220, %.outer._crit_edge ], [ %.299, %.outer ]
  %.090.be = phi i32 [ %.494158, %175 ], [ %.494158, %167 ], [ %.191.ph223, %.outer._crit_edge ], [ %.393, %.outer ]
  %.186.be = phi double [ %.6160, %175 ], [ %.6160, %167 ], [ %.287.ph224, %.outer._crit_edge ], [ %.5, %.outer ]
  %.0.be = phi ptr [ %.4162, %175 ], [ %.4162, %167 ], [ %.1.ph225, %.outer._crit_edge ], [ %.3, %.outer ]
  br label %.outer._crit_edge.thread281

.thread146:                                       ; preds = %78, %75, %.outer._crit_edge
  %.4162 = phi ptr [ %.1.ph225, %.outer._crit_edge ], [ %.0, %75 ], [ %.0, %78 ]
  %.6160 = phi double [ %.287.ph224, %.outer._crit_edge ], [ %.186, %75 ], [ %.186, %78 ]
  %.494158 = phi i32 [ %.191.ph223, %.outer._crit_edge ], [ %.090, %75 ], [ %.090, %78 ]
  %.3100156 = phi i32 [ %.198.ph220, %.outer._crit_edge ], [ %.097, %75 ], [ %.097, %78 ]
  %.6107154 = phi i32 [ %.1102.ph219, %.outer._crit_edge ], [ %.0101, %75 ], [ %.0101, %78 ]
  %.not131 = icmp eq i32 %.6107154, 0
  br i1 %.not131, label %177, label %164

164:                                              ; preds = %.thread146
  %165 = add nsw i32 %.6107154, -1
  %.not134 = icmp eq i32 %165, 0
  %166 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2912), align 8, !tbaa !29
  br i1 %.not134, label %167, label %175

167:                                              ; preds = %164
  %168 = getelementptr inbounds i8, ptr %166, i64 8
  %169 = load ptr, ptr %168, align 8, !tbaa !14
  %170 = load i32, ptr %166, align 8, !tbaa !30
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [1 x %union.setelemT], ptr %168, i64 0, i64 %171
  store i32 1, ptr %172, align 8, !tbaa !14
  %173 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2912), align 8, !tbaa !29
  %174 = getelementptr inbounds i8, ptr %173, i64 8
  store ptr null, ptr %174, align 8, !tbaa !14
  br label %.outer._crit_edge.thread281.backedge

175:                                              ; preds = %164
  %176 = call ptr @qh_setdellast(ptr noundef %166) #4
  br label %.outer._crit_edge.thread281.backedge

177:                                              ; preds = %.thread146
  br i1 %11, label %192, label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %5, align 4, !tbaa !5
  %180 = sub i32 %179, %8
  %181 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 776), align 8, !tbaa !14
  %182 = add nsw i32 %180, %181
  store i32 %182, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 776), align 8, !tbaa !14
  %183 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 768), align 8, !tbaa !14
  %184 = load i32, ptr %5, align 4, !tbaa !5
  %185 = sub nsw i32 %184, %8
  %186 = icmp slt i32 %183, %185
  br i1 %186, label %187, label %188

187:                                              ; preds = %178
  store i32 %185, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 768), align 8, !tbaa !14
  br label %188

188:                                              ; preds = %187, %178
  %.not132 = icmp eq i32 %.494158, 0
  br i1 %.not132, label %192, label %189

189:                                              ; preds = %188
  %190 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1184), align 8, !tbaa !14
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1184), align 8, !tbaa !14
  br label %192

192:                                              ; preds = %188, %189, %177
  %193 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !23
  %194 = icmp sgt i32 %193, 3
  br i1 %194, label %195, label %206

195:                                              ; preds = %192
  %196 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !24
  %197 = call i32 @qh_pointid(ptr noundef %1) #4
  %.not133 = icmp eq ptr %.4162, null
  br i1 %.not133, label %201, label %198

198:                                              ; preds = %195
  %199 = getelementptr inbounds i8, ptr %.4162, i64 108
  %200 = load i32, ptr %199, align 4, !tbaa !25
  br label %201

201:                                              ; preds = %195, %198
  %202 = phi i32 [ %200, %198 ], [ -1, %195 ]
  %203 = load double, ptr %4, align 8, !tbaa !16
  %204 = load i32, ptr %5, align 4, !tbaa !5
  %205 = sub nsw i32 %204, %8
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %196, i32 noundef 4003, ptr noundef nonnull @.str.9, i32 noundef %197, i32 noundef %.494158, i32 noundef %202, double noundef %203, i32 noundef %49, i32 noundef %.3100156, i32 noundef %205) #4
  br label %206

206:                                              ; preds = %201, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  ret ptr %.4162
}

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #3

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

declare ptr @qh_setdellast(ptr noundef) local_unnamed_addr #3

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "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 #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 2784}
!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 = !{!7, !7, i64 0}
!15 = !{!10, !6, i64 236}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !11, i64 8}
!18 = !{!"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}
!19 = !{!10, !11, i64 2680}
!20 = !{!10, !11, i64 1784}
!21 = !{!18, !6, i64 104}
!22 = !{!18, !12, i64 80}
!23 = !{!10, !6, i64 136}
!24 = !{!10, !12, i64 2424}
!25 = !{!18, !6, i64 108}
!26 = !{!12, !12, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!10, !12, i64 2912}
!30 = !{!31, !6, i64 0}
!31 = !{!"setT", !6, i64 0, !7, i64 8}


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