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

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

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.48 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [80 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @qh_checkzero(i32 noundef %0) #1 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %14 = load i32, ptr %3, align 4, !tbaa !5
  %15 = icmp ne i32 %14, 0
  br i1 %15, label %16, label %18

16:                                               ; preds = %1
  %17 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !9
  store ptr %17, ptr %7, align 8, !tbaa !14
  br label %87

18:                                               ; preds = %1
  %19 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !15
  store ptr %19, ptr %7, align 8, !tbaa !14
  %20 = load ptr, ptr %7, align 8, !tbaa !14
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %74

22:                                               ; preds = %18
  %23 = load ptr, ptr %7, align 8, !tbaa !14
  store ptr %23, ptr %4, align 8, !tbaa !14
  br label %24

24:                                               ; preds = %69, %22
  %25 = load ptr, ptr %4, align 8, !tbaa !14
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %32

27:                                               ; preds = %24
  %28 = load ptr, ptr %4, align 8, !tbaa !14
  %29 = getelementptr inbounds %struct.facetT, ptr %28, i32 0, i32 7
  %30 = load ptr, ptr %29, align 8, !tbaa !16
  %31 = icmp ne ptr %30, null
  br label %32

32:                                               ; preds = %27, %24
  %33 = phi i1 [ false, %24 ], [ %31, %27 ]
  br i1 %33, label %34, label %73

34:                                               ; preds = %32
  %35 = load ptr, ptr %4, align 8, !tbaa !14
  %36 = getelementptr inbounds %struct.facetT, ptr %35, i32 0, i32 10
  %37 = load ptr, ptr %36, align 8, !tbaa !18
  %38 = getelementptr inbounds %struct.setT, ptr %37, i32 0, i32 1
  %39 = getelementptr inbounds [1 x %union.setelemT], ptr %38, i64 0, i64 0
  %40 = load ptr, ptr %39, align 8, !tbaa !19
  store ptr %40, ptr %6, align 8, !tbaa !14
  %41 = load ptr, ptr %6, align 8, !tbaa !14
  %42 = getelementptr inbounds %struct.facetT, ptr %41, i32 0, i32 15
  %43 = load i32, ptr %42, align 8
  %44 = lshr i32 %43, 13
  %45 = and i32 %44, 1
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %48, label %47

47:                                               ; preds = %34
  br label %253

48:                                               ; preds = %34
  %49 = load ptr, ptr %4, align 8, !tbaa !14
  %50 = getelementptr inbounds %struct.facetT, ptr %49, i32 0, i32 15
  %51 = load i32, ptr %50, align 8
  %52 = lshr i32 %51, 16
  %53 = and i32 %52, 1
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %67, label %55

55:                                               ; preds = %48
  %56 = load ptr, ptr %4, align 8, !tbaa !14
  %57 = getelementptr inbounds %struct.facetT, ptr %56, i32 0, i32 15
  %58 = load i32, ptr %57, align 8
  %59 = lshr i32 %58, 21
  %60 = and i32 %59, 1
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %67, label %62

62:                                               ; preds = %55
  %63 = load ptr, ptr %4, align 8, !tbaa !14
  %64 = getelementptr inbounds %struct.facetT, ptr %63, i32 0, i32 3
  %65 = load ptr, ptr %64, align 8, !tbaa !20
  %66 = icmp ne ptr %65, null
  br i1 %66, label %68, label %67

67:                                               ; preds = %62, %55, %48
  br label %253

68:                                               ; preds = %62
  br label %69

69:                                               ; preds = %68
  %70 = load ptr, ptr %4, align 8, !tbaa !14
  %71 = getelementptr inbounds %struct.facetT, ptr %70, i32 0, i32 7
  %72 = load ptr, ptr %71, align 8, !tbaa !16
  store ptr %72, ptr %4, align 8, !tbaa !14
  br label %24, !llvm.loop !21

73:                                               ; preds = %32
  br label %74

74:                                               ; preds = %73, %18
  %75 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 37), align 4, !tbaa !23
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %86

77:                                               ; preds = %74
  %78 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 220), align 4, !tbaa !24
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %86

