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

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

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

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.140 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [79 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

15:                                               ; preds = %2
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %16, ptr %6, align 8, !tbaa !5
  br label %17

17:                                               ; preds = %38, %15
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %25

20:                                               ; preds = %17
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.facetT, ptr %21, i32 0, i32 7
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  %24 = icmp ne ptr %23, null
  br label %25

25:                                               ; preds = %20, %17
  %26 = phi i1 [ false, %17 ], [ %24, %20 ]
  br i1 %26, label %27, label %42

27:                                               ; preds = %25
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.facetT, ptr %28, i32 0, i32 15
  %30 = load i32, ptr %29, align 8
  %31 = lshr i32 %30, 19
  %32 = and i32 %31, 1
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %37

34:                                               ; preds = %27
  %35 = load i32, ptr %11, align 4, !tbaa !9
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %11, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %34, %27
  br label %38

38:                                               ; preds = %37
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.facetT, ptr %39, i32 0, i32 7
  %41 = load ptr, ptr %40, align 8, !tbaa !13
  store ptr %41, ptr %6, align 8, !tbaa !5
  br label %17, !llvm.loop !15

42:                                               ; preds = %25
  br label %43

43:                                               ; preds = %42, %2
  %44 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !17
  %45 = icmp sgt i32 %44, 0
  br i1 %45, label %46, label %93

46:                                               ; preds = %43
  %47 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 39), align 4, !tbaa !20
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %93, label %49

49:                                               ; preds = %46
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %92

52:                                               ; preds = %49
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %53, ptr %6, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %87, %52
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %62

57:                                               ; preds = %54
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.facetT, ptr %58, i32 0, i32 7
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %61 = icmp ne ptr %60, null
  br label %62

62:                                               ; preds = %57, %54
  %63 = phi i1 [ false, %54 ], [ %61, %57 ]
  br i1 %63, label %64, label %91

64:                                               ; preds = %62
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.facetT, ptr %65, i32 0, i32 15
  %67 = load i32, ptr %66, align 8
  %68 = lshr i32 %67, 19
  %69 = and i32 %68, 1
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %86

71:                                               ; preds = %64
  %72 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 26), align 8, !tbaa !21
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.facetT, ptr %73, i32 0, i32 8
  %75 = load ptr, ptr %74, align 8, !tbaa !22
  %76 = call ptr @qh_isvertex(ptr noundef %72, ptr noundef %75)
  %77 = icmp ne ptr %76, null
  br i1 %77, label %86, label %78

78:                                               ; preds = %71
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.facetT, ptr %79, i32 0, i32 15
  %81 = load i32, ptr %80, align 8
  %82 = and i32 %81, -524289
  %83 = or i32 %82, 0
  store i32 %83, ptr %80, align 8
  %84 = load i32, ptr %11, align 4, !tbaa !9
  %85 = add nsw i32 %84, -1
  store i32 %85, ptr %11, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %78, %71, %64
  br label %87

87:                                               ; preds = %86
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.facetT, ptr %88, i32 0, i32 7
  %90 = load ptr, ptr %89, align 8, !tbaa !13
  store ptr %90, ptr %6, align 8, !tbaa !5
  br label %54, !llvm.loop !23

91:                                               ; preds = %62
  br label %92

92:                                               ; preds = %91, %49
  br label %93

93:                                               ; preds = %92, %46, %43
  %94 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 22), align 4, !tbaa !24
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %155

96:                                               ; preds = %93
  %97 = load i32, ptr %11, align 4, !tbaa !9
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %155

99:                                               ; preds = %96
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %154

102:                                              ; preds = %99
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %103, ptr %6, align 8, !tbaa !5
  br label %104

104:                                              ; preds = %149, %102
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %112

107:                                              ; preds = %104
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.facetT, ptr %108, i32 0, i32 7
  %110 = load ptr, ptr %109, align 8, !tbaa !13
  %111 = icmp ne ptr %110, null
  br label %112