80:                                               ; preds = %77
  %81 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !25
  %82 = icmp sge i32 %81, 2
  br i1 %82, label %83, label %85

83:                                               ; preds = %80
  %84 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !26
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %84, i32 noundef 2011, ptr noundef @.str.48)
  br label %85

85:                                               ; preds = %83, %80
  store i32 1, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %297

86:                                               ; preds = %77, %74
  br label %87

87:                                               ; preds = %86, %16
  %88 = load ptr, ptr %7, align 8, !tbaa !14
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %236

90:                                               ; preds = %87
  %91 = load ptr, ptr %7, align 8, !tbaa !14
  store ptr %91, ptr %4, align 8, !tbaa !14
  br label %92

92:                                               ; preds = %231, %90
  %93 = load ptr, ptr %4, align 8, !tbaa !14
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %100

95:                                               ; preds = %92
  %96 = load ptr, ptr %4, align 8, !tbaa !14
  %97 = getelementptr inbounds %struct.facetT, ptr %96, i32 0, i32 7
  %98 = load ptr, ptr %97, align 8, !tbaa !16
  %99 = icmp ne ptr %98, null
  br label %100

100:                                              ; preds = %95, %92
  %101 = phi i1 [ false, %92 ], [ %99, %95 ]
  br i1 %101, label %102, label %235

102:                                              ; preds = %100
  %103 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !27
  %104 = add i32 %103, 1
  store i32 %104, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !27
  store ptr null, ptr %6, align 8, !tbaa !14
  store ptr null, ptr %5, align 8, !tbaa !14
  %105 = load ptr, ptr %4, align 8, !tbaa !14
  %106 = getelementptr inbounds %struct.facetT, ptr %105, i32 0, i32 10
  %107 = load ptr, ptr %106, align 8, !tbaa !18
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %178

109:                                              ; preds = %102
  store i32 0, ptr %8, align 4, !tbaa !5
  %110 = load ptr, ptr %4, align 8, !tbaa !14
  %111 = getelementptr inbounds %struct.facetT, ptr %110, i32 0, i32 10
  %112 = load ptr, ptr %111, align 8, !tbaa !18
  %113 = getelementptr inbounds %struct.setT, ptr %112, i32 0, i32 1
  %114 = getelementptr inbounds [1 x %union.setelemT], ptr %113, i64 0, i64 0
  %115 = load ptr, ptr %114, align 8, !tbaa !19
  store ptr %115, ptr %5, align 8, !tbaa !14
  %116 = load ptr, ptr %4, align 8, !tbaa !14
  %117 = getelementptr inbounds %struct.facetT, ptr %116, i32 0, i32 10
  %118 = load ptr, ptr %117, align 8, !tbaa !18
  %119 = call i32 @qh_setsize(ptr noundef %118)
  store i32 %119, ptr %9, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %167, %109
  %121 = load i32, ptr %8, align 4, !tbaa !5
  %122 = load i32, ptr %9, align 4, !tbaa !5
  %123 = icmp slt i32 %121, %122
  br i1 %123, label %124, label %177

124:                                              ; preds = %120
  %125 = load i32, ptr %8, align 4, !tbaa !5
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %132, label %127

127:                                              ; preds = %124
  %128 = load i32, ptr %3, align 4, !tbaa !5
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %132, label %130

130:                                              ; preds = %127
  %131 = load ptr, ptr %5, align 8, !tbaa !14
  store ptr %131, ptr %6, align 8, !tbaa !14
  br label %167

132:                                              ; preds = %127, %124
  %133 = load ptr, ptr %4, align 8, !tbaa !14
  %134 = getelementptr inbounds %struct.facetT, ptr %133, i32 0, i32 8
  %135 = load ptr, ptr %134, align 8, !tbaa !28
  %136 = getelementptr inbounds %struct.setT, ptr %135, i32 0, i32 1
  %137 = load i32, ptr %8, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [1 x %union.setelemT], ptr %136, i64 0, i64 %138
  %140 = load ptr, ptr %139, align 8, !tbaa !19
  store ptr %140, ptr %10, align 8, !tbaa !14
  %141 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !27
  %142 = load ptr, ptr %10, align 8, !tbaa !14
  %143 = getelementptr inbounds %struct.vertexT, ptr %142, i32 0, i32 5
  store i32 %141, ptr %143, align 4, !tbaa !29
  %144 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 64), align 8, !tbaa !19
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 64), align 8, !tbaa !19
  %146 = load ptr, ptr %10, align 8, !tbaa !14
  %147 = getelementptr inbounds %struct.vertexT, ptr %146, i32 0, i32 2
  %148 = load ptr, ptr %147, align 8, !tbaa !31
  %149 = load ptr, ptr %5, align 8, !tbaa !14
  call void @qh_distplane(ptr noundef %148, ptr noundef %149, ptr noundef %12)
  %150 = load double, ptr %12, align 8, !tbaa !32
  %151 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 134), align 8, !tbaa !33
  %152 = fmul double -2.000000e+00, %151
  %153 = fcmp oge double %150, %152
  br i1 %153, label %154, label %166

154:                                              ; preds = %132
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 220), align 4, !tbaa !24
  %155 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 37), align 4, !tbaa !23
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %164

157:                                              ; preds = %154
  %158 = load i32, ptr %3, align 4, !tbaa !5
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %164, label %160

160:                                              ; preds = %157
  %161 = load double, ptr %12, align 8, !tbaa !32
  %162 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 134), align 8, !tbaa !33
  %163 = fcmp ogt double %161, %162
  br i1 %163, label %164, label %165

164:                                              ; preds = %160, %157, %154
  br label %265

165:                                              ; preds = %160
  br label %166

166:                                              ; preds = %165, %132
  br label %167

167:                                              ; preds = %166, %130
  %168 = load ptr, ptr %4, align 8, !tbaa !14
  %169 = getelementptr inbounds %struct.facetT, ptr %168, i32 0, i32 10
  %170 = load ptr, ptr %169, align 8, !tbaa !18
  %171 = getelementptr inbounds %struct.setT, ptr %170, i32 0, i32 1
  %172 = load i32, ptr %8, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %8, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [1 x %union.setelemT], ptr %171, i64 0, i64 %174
  %176 = load ptr, ptr %175, align 8, !tbaa !19
  store ptr %176, ptr %5, align 8, !tbaa !14
  br label %120, !llvm.loop !34

177:                                              ; preds = %120
  br label %178

178:                                              ; preds = %177, %102
  %179 = load i32, ptr %3, align 4, !tbaa !5
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %230, label %181

181:                                              ; preds = %178
  %182 = load ptr, ptr %6, align 8, !tbaa !14
  %183 = icmp ne ptr %182, null
  br i1 %183, label %184, label %230

184:                                              ; preds = %181
  store ptr null, ptr %10, align 8, !tbaa !14
  %185 = load ptr, ptr %6, align 8, !tbaa !14
  %186 = getelementptr inbounds %struct.facetT, ptr %185, i32 0, i32 8
  %187 = load ptr, ptr %186, align 8, !tbaa !28
  %188 = icmp ne ptr %187, null
  br i1 %188, label %189, label %229

189:                                              ; preds = %184
  %190 = load ptr, ptr %6, align 8, !tbaa !14
  %191 = getelementptr inbounds %struct.facetT, ptr %190, i32 0, i32 8
  %192 = load ptr, ptr %191, align 8, !tbaa !28
  %193 = getelementptr inbounds %struct.setT, ptr %192, i32 0, i32 1
  %194 = getelementptr inbounds [1 x %union.setelemT], ptr %193, i64 0, i64 0
  store ptr %194, ptr %11, align 8, !tbaa !14
  br label %195

195:                                              ; preds = %227, %189
  %196 = load ptr, ptr %11, align 8, !tbaa !14
  %197 = getelementptr inbounds ptr, ptr %196, i32 1
  store ptr %197, ptr %11, align 8, !tbaa !14
  %198 = load ptr, ptr %196, align 8, !tbaa !14
  store ptr %198, ptr %10, align 8, !tbaa !14
  %199 = icmp ne ptr %198, null
  br i1 %199, label %200, label %228