112:                                              ; preds = %107, %104
  %113 = phi i1 [ false, %104 ], [ %111, %107 ]
  br i1 %113, label %114, label %153

114:                                              ; preds = %112
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.facetT, ptr %115, i32 0, i32 15
  %117 = load i32, ptr %116, align 8
  %118 = lshr i32 %117, 19
  %119 = and i32 %118, 1
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %148

121:                                              ; preds = %114
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.facetT, ptr %122, i32 0, i32 3
  %124 = load ptr, ptr %123, align 8, !tbaa !25
  %125 = icmp ne ptr %124, null
  br i1 %125, label %126, label %148

126:                                              ; preds = %121
  %127 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 59), align 8, !tbaa !26
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 59), align 8, !tbaa !26
  %129 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !27
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %129, ptr noundef %130, ptr noundef %10)
  %131 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 22), align 4, !tbaa !24
  %132 = icmp sgt i32 %131, 0
  %133 = zext i1 %132 to i32
  %134 = load double, ptr %10, align 8, !tbaa !11
  %135 = fcmp ogt double %134, 0.000000e+00
  %136 = zext i1 %135 to i32
  %137 = xor i32 %133, %136
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %147

139:                                              ; preds = %126
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.facetT, ptr %140, i32 0, i32 15
  %142 = load i32, ptr %141, align 8
  %143 = and i32 %142, -524289
  %144 = or i32 %143, 0
  store i32 %144, ptr %141, align 8
  %145 = load i32, ptr %11, align 4, !tbaa !9
  %146 = add nsw i32 %145, -1
  store i32 %146, ptr %11, align 4, !tbaa !9
  br label %147

147:                                              ; preds = %139, %126
  br label %148

148:                                              ; preds = %147, %121, %114
  br label %149

149:                                              ; preds = %148
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.facetT, ptr %150, i32 0, i32 7
  %152 = load ptr, ptr %151, align 8, !tbaa !13
  store ptr %152, ptr %6, align 8, !tbaa !5
  br label %104, !llvm.loop !28

153:                                              ; preds = %112
  br label %154

154:                                              ; preds = %153, %99
  br label %155

155:                                              ; preds = %154, %96, %93
  %156 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !29
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %301

158:                                              ; preds = %155
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %167, label %161

161:                                              ; preds = %158
  %162 = load i32, ptr %5, align 4, !tbaa !9
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %167, label %164

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

167:                                              ; preds = %164, %161, %158
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = icmp ne ptr %168, null
  br i1 %169, label %170, label %222

170:                                              ; preds = %167
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %171, ptr %6, align 8, !tbaa !5
  br label %172

172:                                              ; preds = %217, %170
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = icmp ne ptr %173, null
  br i1 %174, label %175, label %180

175:                                              ; preds = %172
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.facetT, ptr %176, i32 0, i32 7
  %178 = load ptr, ptr %177, align 8, !tbaa !13
  %179 = icmp ne ptr %178, null
  br label %180

180:                                              ; preds = %175, %172
  %181 = phi i1 [ false, %172 ], [ %179, %175 ]
  br i1 %181, label %182, label %221

182:                                              ; preds = %180
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.facetT, ptr %183, i32 0, i32 15
  %185 = load i32, ptr %184, align 8
  %186 = lshr i32 %185, 19
  %187 = and i32 %186, 1
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %216

189:                                              ; preds = %182
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.facetT, ptr %190, i32 0, i32 3
  %192 = load ptr, ptr %191, align 8, !tbaa !25
  %193 = icmp ne ptr %192, null
  br i1 %193, label %194, label %216

194:                                              ; preds = %189
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.facetT, ptr %195, i32 0, i32 3
  %197 = load ptr, ptr %196, align 8, !tbaa !25
  %198 = call i32 @qh_inthresholds(ptr noundef %197, ptr noundef %8)
  %199 = icmp ne i32 %198, 0
  br i1 %199, label %215, label %200

200:                                              ; preds = %194
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.facetT, ptr %201, i32 0, i32 15
  %203 = load i32, ptr %202, align 8
  %204 = and i32 %203, -524289
  %205 = or i32 %204, 0
  store i32 %205, ptr %202, align 8
  %206 = load i32, ptr %11, align 4, !tbaa !9
  %207 = add nsw i32 %206, -1
  store i32 %207, ptr %11, align 4, !tbaa !9
  %208 = load double, ptr %8, align 8, !tbaa !11
  %209 = load double, ptr %9, align 8, !tbaa !11
  %210 = fcmp olt double %208, %209
  br i1 %210, label %211, label %214

211:                                              ; preds = %200
  %212 = load double, ptr %8, align 8, !tbaa !11
  store double %212, ptr %9, align 8, !tbaa !11
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %213, ptr %7, align 8, !tbaa !5
  br label %214

214:                                              ; preds = %211, %200
  br label %215

215:                                              ; preds = %214, %194
  br label %216

216:                                              ; preds = %215, %189, %182
  br label %217

217:                                              ; preds = %216
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.facetT, ptr %218, i32 0, i32 7
  %220 = load ptr, ptr %219, align 8, !tbaa !13
  store ptr %220, ptr %6, align 8, !tbaa !5
  br label %172, !llvm.loop !31

221:                                              ; preds = %180
  br label %222

222:                                              ; preds = %221, %167
  %223 = load i32, ptr %11, align 4, !tbaa !9
  %224 = icmp eq i32 %223, 0
  br i1 %224, label %225, label %290

225:                                              ; preds = %222
  %226 = load i32, ptr %5, align 4, !tbaa !9
  %227 = icmp eq i32 %226, 0
  br i1 %227, label %231, label %228

228:                                              ; preds = %225
  %229 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !30
  %230 = icmp ne ptr %229, null
  br i1 %230, label %231, label %290

231:                                              ; preds = %228, %225
  %232 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !30
  %233 = icmp ne ptr %232, null
  br i1 %233, label %234, label %254

234:                                              ; preds = %231
  %235 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !30
  %236 = getelementptr inbounds %struct.facetT, ptr %235, i32 0, i32 15
  %237 = load i32, ptr %236, align 8
  %238 = lshr i32 %237, 11
  %239 = and i32 %238, 1
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %241, label %242

241:                                              ; preds = %234
  store ptr null, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !30
  br label %253

242:                                              ; preds = %234
  %243 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !30
  %244 = getelementptr inbounds %struct.facetT, ptr %243, i32 0, i32 3
  %245 = load ptr, ptr %244, align 8, !tbaa !25
  %246 = call i32 @qh_inthresholds(ptr noundef %245, ptr noundef %8)
  %247 = load double, ptr %8, align 8, !tbaa !11
  %248 = load double, ptr %9, align 8, !tbaa !11
  %249 = fcmp olt double %247, %248
  br i1 %249, label %250, label %252

250:                                              ; preds = %242
  %251 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !30
  store ptr %251, ptr %7, align 8, !tbaa !5
  br label %252

252:                                              ; preds = %250, %242
  br label %253

253:                                              ; preds = %252, %241
  br label %254

254:                                              ; preds = %253, %231
  %255 = load ptr, ptr %7, align 8, !tbaa !5
  %256 = icmp ne ptr %255, null
  br i1 %256, label %257, label %289

257:                                              ; preds = %254
  %258 = load ptr, ptr %7, align 8, !tbaa !5
  %259 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !30
  %260 = icmp ne ptr %258, %259
  br i1 %260, label %261, label %289

261:                                              ; preds = %257
  %262 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !30
  %263 = icmp ne ptr %262, null
  br i1 %263, label %264, label %270