200:                                              ; preds = %195
  %201 = load ptr, ptr %10, align 8, !tbaa !14
  %202 = getelementptr inbounds %struct.vertexT, ptr %201, i32 0, i32 5
  %203 = load i32, ptr %202, align 4, !tbaa !29
  %204 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !27
  %205 = icmp ne i32 %203, %204
  br i1 %205, label %206, label %227

206:                                              ; preds = %200
  %207 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 64), align 8, !tbaa !19
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 64), align 8, !tbaa !19
  %209 = load ptr, ptr %10, align 8, !tbaa !14
  %210 = getelementptr inbounds %struct.vertexT, ptr %209, i32 0, i32 2
  %211 = load ptr, ptr %210, align 8, !tbaa !31
  %212 = load ptr, ptr %4, align 8, !tbaa !14
  call void @qh_distplane(ptr noundef %211, ptr noundef %212, ptr noundef %12)
  %213 = load double, ptr %12, align 8, !tbaa !32
  %214 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 134), align 8, !tbaa !33
  %215 = fmul double -2.000000e+00, %214
  %216 = fcmp oge double %213, %215
  br i1 %216, label %217, label %226

217:                                              ; preds = %206
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 220), align 4, !tbaa !24
  %218 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 37), align 4, !tbaa !23
  %219 = icmp ne i32 %218, 0
  br i1 %219, label %220, label %224

220:                                              ; preds = %217
  %221 = load double, ptr %12, align 8, !tbaa !32
  %222 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 134), align 8, !tbaa !33
  %223 = fcmp ogt double %221, %222
  br i1 %223, label %224, label %225

224:                                              ; preds = %220, %217
  br label %281

225:                                              ; preds = %220
  br label %226

226:                                              ; preds = %225, %206
  br label %228

227:                                              ; preds = %200
  br label %195, !llvm.loop !35

228:                                              ; preds = %226, %195
  br label %229

229:                                              ; preds = %228, %184
  br label %230

230:                                              ; preds = %229, %181, %178
  br label %231

231:                                              ; preds = %230
  %232 = load ptr, ptr %4, align 8, !tbaa !14
  %233 = getelementptr inbounds %struct.facetT, ptr %232, i32 0, i32 7
  %234 = load ptr, ptr %233, align 8, !tbaa !16
  store ptr %234, ptr %4, align 8, !tbaa !14
  br label %92, !llvm.loop !36

235:                                              ; preds = %100
  br label %236

236:                                              ; preds = %235, %87
  %237 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !25
  %238 = icmp sge i32 %237, 2
  br i1 %238, label %239, label %252

239:                                              ; preds = %236
  %240 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !26
  %241 = load i32, ptr %3, align 4, !tbaa !5
  %242 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 37), align 4, !tbaa !23
  %243 = icmp ne i32 %242, 0
  br i1 %243, label %244, label %248

244:                                              ; preds = %239
  %245 = load i32, ptr %3, align 4, !tbaa !5
  %246 = icmp ne i32 %245, 0
  %247 = xor i1 %246, true
  br label %248

248:                                              ; preds = %244, %239
  %249 = phi i1 [ false, %239 ], [ %247, %244 ]
  %250 = zext i1 %249 to i64
  %251 = select i1 %249, ptr @.str.50, ptr @.str.51
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %240, i32 noundef 2012, ptr noundef @.str.49, i32 noundef %241, ptr noundef %251)
  br label %252

252:                                              ; preds = %248, %236
  store i32 1, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %297

253:                                              ; preds = %67, %47
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 220), align 4, !tbaa !24
  %254 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !25
  %255 = icmp sge i32 %254, 2
  br i1 %255, label %256, label %264

256:                                              ; preds = %253
  %257 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !26
  %258 = load ptr, ptr %4, align 8, !tbaa !14
  %259 = getelementptr inbounds %struct.facetT, ptr %258, i32 0, i32 14
  %260 = load i32, ptr %259, align 4, !tbaa !37
  %261 = load ptr, ptr %6, align 8, !tbaa !14
  %262 = getelementptr inbounds %struct.facetT, ptr %261, i32 0, i32 14
  %263 = load i32, ptr %262, align 4, !tbaa !37
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %257, i32 noundef 2013, ptr noundef @.str.52, i32 noundef %260, i32 noundef %263)
  br label %264