264:                                              ; preds = %261
  %265 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !30
  %266 = getelementptr inbounds %struct.facetT, ptr %265, i32 0, i32 15
  %267 = load i32, ptr %266, align 8
  %268 = and i32 %267, -524289
  %269 = or i32 %268, 0
  store i32 %269, ptr %266, align 8
  br label %270

270:                                              ; preds = %264, %261
  %271 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %271, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !30
  %272 = load ptr, ptr %7, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.facetT, ptr %272, i32 0, i32 15
  %274 = load i32, ptr %273, align 8
  %275 = and i32 %274, -524289
  %276 = or i32 %275, 524288
  store i32 %276, ptr %273, align 8
  %277 = load i32, ptr %11, align 4, !tbaa !9
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %11, align 4, !tbaa !9
  %279 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !32
  %280 = icmp sge i32 %279, 2
  br i1 %280, label %281, label %287

281:                                              ; preds = %270
  %282 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !33
  %283 = load ptr, ptr %7, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.facetT, ptr %283, i32 0, i32 14
  %285 = load i32, ptr %284, align 4, !tbaa !34
  %286 = load double, ptr %9, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %282, i32 noundef 2044, ptr noundef @.str.140, i32 noundef %285, double noundef %286)
  br label %287

287:                                              ; preds = %281, %270
  %288 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %288, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %333

289:                                              ; preds = %257, %254
  br label %300

290:                                              ; preds = %228, %222
  %291 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !30
  %292 = icmp ne ptr %291, null
  br i1 %292, label %293, label %299

293:                                              ; preds = %290
  %294 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !30
  %295 = getelementptr inbounds %struct.facetT, ptr %294, i32 0, i32 15
  %296 = load i32, ptr %295, align 8
  %297 = and i32 %296, -524289
  %298 = or i32 %297, 0
  store i32 %298, ptr %295, align 8
  store ptr null, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !30
  br label %299

299:                                              ; preds = %293, %290
  br label %300

300:                                              ; preds = %299, %289
  br label %301

301:                                              ; preds = %300, %164, %155
  %302 = load i32, ptr %11, align 4, !tbaa !9
  %303 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 105), align 8, !tbaa !26
  %304 = add nsw i32 %303, %302
  store i32 %304, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 105), align 8, !tbaa !26
  %305 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !32
  %306 = icmp sge i32 %305, 2
  br i1 %306, label %307, label %320

307:                                              ; preds = %301
  %308 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !33
  %309 = load i32, ptr %11, align 4, !tbaa !9
  %310 = load i32, ptr %5, align 4, !tbaa !9
  %311 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !30
  %312 = icmp ne ptr %311, null
  br i1 %312, label %313, label %317

313:                                              ; preds = %307
  %314 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !30
  %315 = getelementptr inbounds %struct.facetT, ptr %314, i32 0, i32 14
  %316 = load i32, ptr %315, align 4, !tbaa !34
  br label %318

317:                                              ; preds = %307
  br label %318

318:                                              ; preds = %317, %313
  %319 = phi i32 [ %316, %313 ], [ -1, %317 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %308, i32 noundef 2045, ptr noundef @.str.141, i32 noundef %309, i32 noundef %310, i32 noundef %319)
  br label %320

320:                                              ; preds = %318, %301
  %321 = load i32, ptr %11, align 4, !tbaa !9
  %322 = icmp ne i32 %321, 0
  br i1 %322, label %331, label %323

323:                                              ; preds = %320
  %324 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !17
  %325 = icmp sgt i32 %324, 0
  br i1 %325, label %326, label %331

326:                                              ; preds = %323
  %327 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 39), align 4, !tbaa !20
  %328 = icmp ne i32 %327, 0
  br i1 %328, label %331, label %329

329:                                              ; preds = %326
  %330 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %330, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %333

331:                                              ; preds = %326, %323, %320
  %332 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %332, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %333