264:                                              ; preds = %256, %253
  store i32 0, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %297

265:                                              ; preds = %164
  %266 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !25
  %267 = icmp sge i32 %266, 2
  br i1 %267, label %268, label %280

268:                                              ; preds = %265
  %269 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !26
  %270 = load ptr, ptr %4, align 8, !tbaa !14
  %271 = getelementptr inbounds %struct.facetT, ptr %270, i32 0, i32 14
  %272 = load i32, ptr %271, align 4, !tbaa !37
  %273 = load ptr, ptr %5, align 8, !tbaa !14
  %274 = getelementptr inbounds %struct.facetT, ptr %273, i32 0, i32 14
  %275 = load i32, ptr %274, align 4, !tbaa !37
  %276 = load ptr, ptr %10, align 8, !tbaa !14
  %277 = getelementptr inbounds %struct.vertexT, ptr %276, i32 0, i32 4
  %278 = load i32, ptr %277, align 8, !tbaa !38
  %279 = load double, ptr %12, align 8, !tbaa !32
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %269, i32 noundef 2014, ptr noundef @.str.53, i32 noundef %272, i32 noundef %275, i32 noundef %278, double noundef %279)
  br label %280

280:                                              ; preds = %268, %265
  store i32 0, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %297

281:                                              ; preds = %224
  %282 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !25
  %283 = icmp sge i32 %282, 2
  br i1 %283, label %284, label %296

284:                                              ; preds = %281
  %285 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !26
  %286 = load ptr, ptr %4, align 8, !tbaa !14
  %287 = getelementptr inbounds %struct.facetT, ptr %286, i32 0, i32 14
  %288 = load i32, ptr %287, align 4, !tbaa !37
  %289 = load ptr, ptr %6, align 8, !tbaa !14
  %290 = getelementptr inbounds %struct.facetT, ptr %289, i32 0, i32 14
  %291 = load i32, ptr %290, align 4, !tbaa !37
  %292 = load ptr, ptr %10, align 8, !tbaa !14
  %293 = getelementptr inbounds %struct.vertexT, ptr %292, i32 0, i32 4
  %294 = load i32, ptr %293, align 8, !tbaa !38
  %295 = load double, ptr %12, align 8, !tbaa !32
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %285, i32 noundef 2060, ptr noundef @.str.54, i32 noundef %288, i32 noundef %291, i32 noundef %294, double noundef %295)
  br label %296

296:                                              ; preds = %284, %281
  store i32 0, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %297

297:                                              ; preds = %296, %280, %264, %252, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %298 = load i32, ptr %2, align 4
  ret i32 %298
}

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

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

declare i32 @qh_setsize(ptr noundef) #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 2456}
!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 = !{!12, !12, i64 0}
!15 = !{!10, !12, i64 2480}
!16 = !{!17, !12, i64 56}
!17 = !{!"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}
!18 = !{!17, !12, i64 80}
!19 = !{!7, !7, i64 0}
!20 = !{!17, !12, i64 24}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!10, !6, i64 180}
!24 = !{!10, !6, i64 2796}
!25 = !{!10, !6, i64 136}
!26 = !{!10, !12, i64 2424}
!27 = !{!10, !6, i64 2788}
!28 = !{!17, !12, i64 64}
!29 = !{!30, !6, i64 36}
!30 = !{!"vertexT", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 40, !6, i64 40, !6, i64 40, !6, i64 40, !6, i64 40}
!31 = !{!30, !12, i64 16}
!32 = !{!11, !11, i64 0}
!33 = !{!10, !11, i64 1784}
!34 = distinct !{!34, !22}
!35 = distinct !{!35, !22}
!36 = distinct !{!36, !22}
!37 = !{!17, !6, i64 108}
!38 = !{!30, !6, i64 32}