333:                                              ; preds = %331, %329, %287
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  %334 = load i32, ptr %3, align 4
  ret i32 %334
}

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

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.140 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [79 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

.preheader140:                                    ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 56
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %.not103141 = icmp eq ptr %6, null
  br i1 %.not103141, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader140, %.lr.ph
  %7 = phi ptr [ %13, %.lr.ph ], [ %6, %.preheader140 ]
  %.0143 = phi i32 [ %spec.select, %.lr.ph ], [ 0, %.preheader140 ]
  %.088142 = phi ptr [ %7, %.lr.ph ], [ %0, %.preheader140 ]
  %8 = getelementptr inbounds i8, ptr %.088142, i64 112
  %9 = load i32, ptr %8, align 8
  %10 = lshr i32 %9, 19
  %11 = and i32 %10, 1
  %spec.select = add i32 %11, %.0143
  %12 = getelementptr inbounds i8, ptr %7, i64 56
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %.not103 = icmp eq ptr %13, null
  br i1 %.not103, label %.critedge, label %.lr.ph, !llvm.loop !12

.critedge:                                        ; preds = %.lr.ph, %.preheader140
  %.0.lcssa = phi i32 [ 0, %.preheader140 ], [ %spec.select, %.lr.ph ]
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 116), align 4, !tbaa !14
  %15 = icmp sgt i32 %14, 0
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 188), align 4
  %17 = icmp eq i32 %16, 0
  %or.cond.not106 = select i1 %15, i1 %17, i1 false
  br i1 %or.cond.not106, label %.preheader139, label %.critedge3

.preheader139:                                    ; preds = %.critedge, %33
  %.3145 = phi i32 [ %.4, %33 ], [ %.0.lcssa, %.critedge ]
  %.189144 = phi ptr [ %34, %33 ], [ %0, %.critedge ]
  %18 = getelementptr inbounds i8, ptr %.189144, i64 56
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %.not108 = icmp eq ptr %19, null
  br i1 %.not108, label %.critedge3, label %20

20:                                               ; preds = %.preheader139
  %21 = getelementptr inbounds i8, ptr %.189144, i64 112
  %22 = load i32, ptr %21, align 8
  %23 = and i32 %22, 524288
  %.not128 = icmp eq i32 %23, 0
  br i1 %.not128, label %33, label %24

24:                                               ; preds = %20
  %25 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 120), align 8, !tbaa !17
  %26 = getelementptr inbounds i8, ptr %.189144, i64 64
  %27 = load ptr, ptr %26, align 8, !tbaa !18
  %28 = tail call ptr @qh_isvertex(ptr noundef %25, ptr noundef %27)
  %.not129 = icmp eq ptr %28, null
  br i1 %.not129, label %29, label %33

29:                                               ; preds = %24
  %30 = load i32, ptr %21, align 8
  %31 = and i32 %30, -524289
  store i32 %31, ptr %21, align 8
  %32 = add nsw i32 %.3145, -1
  br label %33

33:                                               ; preds = %20, %24, %29
  %.4 = phi i32 [ %.3145, %24 ], [ %32, %29 ], [ %.3145, %20 ]
  %34 = load ptr, ptr %18, align 8, !tbaa !5
  %.not107 = icmp eq ptr %34, null
  br i1 %.not107, label %.critedge3, label %.preheader139, !llvm.loop !19

.critedge3:                                       ; preds = %33, %.preheader139, %.critedge
  %.5 = phi i32 [ %.0.lcssa, %.critedge ], [ %.3145, %.preheader139 ], [ %.4, %33 ]
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 100), align 4, !tbaa !20
  %36 = icmp ne i32 %35, 0
  %37 = icmp ne i32 %.5, 0
  %or.cond5 = select i1 %36, i1 %37, i1 false
  br i1 %or.cond5, label %.preheader138, label %.critedge7

.preheader138:                                    ; preds = %.critedge3, %60
  %.6147 = phi i32 [ %.7, %60 ], [ %.5, %.critedge3 ]
  %.290146 = phi ptr [ %61, %60 ], [ %0, %.critedge3 ]
  %38 = getelementptr inbounds i8, ptr %.290146, i64 56
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %.not110 = icmp eq ptr %39, null
  br i1 %.not110, label %.critedge7, label %40

40:                                               ; preds = %.preheader138
  %41 = getelementptr inbounds i8, ptr %.290146, i64 112
  %42 = load i32, ptr %41, align 8
  %43 = and i32 %42, 524288
  %.not126 = icmp eq i32 %43, 0
  br i1 %.not126, label %60, label %44

44:                                               ; preds = %40
  %45 = getelementptr inbounds i8, ptr %.290146, i64 24
  %46 = load ptr, ptr %45, align 8, !tbaa !21
  %.not127 = icmp eq ptr %46, null
  br i1 %.not127, label %60, label %47

47:                                               ; preds = %44
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 472), align 8, !tbaa !22
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 472), align 8, !tbaa !22
  %50 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 104), align 8, !tbaa !23
  call void @qh_distplane(ptr noundef %50, ptr noundef nonnull %.290146, ptr noundef nonnull %4) #3
  %51 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 100), align 4, !tbaa !20
  %52 = icmp sgt i32 %51, 0
  %53 = load double, ptr %4, align 8, !tbaa !24
  %54 = fcmp ogt double %53, 0.000000e+00
  %55 = xor i1 %52, %54
  br i1 %55, label %56, label %60

56:                                               ; preds = %47
  %57 = load i32, ptr %41, align 8
  %58 = and i32 %57, -524289
  store i32 %58, ptr %41, align 8
  %59 = add nsw i32 %.6147, -1
  br label %60

60:                                               ; preds = %40, %44, %56, %47
  %.7 = phi i32 [ %59, %56 ], [ %.6147, %47 ], [ %.6147, %44 ], [ %.6147, %40 ]
  %61 = load ptr, ptr %38, align 8, !tbaa !5
  %.not109 = icmp eq ptr %61, null
  br i1 %.not109, label %.critedge7, label %.preheader138, !llvm.loop !25

.critedge7:                                       ; preds = %60, %.preheader138, %2, %.critedge3
  %.8 = phi i32 [ %.5, %.critedge3 ], [ 0, %2 ], [ %.6147, %.preheader138 ], [ %.7, %60 ]
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 112), align 8, !tbaa !26
  %.not111 = icmp eq i32 %62, 0
  br i1 %.not111, label %.thread, label %63

63:                                               ; preds = %.critedge7
  %64 = or i32 %.8, %1
  %or.cond9 = icmp ne i32 %64, 0
  %65 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2632), align 8
  %66 = icmp ne ptr %65, null
  %or.cond11 = select i1 %or.cond9, i1 true, i1 %66
  br i1 %or.cond11, label %67, label %.thread

67:                                               ; preds = %63
  br i1 %.not, label %.critedge13, label %.preheader

.preheader:                                       ; preds = %67, %86
  %.9151 = phi i32 [ %.10, %86 ], [ %.8, %67 ]
  %.081150 = phi double [ %.182, %86 ], [ 0x7FEFFFFFFFFFFFFF, %67 ]
  %.084149 = phi ptr [ %.185, %86 ], [ null, %67 ]
  %.391148 = phi ptr [ %87, %86 ], [ %0, %67 ]
  %68 = getelementptr inbounds i8, ptr %.391148, i64 56
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %.not113 = icmp eq ptr %69, null
  br i1 %.not113, label %.critedge13, label %70

70:                                               ; preds = %.preheader
  %71 = getelementptr inbounds i8, ptr %.391148, i64 112
  %72 = load i32, ptr %71, align 8
  %73 = and i32 %72, 524288
  %.not123 = icmp eq i32 %73, 0
  br i1 %.not123, label %86, label %74