; 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 local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.48 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [80 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @qh_checkzero(i32 noundef %0) local_unnamed_addr #1 {
  %2 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  %3 = icmp ne i32 %0, 0
  br i1 %3, label %4, label %6

4:                                                ; preds = %1
  %5 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !5
  br label %34

6:                                                ; preds = %1
  %7 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !13
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %.critedge, label %.preheader92

.preheader92:                                     ; preds = %6, %22
  %.064 = phi ptr [ %9, %22 ], [ %7, %6 ]
  %8 = getelementptr inbounds i8, ptr %.064, i64 56
  %9 = load ptr, ptr %8, align 8, !tbaa !14
  %.not71 = icmp eq ptr %9, null
  br i1 %.not71, label %.critedge, label %10

10:                                               ; preds = %.preheader92
  %11 = getelementptr inbounds i8, ptr %.064, i64 80
  %12 = load ptr, ptr %11, align 8, !tbaa !16
  %13 = getelementptr inbounds i8, ptr %12, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !17
  %15 = getelementptr inbounds i8, ptr %14, i64 112
  %16 = load i32, ptr %15, align 8
  %17 = and i32 %16, 8192
  %.not72 = icmp eq i32 %17, 0
  br i1 %.not72, label %108, label %18

18:                                               ; preds = %10
  %19 = getelementptr inbounds i8, ptr %.064, i64 112
  %20 = load i32, ptr %19, align 8
  %21 = and i32 %20, 2162688
  %or.cond86 = icmp eq i32 %21, 0
  br i1 %or.cond86, label %22, label %108

22:                                               ; preds = %18
  %23 = getelementptr inbounds i8, ptr %.064, i64 24
  %24 = load ptr, ptr %23, align 8, !tbaa !18
  %.not75 = icmp eq ptr %24, null
  br i1 %.not75, label %108, label %.preheader92, !llvm.loop !19

.critedge:                                        ; preds = %.preheader92, %6
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 180), align 4, !tbaa !21
  %26 = icmp ne i32 %25, 0
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2796), align 4
  %28 = icmp ne i32 %27, 0
  %or.cond = select i1 %26, i1 %28, i1 false
  br i1 %or.cond, label %29, label %34

29:                                               ; preds = %.critedge
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !22
  %31 = icmp sgt i32 %30, 1
  br i1 %31, label %32, label %139

32:                                               ; preds = %29
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !23
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %33, i32 noundef 2011, ptr noundef nonnull @.str.48) #3
  br label %139

34:                                               ; preds = %.critedge, %4
  %.061 = phi ptr [ %5, %4 ], [ %7, %.critedge ]
  %.not76 = icmp eq ptr %.061, null
  br i1 %.not76, label %.critedge3, label %.preheader91

.preheader91:                                     ; preds = %34
  %35 = icmp eq i32 %0, 0
  br label %36

36:                                               ; preds = %.preheader91, %.thread
  %.165106 = phi ptr [ %.061, %.preheader91 ], [ %100, %.thread ]
  %37 = getelementptr inbounds i8, ptr %.165106, i64 56
  %38 = load ptr, ptr %37, align 8, !tbaa !14
  %.not78 = icmp eq ptr %38, null
  br i1 %.not78, label %.critedge3, label %39

39:                                               ; preds = %36
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !24
  %41 = add i32 %40, 1
  store i32 %41, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !24
  %42 = getelementptr inbounds i8, ptr %.165106, i64 80
  %43 = load ptr, ptr %42, align 8, !tbaa !16
  %.not81 = icmp eq ptr %43, null
  br i1 %.not81, label %.thread, label %44

44:                                               ; preds = %39
  %45 = getelementptr inbounds i8, ptr %43, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !17
  %47 = call i32 @qh_setsize(ptr noundef nonnull %43) #3
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %44
  %49 = getelementptr inbounds i8, ptr %.165106, i64 64
  %wide.trip.count = zext nneg i32 %47 to i64
  br label %50

50:                                               ; preds = %.lr.ph, %73
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %73 ]
  %.062104 = phi ptr [ null, %.lr.ph ], [ %.1, %73 ]
  %.063103 = phi ptr [ %46, %.lr.ph ], [ %77, %73 ]
  %51 = trunc nuw nsw i64 %indvars.iv to i32
  %52 = or i32 %51, %0
  %or.cond5.not = icmp eq i32 %52, 0
  br i1 %or.cond5.not, label %73, label %53

53:                                               ; preds = %50
  %54 = load ptr, ptr %49, align 8, !tbaa !25
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  %56 = getelementptr inbounds [1 x %union.setelemT], ptr %55, i64 0, i64 %indvars.iv
  %57 = load ptr, ptr %56, align 8, !tbaa !17
  %58 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !24
  %59 = getelementptr inbounds i8, ptr %57, i64 36
  store i32 %58, ptr %59, align 4, !tbaa !26
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 512), align 8, !tbaa !17
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 512), align 8, !tbaa !17
  %62 = getelementptr inbounds i8, ptr %57, i64 16
  %63 = load ptr, ptr %62, align 8, !tbaa !28
  call void @qh_distplane(ptr noundef %63, ptr noundef %.063103, ptr noundef nonnull %2) #3
  %64 = load double, ptr %2, align 8, !tbaa !29
  %65 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1784), align 8, !tbaa !30
  %66 = fmul double %65, -2.000000e+00
  %67 = fcmp ult double %64, %66
  br i1 %67, label %73, label %68

68:                                               ; preds = %53
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2796), align 4, !tbaa !31
  %69 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 180), align 4, !tbaa !21
  %70 = icmp eq i32 %69, 0
  %71 = fcmp ogt double %64, %65
  %72 = or i1 %71, %70
  %or.cond89 = or i1 %3, %72
  br i1 %or.cond89, label %117, label %73

73:                                               ; preds = %68, %50, %53
  %.1 = phi ptr [ %.062104, %53 ], [ %.063103, %50 ], [ %.062104, %68 ]
  %74 = load ptr, ptr %42, align 8, !tbaa !16
  %75 = getelementptr inbounds i8, ptr %74, i64 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %76 = getelementptr inbounds [1 x %union.setelemT], ptr %75, i64 0, i64 %indvars.iv.next
  %77 = load ptr, ptr %76, align 8, !tbaa !17
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %50, !llvm.loop !32

._crit_edge:                                      ; preds = %73
  %78 = icmp ne ptr %.1, null
  %or.cond9 = select i1 %35, i1 %78, i1 false
  br i1 %or.cond9, label %79, label %.thread

79:                                               ; preds = %._crit_edge
  %80 = getelementptr inbounds i8, ptr %.1, i64 64
  %81 = load ptr, ptr %80, align 8, !tbaa !25
  %.not82 = icmp eq ptr %81, null
  br i1 %.not82, label %.thread, label %.preheader

.preheader:                                       ; preds = %79
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4
  br label %83

83:                                               ; preds = %.preheader, %85
  %.pn = phi ptr [ %.0, %85 ], [ %81, %.preheader ]
  %.0 = getelementptr inbounds i8, ptr %.pn, i64 8
  %84 = load ptr, ptr %.0, align 8, !tbaa !33
  %.not83 = icmp eq ptr %84, null
  br i1 %.not83, label %.thread, label %85

85:                                               ; preds = %83
  %86 = getelementptr inbounds i8, ptr %84, i64 36
  %87 = load i32, ptr %86, align 4, !tbaa !26
  %.not84 = icmp eq i32 %87, %82
  br i1 %.not84, label %83, label %88, !llvm.loop !34

88:                                               ; preds = %85
  %89 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 512), align 8, !tbaa !17
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 512), align 8, !tbaa !17
  %91 = getelementptr inbounds i8, ptr %84, i64 16
  %92 = load ptr, ptr %91, align 8, !tbaa !28
  call void @qh_distplane(ptr noundef %92, ptr noundef nonnull %.165106, ptr noundef nonnull %2) #3
  %93 = load double, ptr %2, align 8, !tbaa !29
  %94 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1784), align 8, !tbaa !30
  %95 = fmul double %94, -2.000000e+00
  %96 = fcmp ult double %93, %95
  br i1 %96, label %.thread, label %97