74:                                               ; preds = %70
  %75 = getelementptr inbounds i8, ptr %.391148, i64 24
  %76 = load ptr, ptr %75, align 8, !tbaa !21
  %.not124 = icmp eq ptr %76, null
  br i1 %.not124, label %86, label %77

77:                                               ; preds = %74
  %78 = call i32 @qh_inthresholds(ptr noundef nonnull %76, ptr noundef nonnull %3) #3
  %.not125 = icmp eq i32 %78, 0
  br i1 %.not125, label %79, label %86

79:                                               ; preds = %77
  %80 = load i32, ptr %71, align 8
  %81 = and i32 %80, -524289
  store i32 %81, ptr %71, align 8
  %82 = add nsw i32 %.9151, -1
  %83 = load double, ptr %3, align 8, !tbaa !24
  %84 = fcmp olt double %83, %.081150
  br i1 %84, label %85, label %86

85:                                               ; preds = %79
  br label %86

86:                                               ; preds = %70, %74, %79, %85, %77
  %.185 = phi ptr [ %.084149, %77 ], [ %.391148, %85 ], [ %.084149, %79 ], [ %.084149, %74 ], [ %.084149, %70 ]
  %.182 = phi double [ %.081150, %77 ], [ %83, %85 ], [ %.081150, %79 ], [ %.081150, %74 ], [ %.081150, %70 ]
  %.10 = phi i32 [ %.9151, %77 ], [ %82, %85 ], [ %82, %79 ], [ %.9151, %74 ], [ %.9151, %70 ]
  %87 = load ptr, ptr %68, align 8, !tbaa !5
  %.not112 = icmp eq ptr %87, null
  br i1 %.not112, label %.critedge13, label %.preheader, !llvm.loop !27

.critedge13:                                      ; preds = %.preheader, %86, %67
  %.286 = phi ptr [ null, %67 ], [ %.185, %86 ], [ %.084149, %.preheader ]
  %.283 = phi double [ 0x7FEFFFFFFFFFFFFF, %67 ], [ %.182, %86 ], [ %.081150, %.preheader ]
  %.11 = phi i32 [ %.8, %67 ], [ %.10, %86 ], [ %.9151, %.preheader ]
  %88 = icmp eq i32 %.11, 0
  br i1 %88, label %89, label %125

89:                                               ; preds = %.critedge13
  %90 = icmp eq i32 %1, 0
  %91 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2632), align 8
  %92 = icmp ne ptr %91, null
  %or.cond15 = select i1 %90, i1 true, i1 %92
  br i1 %or.cond15, label %93, label %.thread

93:                                               ; preds = %89
  br i1 %92, label %94, label %107

94:                                               ; preds = %93
  %95 = getelementptr inbounds i8, ptr %91, i64 112
  %96 = load i32, ptr %95, align 8
  %97 = and i32 %96, 2048
  %.not115 = icmp eq i32 %97, 0
  br i1 %.not115, label %99, label %98

98:                                               ; preds = %94
  store ptr null, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2632), align 8, !tbaa !28
  br label %107

99:                                               ; preds = %94
  %100 = getelementptr inbounds i8, ptr %91, i64 24
  %101 = load ptr, ptr %100, align 8, !tbaa !21
  %102 = call i32 @qh_inthresholds(ptr noundef %101, ptr noundef nonnull %3) #3
  %103 = load double, ptr %3, align 8, !tbaa !24
  %104 = fcmp olt double %103, %.283
  br i1 %104, label %105, label %107

105:                                              ; preds = %99
  %106 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2632), align 8, !tbaa !28
  br label %107

107:                                              ; preds = %98, %105, %99, %93
  %.387 = phi ptr [ %.286, %98 ], [ %106, %105 ], [ %.286, %99 ], [ %.286, %93 ]
  %.not116 = icmp eq ptr %.387, null
  br i1 %.not116, label %.thread, label %108