97:                                               ; preds = %88
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2796), align 4, !tbaa !31
  %98 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 180), align 4, !tbaa !21
  %.not85 = icmp eq i32 %98, 0
  %99 = fcmp ogt double %93, %94
  %or.cond90 = or i1 %99, %.not85
  br i1 %or.cond90, label %128, label %.thread

.thread:                                          ; preds = %83, %44, %97, %39, %._crit_edge, %88, %79
  %100 = load ptr, ptr %37, align 8, !tbaa !14
  %.not77 = icmp eq ptr %100, null
  br i1 %.not77, label %.critedge3, label %36, !llvm.loop !35

.critedge3:                                       ; preds = %36, %.thread, %34
  %101 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !22
  %102 = icmp sgt i32 %101, 1
  br i1 %102, label %103, label %139

103:                                              ; preds = %.critedge3
  %104 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !23
  %105 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 180), align 4, !tbaa !21
  %106 = icmp eq i32 %105, 0
  %.not80 = or i1 %3, %106
  %107 = select i1 %.not80, ptr @.str.51, ptr @.str.50
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %104, i32 noundef 2012, ptr noundef nonnull @.str.49, i32 noundef %0, ptr noundef nonnull %107) #3
  br label %139

108:                                              ; preds = %18, %22, %10
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2796), align 4, !tbaa !31
  %109 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !22
  %110 = icmp sgt i32 %109, 1
  br i1 %110, label %111, label %139

111:                                              ; preds = %108
  %112 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !23
  %113 = getelementptr inbounds i8, ptr %.064, i64 108
  %114 = load i32, ptr %113, align 4, !tbaa !36
  %115 = getelementptr inbounds i8, ptr %14, i64 108
  %116 = load i32, ptr %115, align 4, !tbaa !36
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %112, i32 noundef 2013, ptr noundef nonnull @.str.52, i32 noundef %114, i32 noundef %116) #3
  br label %139

117:                                              ; preds = %68
  %118 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !22
  %119 = icmp sgt i32 %118, 1
  br i1 %119, label %120, label %139

120:                                              ; preds = %117
  %121 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !23
  %122 = getelementptr inbounds i8, ptr %.165106, i64 108
  %123 = load i32, ptr %122, align 4, !tbaa !36
  %124 = getelementptr inbounds i8, ptr %.063103, i64 108
  %125 = load i32, ptr %124, align 4, !tbaa !36
  %126 = getelementptr inbounds i8, ptr %57, i64 32
  %127 = load i32, ptr %126, align 8, !tbaa !37
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %121, i32 noundef 2014, ptr noundef nonnull @.str.53, i32 noundef %123, i32 noundef %125, i32 noundef %127, double noundef %64) #3
  br label %139

128:                                              ; preds = %97
  %129 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !22
  %130 = icmp sgt i32 %129, 1
  br i1 %130, label %131, label %139

131:                                              ; preds = %128
  %132 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !23
  %133 = getelementptr inbounds i8, ptr %.165106, i64 108
  %134 = load i32, ptr %133, align 4, !tbaa !36
  %135 = getelementptr inbounds i8, ptr %.1, i64 108
  %136 = load i32, ptr %135, align 4, !tbaa !36
  %137 = getelementptr inbounds i8, ptr %84, i64 32
  %138 = load i32, ptr %137, align 8, !tbaa !37
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %132, i32 noundef 2060, ptr noundef nonnull @.str.54, i32 noundef %134, i32 noundef %136, i32 noundef %138, double noundef %93) #3
  br label %139

139:                                              ; preds = %128, %131, %117, %120, %108, %111, %.critedge3, %103, %29, %32
  %.059 = phi i32 [ 1, %32 ], [ 1, %29 ], [ 1, %103 ], [ 1, %.critedge3 ], [ 0, %111 ], [ 0, %108 ], [ 0, %120 ], [ 0, %117 ], [ 0, %131 ], [ 0, %128 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  ret i32 %.059
}

declare void @qh_fprintf(ptr noundef, i32 noundef, 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) #0

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #2

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

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


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