108:                                              ; preds = %107
  %109 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2632), align 8, !tbaa !28
  %.not117 = icmp eq ptr %.387, %109
  br i1 %.not117, label %.thread, label %110

110:                                              ; preds = %108
  %.not122 = icmp eq ptr %109, null
  br i1 %.not122, label %115, label %111

111:                                              ; preds = %110
  %112 = getelementptr inbounds i8, ptr %109, i64 112
  %113 = load i32, ptr %112, align 8
  %114 = and i32 %113, -524289
  store i32 %114, ptr %112, align 8
  br label %115

115:                                              ; preds = %111, %110
  store ptr %.387, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2632), align 8, !tbaa !28
  %116 = getelementptr inbounds i8, ptr %.387, i64 112
  %117 = load i32, ptr %116, align 8
  %118 = or i32 %117, 524288
  store i32 %118, ptr %116, align 8
  %119 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !29
  %120 = icmp sgt i32 %119, 1
  br i1 %120, label %121, label %148

121:                                              ; preds = %115
  %122 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !30
  %123 = getelementptr inbounds i8, ptr %.387, i64 108
  %124 = load i32, ptr %123, align 4, !tbaa !31
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %122, i32 noundef 2044, ptr noundef nonnull @.str.140, i32 noundef %124, double noundef %.283) #3
  br label %148

125:                                              ; preds = %.critedge13
  %.pr = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2632), align 8, !tbaa !28
  %.not114 = icmp eq ptr %.pr, null
  br i1 %.not114, label %.thread, label %126

126:                                              ; preds = %125
  %127 = getelementptr inbounds i8, ptr %.pr, i64 112
  %128 = load i32, ptr %127, align 8
  %129 = and i32 %128, -524289
  store i32 %129, ptr %127, align 8
  store ptr null, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2632), align 8, !tbaa !28
  br label %.thread

.thread:                                          ; preds = %89, %108, %107, %126, %125, %63, %.critedge7
  %.12 = phi i32 [ 0, %108 ], [ 0, %107 ], [ %.11, %126 ], [ %.11, %125 ], [ 0, %63 ], [ %.8, %.critedge7 ], [ 0, %89 ]
  %130 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 840), align 8, !tbaa !22
  %131 = add nsw i32 %130, %.12
  store i32 %131, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 840), align 8, !tbaa !22
  %132 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !29
  %133 = icmp sgt i32 %132, 1
  br i1 %133, label %134, label %142

134:                                              ; preds = %.thread
  %135 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !30
  %136 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2632), align 8, !tbaa !28
  %.not118 = icmp eq ptr %136, null
  br i1 %.not118, label %140, label %137

137:                                              ; preds = %134
  %138 = getelementptr inbounds i8, ptr %136, i64 108
  %139 = load i32, ptr %138, align 4, !tbaa !31
  br label %140

140:                                              ; preds = %134, %137
  %141 = phi i32 [ %139, %137 ], [ -1, %134 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %135, i32 noundef 2045, ptr noundef nonnull @.str.141, i32 noundef %.12, i32 noundef %1, i32 noundef %141) #3
  br label %142

142:                                              ; preds = %140, %.thread
  %143 = icmp ne i32 %.12, 0
  %144 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 116), align 4
  %145 = icmp slt i32 %144, 1
  %or.cond17.not121 = select i1 %143, i1 true, i1 %145
  %146 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 188), align 4
  %147 = icmp ne i32 %146, 0
  %or.cond19 = select i1 %or.cond17.not121, i1 true, i1 %147
  %.12. = select i1 %or.cond19, i32 %.12, i32 %1
  br label %148

148:                                              ; preds = %142, %115, %121
  %.092 = phi i32 [ 1, %121 ], [ 1, %115 ], [ %.12., %142 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret i32 %.092
}

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

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

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

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

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


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