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

; 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, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%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 }

@.str.142 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [57 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, ptr noundef, i32 noundef, ptr noundef, ...) #1

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

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

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

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

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

16:                                               ; preds = %2
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.qhT, ptr %17, i32 0, i32 24
  %19 = load i32, ptr %18, align 8, !tbaa !18
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %32, label %21

21:                                               ; preds = %16
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.qhT, ptr %22, i32 0, i32 22
  %24 = load i32, ptr %23, align 4, !tbaa !19
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %32, label %26

26:                                               ; preds = %21
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.qhT, ptr %27, i32 0, i32 86
  %29 = load i32, ptr %28, align 8, !tbaa !20
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %32, label %31

31:                                               ; preds = %26
  store i32 1, ptr %11, align 4
  br label %347

32:                                               ; preds = %26, %21, %16, %2
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.qhT, ptr %33, i32 0, i32 48
  %35 = load i32, ptr %34, align 4, !tbaa !21
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %43, label %37

37:                                               ; preds = %32
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.qhT, ptr %39, i32 0, i32 163
  %41 = load ptr, ptr %40, align 8, !tbaa !22
  %42 = call i32 @qh_findgood(ptr noundef %38, ptr noundef %41, i32 noundef 0)
  br label %43

43:                                               ; preds = %37, %32
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %74

46:                                               ; preds = %43
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %47, ptr %5, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %69, %46
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %56

51:                                               ; preds = %48
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.facetT, ptr %52, i32 0, i32 7
  %54 = load ptr, ptr %53, align 8, !tbaa !23
  %55 = icmp ne ptr %54, null
  br label %56

56:                                               ; preds = %51, %48
  %57 = phi i1 [ false, %48 ], [ %55, %51 ]
  br i1 %57, label %58, label %73

58:                                               ; preds = %56
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.facetT, ptr %59, i32 0, i32 15
  %61 = load i32, ptr %60, align 8
  %62 = lshr i32 %61, 19
  %63 = and i32 %62, 1
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %68

65:                                               ; preds = %58
  %66 = load i32, ptr %9, align 4, !tbaa !11
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %9, align 4, !tbaa !11
  br label %68

68:                                               ; preds = %65, %58
  br label %69

69:                                               ; preds = %68
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.facetT, ptr %70, i32 0, i32 7
  %72 = load ptr, ptr %71, align 8, !tbaa !23
  store ptr %72, ptr %5, align 8, !tbaa !5
  br label %48, !llvm.loop !25

73:                                               ; preds = %56
  br label %74

74:                                               ; preds = %73, %43
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.qhT, ptr %75, i32 0, i32 25
  %77 = load i32, ptr %76, align 4, !tbaa !13
  %78 = icmp slt i32 %77, 0
  br i1 %78, label %89, label %79

79:                                               ; preds = %74
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.qhT, ptr %80, i32 0, i32 25
  %82 = load i32, ptr %81, align 4, !tbaa !13
  %83 = icmp sgt i32 %82, 0
  br i1 %83, label %84, label %200

84:                                               ; preds = %79
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.qhT, ptr %85, i32 0, i32 39
  %87 = load i32, ptr %86, align 4, !tbaa !27
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %200

89:                                               ; preds = %84, %74
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %199

92:                                               ; preds = %89
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %93, ptr %5, align 8, !tbaa !5
  br label %94

94:                                               ; preds = %194, %92
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = icmp ne ptr %95, null
  br i1 %96, label %97, label %102

97:                                               ; preds = %94
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.facetT, ptr %98, i32 0, i32 7
  %100 = load ptr, ptr %99, align 8, !tbaa !23
  %101 = icmp ne ptr %100, null
  br label %102

102:                                              ; preds = %97, %94
  %103 = phi i1 [ false, %94 ], [ %101, %97 ]
  br i1 %103, label %104, label %198

104:                                              ; preds = %102
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.facetT, ptr %105, i32 0, i32 15
  %107 = load i32, ptr %106, align 8
  %108 = lshr i32 %107, 19
  %109 = and i32 %108, 1
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %193

111:                                              ; preds = %104
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.qhT, ptr %112, i32 0, i32 25
  %114 = load i32, ptr %113, align 4, !tbaa !13
  %115 = icmp sgt i32 %114, 0
  %116 = zext i1 %115 to i32
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.qhT, ptr %117, i32 0, i32 26
  %119 = load ptr, ptr %118, align 8, !tbaa !28
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.facetT, ptr %120, i32 0, i32 8
  %122 = load ptr, ptr %121, align 8, !tbaa !29
  %123 = call ptr @qh_isvertex(ptr noundef %119, ptr noundef %122)
  %124 = icmp ne ptr %123, null
  %125 = xor i1 %124, true
  %126 = xor i1 %125, true
  %127 = zext i1 %126 to i32
  %128 = xor i32 %116, %127
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %193

130:                                              ; preds = %111
  %131 = load i32, ptr %9, align 4, !tbaa !11
  %132 = add nsw i32 %131, -1
  store i32 %132, ptr %9, align 4, !tbaa !11
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %187, label %134

134:                                              ; preds = %130
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.qhT, ptr %135, i32 0, i32 48
  %137 = load i32, ptr %136, align 4, !tbaa !21
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %152

139:                                              ; preds = %134
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.qhT, ptr %141, i32 0, i32 158
  %143 = load ptr, ptr %142, align 8, !tbaa !30
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.qhT, ptr %145, i32 0, i32 26
  %147 = load ptr, ptr %146, align 8, !tbaa !28
  %148 = call i32 @qh_pointid(ptr noundef %144, ptr noundef %147)
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.facetT, ptr %149, i32 0, i32 14
  %151 = load i32, ptr %150, align 4, !tbaa !31
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %140, ptr noundef %143, i32 noundef 7064, ptr noundef @.str.142, i32 noundef %148, i32 noundef %151)
  store i32 1, ptr %11, align 4
  br label %347

152:                                              ; preds = %134
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.qhT, ptr %153, i32 0, i32 25
  %155 = load i32, ptr %154, align 4, !tbaa !13
  %156 = icmp sgt i32 %155, 0
  br i1 %156, label %157, label %170

157:                                              ; preds = %152
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.qhT, ptr %159, i32 0, i32 158
  %161 = load ptr, ptr %160, align 8, !tbaa !30
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.qhT, ptr %162, i32 0, i32 25
  %164 = load i32, ptr %163, align 4, !tbaa !13
  %165 = sub nsw i32 %164, 1
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.qhT, ptr %166, i32 0, i32 25
  %168 = load i32, ptr %167, align 4, !tbaa !13
  %169 = sub nsw i32 %168, 1
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %158, ptr noundef %161, i32 noundef 7065, ptr noundef @.str.143, i32 noundef %165, i32 noundef %169)
  br label %185

170:                                              ; preds = %152
  %171 = load ptr, ptr %3, align 8, !tbaa !5
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.qhT, ptr %172, i32 0, i32 158
  %174 = load ptr, ptr %173, align 8, !tbaa !30
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.qhT, ptr %175, i32 0, i32 25
  %177 = load i32, ptr %176, align 4, !tbaa !13
  %178 = sub nsw i32 0, %177
  %179 = sub nsw i32 %178, 1
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.qhT, ptr %180, i32 0, i32 25
  %182 = load i32, ptr %181, align 4, !tbaa !13
  %183 = sub nsw i32 0, %182
  %184 = sub nsw i32 %183, 1
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %171, ptr noundef %174, i32 noundef 7066, ptr noundef @.str.144, i32 noundef %179, i32 noundef %184)
  br label %185

185:                                              ; preds = %170, %157
  br label %186

186:                                              ; preds = %185
  br label %187

187:                                              ; preds = %186, %130
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.facetT, ptr %188, i32 0, i32 15
  %190 = load i32, ptr %189, align 8
  %191 = and i32 %190, -524289
  %192 = or i32 %191, 0
  store i32 %192, ptr %189, align 8
  br label %193

193:                                              ; preds = %187, %111, %104
  br label %194

194:                                              ; preds = %193
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.facetT, ptr %195, i32 0, i32 7
  %197 = load ptr, ptr %196, align 8, !tbaa !23
  store ptr %197, ptr %5, align 8, !tbaa !5
  br label %94, !llvm.loop !32

198:                                              ; preds = %102
  br label %199

199:                                              ; preds = %198, %89
  br label %200

200:                                              ; preds = %199, %84, %79
  %201 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %201, ptr %10, align 4, !tbaa !11
  %202 = load ptr, ptr %3, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.qhT, ptr %202, i32 0, i32 86
  %204 = load i32, ptr %203, align 8, !tbaa !20
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %286

206:                                              ; preds = %200
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = icmp ne ptr %207, null
  br i1 %208, label %209, label %257

209:                                              ; preds = %206
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %210, ptr %5, align 8, !tbaa !5
  br label %211

211:                                              ; preds = %252, %209
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = icmp ne ptr %212, null
  br i1 %213, label %214, label %219

214:                                              ; preds = %211
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.facetT, ptr %215, i32 0, i32 7
  %217 = load ptr, ptr %216, align 8, !tbaa !23
  %218 = icmp ne ptr %217, null
  br label %219

219:                                              ; preds = %214, %211
  %220 = phi i1 [ false, %211 ], [ %218, %214 ]
  br i1 %220, label %221, label %256

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

228:                                              ; preds = %221
  %229 = load ptr, ptr %3, align 8, !tbaa !5
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.facetT, ptr %230, i32 0, i32 3
  %232 = load ptr, ptr %231, align 8, !tbaa !33
  %233 = call i32 @qh_inthresholds(ptr noundef %229, ptr noundef %232, ptr noundef %7)
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %250, label %235

235:                                              ; preds = %228
  %236 = load ptr, ptr %5, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.facetT, ptr %236, i32 0, i32 15
  %238 = load i32, ptr %237, align 8
  %239 = and i32 %238, -524289
  %240 = or i32 %239, 0
  store i32 %240, ptr %237, align 8
  %241 = load i32, ptr %9, align 4, !tbaa !11
  %242 = add nsw i32 %241, -1
  store i32 %242, ptr %9, align 4, !tbaa !11
  %243 = load double, ptr %7, align 8, !tbaa !9
  %244 = load double, ptr %8, align 8, !tbaa !9
  %245 = fcmp olt double %243, %244
  br i1 %245, label %246, label %249

246:                                              ; preds = %235
  %247 = load double, ptr %7, align 8, !tbaa !9
  store double %247, ptr %8, align 8, !tbaa !9
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %248, ptr %6, align 8, !tbaa !5
  br label %249

249:                                              ; preds = %246, %235
  br label %250

250:                                              ; preds = %249, %228
  br label %251

251:                                              ; preds = %250, %221
  br label %252

252:                                              ; preds = %251
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.facetT, ptr %253, i32 0, i32 7
  %255 = load ptr, ptr %254, align 8, !tbaa !23
  store ptr %255, ptr %5, align 8, !tbaa !5
  br label %211, !llvm.loop !34

256:                                              ; preds = %219
  br label %257

257:                                              ; preds = %256, %206
  %258 = load i32, ptr %9, align 4, !tbaa !11
  %259 = icmp ne i32 %258, 0
  br i1 %259, label %285, label %260

260:                                              ; preds = %257
  %261 = load ptr, ptr %6, align 8, !tbaa !5
  %262 = icmp ne ptr %261, null
  br i1 %262, label %263, label %285

263:                                              ; preds = %260
  %264 = load ptr, ptr %6, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.facetT, ptr %264, i32 0, i32 15
  %266 = load i32, ptr %265, align 8
  %267 = and i32 %266, -524289
  %268 = or i32 %267, 524288
  store i32 %268, ptr %265, align 8
  %269 = load i32, ptr %9, align 4, !tbaa !11
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %9, align 4, !tbaa !11
  %271 = load ptr, ptr %3, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.qhT, ptr %271, i32 0, i32 29
  %273 = load i32, ptr %272, align 8, !tbaa !35
  %274 = icmp ne i32 %273, 0
  br i1 %274, label %275, label %284

275:                                              ; preds = %263
  %276 = load ptr, ptr %3, align 8, !tbaa !5
  %277 = load ptr, ptr %3, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.qhT, ptr %277, i32 0, i32 158
  %279 = load ptr, ptr %278, align 8, !tbaa !30
  %280 = load ptr, ptr %6, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.facetT, ptr %280, i32 0, i32 14
  %282 = load i32, ptr %281, align 4, !tbaa !31
  %283 = load double, ptr %8, align 8, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %276, ptr noundef %279, i32 noundef 23, ptr noundef @.str.145, i32 noundef %282, double noundef %283)
  br label %284

284:                                              ; preds = %275, %263
  store i32 1, ptr %11, align 4
  br label %347

285:                                              ; preds = %260, %257
  br label %286

286:                                              ; preds = %285, %200
  %287 = load i32, ptr %9, align 4, !tbaa !11
  %288 = icmp eq i32 %287, 1
  br i1 %288, label %289, label %331

289:                                              ; preds = %286
  %290 = load ptr, ptr %3, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.qhT, ptr %290, i32 0, i32 57
  %292 = load i32, ptr %291, align 8, !tbaa !36
  %293 = icmp ne i32 %292, 0
  br i1 %293, label %331, label %294

294:                                              ; preds = %289
  %295 = load ptr, ptr %3, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.qhT, ptr %295, i32 0, i32 192
  %297 = load ptr, ptr %296, align 8, !tbaa !37
  %298 = icmp ne ptr %297, null
  br i1 %298, label %299, label %331

299:                                              ; preds = %294
  %300 = load ptr, ptr %3, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.qhT, ptr %300, i32 0, i32 192
  %302 = load ptr, ptr %301, align 8, !tbaa !37
  %303 = getelementptr inbounds %struct.facetT, ptr %302, i32 0, i32 15
  %304 = load i32, ptr %303, align 8
  %305 = lshr i32 %304, 19
  %306 = and i32 %305, 1
  %307 = icmp ne i32 %306, 0
  br i1 %307, label %308, label %331

308:                                              ; preds = %299
  %309 = load ptr, ptr %3, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.qhT, ptr %309, i32 0, i32 29
  %311 = load i32, ptr %310, align 8, !tbaa !35
  %312 = icmp sge i32 %311, 2
  br i1 %312, label %313, label %323

313:                                              ; preds = %308
  %314 = load ptr, ptr %3, align 8, !tbaa !5
  %315 = load ptr, ptr %3, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.qhT, ptr %315, i32 0, i32 158
  %317 = load ptr, ptr %316, align 8, !tbaa !30
  %318 = load ptr, ptr %3, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.qhT, ptr %318, i32 0, i32 192
  %320 = load ptr, ptr %319, align 8, !tbaa !37
  %321 = getelementptr inbounds %struct.facetT, ptr %320, i32 0, i32 14
  %322 = load i32, ptr %321, align 4, !tbaa !31
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %314, ptr noundef %317, i32 noundef 2109, ptr noundef @.str.146, i32 noundef %322)
  br label %323

323:                                              ; preds = %313, %308
  %324 = load ptr, ptr %3, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.qhT, ptr %324, i32 0, i32 192
  %326 = load ptr, ptr %325, align 8, !tbaa !37
  %327 = getelementptr inbounds %struct.facetT, ptr %326, i32 0, i32 15
  %328 = load i32, ptr %327, align 8
  %329 = and i32 %328, -524289
  %330 = or i32 %329, 0
  store i32 %330, ptr %327, align 8
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %331

331:                                              ; preds = %323, %299, %294, %289, %286
  %332 = load i32, ptr %9, align 4, !tbaa !11
  %333 = load ptr, ptr %3, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.qhT, ptr %333, i32 0, i32 181
  store i32 %332, ptr %334, align 4, !tbaa !38
  %335 = load ptr, ptr %3, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.qhT, ptr %335, i32 0, i32 29
  %337 = load i32, ptr %336, align 8, !tbaa !35
  %338 = icmp ne i32 %337, 0
  br i1 %338, label %339, label %346

339:                                              ; preds = %331
  %340 = load ptr, ptr %3, align 8, !tbaa !5
  %341 = load ptr, ptr %3, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.qhT, ptr %341, i32 0, i32 158
  %343 = load ptr, ptr %342, align 8, !tbaa !30
  %344 = load i32, ptr %9, align 4, !tbaa !11
  %345 = load i32, ptr %10, align 4, !tbaa !11
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %340, ptr noundef %343, i32 noundef 24, ptr noundef @.str.147, i32 noundef %344, i32 noundef %345)
  br label %346

346:                                              ; preds = %339, %331
  store i32 0, ptr %11, align 4
  br label %347

347:                                              ; preds = %346, %284, %139, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  %348 = load i32, ptr %11, align 4
  switch i32 %348, label %350 [
    i32 0, label %349
    i32 1, label %349
  ]

349:                                              ; preds = %347, %347
  ret void

350:                                              ; preds = %347
  unreachable
}

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


; 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"

@.str.142 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [57 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, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

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

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

; 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, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_findgood_all(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %4 = getelementptr inbounds i8, ptr %0, i64 116
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %6, label %15

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 112
  %8 = load i32, ptr %7, align 8, !tbaa !15
  %.not104 = icmp eq i32 %8, 0
  br i1 %.not104, label %9, label %15

9:                                                ; preds = %6
  %10 = getelementptr inbounds i8, ptr %0, i64 100
  %11 = load i32, ptr %10, align 4, !tbaa !16
  %.not105 = icmp eq i32 %11, 0
  br i1 %.not105, label %12, label %15

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 512
  %14 = load i32, ptr %13, align 8, !tbaa !17
  %.not106 = icmp eq i32 %14, 0
  br i1 %.not106, label %149, label %15

15:                                               ; preds = %12, %9, %6, %2
  %16 = getelementptr inbounds i8, ptr %0, i64 236
  %17 = load i32, ptr %16, align 4, !tbaa !18
  %.not107 = icmp eq i32 %17, 0
  br i1 %.not107, label %18, label %22

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %0, i64 2456
  %20 = load ptr, ptr %19, align 8, !tbaa !19
  %21 = tail call i32 @qh_findgood(ptr noundef nonnull %0, ptr noundef %20, i32 noundef 0)
  br label %22

22:                                               ; preds = %18, %15
  %23 = icmp ne ptr %1, null
  br i1 %23, label %.preheader137, label %.critedge.thread

.preheader137:                                    ; preds = %22
  %24 = getelementptr inbounds i8, ptr %1, i64 56
  %25 = load ptr, ptr %24, align 8, !tbaa !20
  %.not109140 = icmp eq ptr %25, null
  br i1 %.not109140, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader137, %.lr.ph
  %26 = phi ptr [ %32, %.lr.ph ], [ %25, %.preheader137 ]
  %.0142 = phi ptr [ %26, %.lr.ph ], [ %1, %.preheader137 ]
  %.088141 = phi i32 [ %spec.select, %.lr.ph ], [ 0, %.preheader137 ]
  %27 = getelementptr inbounds i8, ptr %.0142, i64 112
  %28 = load i32, ptr %27, align 8
  %29 = lshr i32 %28, 19
  %30 = and i32 %29, 1
  %spec.select = add i32 %30, %.088141
  %31 = getelementptr inbounds i8, ptr %26, i64 56
  %32 = load ptr, ptr %31, align 8, !tbaa !20
  %.not109 = icmp eq ptr %32, null
  br i1 %.not109, label %.critedge, label %.lr.ph, !llvm.loop !22

.critedge:                                        ; preds = %.lr.ph, %.preheader137
  %.088.lcssa = phi i32 [ 0, %.preheader137 ], [ %spec.select, %.lr.ph ]
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = icmp slt i32 %33, 0
  br i1 %34, label %.lr.ph146, label %37

.critedge.thread:                                 ; preds = %22
  %35 = load i32, ptr %4, align 4, !tbaa !5
  %36 = icmp slt i32 %35, 0
  br i1 %36, label %.critedge4.thread.thread, label %37

37:                                               ; preds = %.critedge.thread, %.critedge
  %38 = phi i32 [ %35, %.critedge.thread ], [ %33, %.critedge ]
  %.290129 = phi i32 [ 0, %.critedge.thread ], [ %.088.lcssa, %.critedge ]
  %.not110 = icmp eq i32 %38, 0
  br i1 %.not110, label %.critedge2, label %39

39:                                               ; preds = %37
  %40 = getelementptr inbounds i8, ptr %0, i64 188
  %41 = load i32, ptr %40, align 4, !tbaa !24
  %42 = icmp ne i32 %41, 0
  %or.cond7 = and i1 %23, %42
  br i1 %or.cond7, label %.lr.ph146, label %.critedge2

.lr.ph146:                                        ; preds = %.critedge, %39
  %.290128158 = phi i32 [ %.290129, %39 ], [ %.088.lcssa, %.critedge ]
  %43 = getelementptr inbounds i8, ptr %0, i64 120
  %44 = getelementptr inbounds i8, ptr %0, i64 2424
  br label %45

45:                                               ; preds = %.lr.ph146, %82
  %.1145 = phi ptr [ %1, %.lr.ph146 ], [ %83, %82 ]
  %.3144 = phi i32 [ %.290128158, %.lr.ph146 ], [ %.4, %82 ]
  %46 = getelementptr inbounds i8, ptr %.1145, i64 56
  %47 = load ptr, ptr %46, align 8, !tbaa !20
  %.not112 = icmp eq ptr %47, null
  br i1 %.not112, label %.critedge2, label %48

48:                                               ; preds = %45
  %49 = getelementptr inbounds i8, ptr %.1145, i64 112
  %50 = load i32, ptr %49, align 8
  %51 = and i32 %50, 524288
  %.not123 = icmp eq i32 %51, 0
  br i1 %.not123, label %82, label %52

52:                                               ; preds = %48
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = icmp sgt i32 %53, 0
  %55 = load ptr, ptr %43, align 8, !tbaa !25
  %56 = getelementptr inbounds i8, ptr %.1145, i64 64
  %57 = load ptr, ptr %56, align 8, !tbaa !26
  %58 = tail call ptr @qh_isvertex(ptr noundef %55, ptr noundef %57)
  %59 = icmp ne ptr %58, null
  %60 = xor i1 %54, %59
  br i1 %60, label %61, label %82

61:                                               ; preds = %52
  %62 = add nsw i32 %.3144, -1
  %.not124 = icmp eq i32 %62, 0
  br i1 %.not124, label %63, label %79

63:                                               ; preds = %61
  %64 = load i32, ptr %16, align 4, !tbaa !18
  %.not125 = icmp eq i32 %64, 0
  br i1 %.not125, label %71, label %65

65:                                               ; preds = %63
  %66 = load ptr, ptr %44, align 8, !tbaa !27
  %67 = load ptr, ptr %43, align 8, !tbaa !25
  %68 = tail call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %67) #3
  %69 = getelementptr inbounds i8, ptr %.1145, i64 108
  %70 = load i32, ptr %69, align 4, !tbaa !28
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %66, i32 noundef 7064, ptr noundef nonnull @.str.142, i32 noundef %68, i32 noundef %70) #3
  br label %149

71:                                               ; preds = %63
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = icmp sgt i32 %72, 0
  %74 = load ptr, ptr %44, align 8, !tbaa !27
  br i1 %73, label %75, label %77

75:                                               ; preds = %71
  %76 = add nsw i32 %72, -1
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %74, i32 noundef 7065, ptr noundef nonnull @.str.143, i32 noundef %76, i32 noundef %76) #3
  br label %79

77:                                               ; preds = %71
  %78 = xor i32 %72, -1
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %74, i32 noundef 7066, ptr noundef nonnull @.str.144, i32 noundef %78, i32 noundef %78) #3
  br label %79

79:                                               ; preds = %77, %75, %61
  %80 = load i32, ptr %49, align 8
  %81 = and i32 %80, -524289
  store i32 %81, ptr %49, align 8
  br label %82

82:                                               ; preds = %48, %52, %79
  %.4 = phi i32 [ %62, %79 ], [ %.3144, %52 ], [ %.3144, %48 ]
  %83 = load ptr, ptr %46, align 8, !tbaa !20
  %.not111 = icmp eq ptr %83, null
  br i1 %.not111, label %.critedge2, label %45, !llvm.loop !29

.critedge2:                                       ; preds = %45, %82, %39, %37
  %.5 = phi i32 [ %.290129, %39 ], [ %.290129, %37 ], [ %.3144, %45 ], [ %.4, %82 ]
  %84 = getelementptr inbounds i8, ptr %0, i64 512
  %85 = load i32, ptr %84, align 8, !tbaa !17
  %.not113 = icmp ne i32 %85, 0
  %brmerge.not = and i1 %23, %.not113
  br i1 %brmerge.not, label %.preheader, label %.critedge4.thread

.preheader:                                       ; preds = %.critedge2, %103
  %.2153 = phi ptr [ %104, %103 ], [ %1, %.critedge2 ]
  %.6152 = phi i32 [ %.7, %103 ], [ %.5, %.critedge2 ]
  %.091151 = phi double [ %.192, %103 ], [ 0x7FEFFFFFFFFFFFFF, %.critedge2 ]
  %.094150 = phi ptr [ %.195, %103 ], [ null, %.critedge2 ]
  %86 = getelementptr inbounds i8, ptr %.2153, i64 56
  %87 = load ptr, ptr %86, align 8, !tbaa !20
  %.not115 = icmp eq ptr %87, null
  br i1 %.not115, label %.critedge4, label %88

88:                                               ; preds = %.preheader
  %89 = getelementptr inbounds i8, ptr %.2153, i64 112
  %90 = load i32, ptr %89, align 8
  %91 = and i32 %90, 524288
  %.not121 = icmp eq i32 %91, 0
  br i1 %.not121, label %103, label %92

92:                                               ; preds = %88
  %93 = getelementptr inbounds i8, ptr %.2153, i64 24
  %94 = load ptr, ptr %93, align 8, !tbaa !30
  %95 = call i32 @qh_inthresholds(ptr noundef %0, ptr noundef %94, ptr noundef nonnull %3) #3
  %.not122 = icmp eq i32 %95, 0
  br i1 %.not122, label %96, label %103

96:                                               ; preds = %92
  %97 = load i32, ptr %89, align 8
  %98 = and i32 %97, -524289
  store i32 %98, ptr %89, align 8
  %99 = add nsw i32 %.6152, -1
  %100 = load double, ptr %3, align 8, !tbaa !31
  %101 = fcmp olt double %100, %.091151
  br i1 %101, label %102, label %103

102:                                              ; preds = %96
  br label %103

103:                                              ; preds = %88, %96, %102, %92
  %.195 = phi ptr [ %.094150, %92 ], [ %.2153, %102 ], [ %.094150, %96 ], [ %.094150, %88 ]
  %.192 = phi double [ %.091151, %92 ], [ %100, %102 ], [ %.091151, %96 ], [ %.091151, %88 ]
  %.7 = phi i32 [ %.6152, %92 ], [ %99, %102 ], [ %99, %96 ], [ %.6152, %88 ]
  %104 = load ptr, ptr %86, align 8, !tbaa !20
  %.not114 = icmp eq ptr %104, null
  br i1 %.not114, label %.critedge4, label %.preheader, !llvm.loop !32

.critedge4:                                       ; preds = %.preheader, %103
  %.094.lcssa = phi ptr [ %.094150, %.preheader ], [ %.195, %103 ]
  %.091.lcssa = phi double [ %.091151, %.preheader ], [ %.192, %103 ]
  %.6.lcssa = phi i32 [ %.6152, %.preheader ], [ %.7, %103 ]
  %105 = icmp eq i32 %.6.lcssa, 0
  %106 = icmp ne ptr %.094.lcssa, null
  %or.cond = select i1 %105, i1 %106, i1 false
  br i1 %or.cond, label %107, label %.critedge4.thread

107:                                              ; preds = %.critedge4
  %108 = getelementptr inbounds i8, ptr %.094.lcssa, i64 112
  %109 = load i32, ptr %108, align 8
  %110 = or i32 %109, 524288
  store i32 %110, ptr %108, align 8
  %111 = getelementptr inbounds i8, ptr %0, i64 136
  %112 = load i32, ptr %111, align 8, !tbaa !33
  %.not120 = icmp eq i32 %112, 0
  br i1 %.not120, label %149, label %113

113:                                              ; preds = %107
  %114 = getelementptr inbounds i8, ptr %0, i64 2424
  %115 = load ptr, ptr %114, align 8, !tbaa !27
  %116 = getelementptr inbounds i8, ptr %.094.lcssa, i64 108
  %117 = load i32, ptr %116, align 4, !tbaa !28
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %115, i32 noundef 23, ptr noundef nonnull @.str.145, i32 noundef %117, double noundef %.091.lcssa) #3
  br label %149

.critedge4.thread:                                ; preds = %.critedge2, %.critedge4
  %.9 = phi i32 [ %.6.lcssa, %.critedge4 ], [ %.5, %.critedge2 ]
  %118 = icmp eq i32 %.9, 1
  br i1 %118, label %119, label %.critedge4.thread.thread

119:                                              ; preds = %.critedge4.thread
  %120 = getelementptr inbounds i8, ptr %0, i64 272
  %121 = load i32, ptr %120, align 8, !tbaa !34
  %.not116 = icmp eq i32 %121, 0
  br i1 %.not116, label %122, label %.critedge4.thread.thread

122:                                              ; preds = %119
  %123 = getelementptr inbounds i8, ptr %0, i64 2632
  %124 = load ptr, ptr %123, align 8, !tbaa !35
  %.not117 = icmp eq ptr %124, null
  br i1 %.not117, label %.critedge4.thread.thread, label %125

125:                                              ; preds = %122
  %126 = getelementptr inbounds i8, ptr %124, i64 112
  %127 = load i32, ptr %126, align 8
  %128 = and i32 %127, 524288
  %.not118 = icmp eq i32 %128, 0
  br i1 %.not118, label %.critedge4.thread.thread, label %129

129:                                              ; preds = %125
  %130 = getelementptr inbounds i8, ptr %0, i64 136
  %131 = load i32, ptr %130, align 8, !tbaa !33
  %132 = icmp sgt i32 %131, 1
  br i1 %132, label %133, label %138

133:                                              ; preds = %129
  %134 = getelementptr inbounds i8, ptr %0, i64 2424
  %135 = load ptr, ptr %134, align 8, !tbaa !27
  %136 = getelementptr inbounds i8, ptr %124, i64 108
  %137 = load i32, ptr %136, align 4, !tbaa !28
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %135, i32 noundef 2109, ptr noundef nonnull @.str.146, i32 noundef %137) #3
  %.pre = load ptr, ptr %123, align 8, !tbaa !35
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre, i64 112
  %.pre155 = load i32, ptr %.phi.trans.insert, align 8
  br label %138

138:                                              ; preds = %133, %129
  %139 = phi i32 [ %.pre155, %133 ], [ %127, %129 ]
  %140 = phi ptr [ %.pre, %133 ], [ %124, %129 ]
  %141 = getelementptr inbounds i8, ptr %140, i64 112
  %142 = and i32 %139, -524289
  store i32 %142, ptr %141, align 8
  br label %.critedge4.thread.thread

.critedge4.thread.thread:                         ; preds = %.critedge.thread, %138, %125, %122, %119, %.critedge4.thread
  %.5162165 = phi i32 [ %.5, %119 ], [ %.5, %138 ], [ %.5, %125 ], [ %.5, %122 ], [ %.5, %.critedge4.thread ], [ 0, %.critedge.thread ]
  %.10 = phi i32 [ 1, %119 ], [ 0, %138 ], [ 1, %125 ], [ 1, %122 ], [ %.9, %.critedge4.thread ], [ 0, %.critedge.thread ]
  %143 = getelementptr inbounds i8, ptr %0, i64 2580
  store i32 %.10, ptr %143, align 4, !tbaa !36
  %144 = getelementptr inbounds i8, ptr %0, i64 136
  %145 = load i32, ptr %144, align 8, !tbaa !33
  %.not119 = icmp eq i32 %145, 0
  br i1 %.not119, label %149, label %146

146:                                              ; preds = %.critedge4.thread.thread
  %147 = getelementptr inbounds i8, ptr %0, i64 2424
  %148 = load ptr, ptr %147, align 8, !tbaa !27
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %148, i32 noundef 24, ptr noundef nonnull @.str.147, i32 noundef %.10, i32 noundef %.5162165) #3
  br label %149

149:                                              ; preds = %.critedge4.thread.thread, %146, %107, %113, %12, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret void
}

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, !7, i64 116}
!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, !7, i64 2984, !7, i64 2988, !8, i64 2992, !8, i64 3192, !7, i64 3232, !10, i64 3240, !11, i64 3248, !11, i64 3256, !11, i64 3264, !13, i64 3272, !14, i64 3424}
!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 = !{!"qhmemT", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !7, i64 64, !11, i64 72, !11, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144}
!14 = !{!"qhstatT", !8, i64 0, !8, i64 1992, !8, i64 2256, !8, i64 4248, !8, i64 4746, !8, i64 4995, !8, i64 5248, !7, i64 5320, !7, i64 5324, !7, i64 5328, !7, i64 5332, !10, i64 5336}
!15 = !{!6, !7, i64 112}
!16 = !{!6, !7, i64 100}
!17 = !{!6, !7, i64 512}
!18 = !{!6, !7, i64 236}
!19 = !{!6, !11, i64 2456}
!20 = !{!21, !11, i64 56}
!21 = !{!"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}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!6, !7, i64 188}
!25 = !{!6, !11, i64 120}
!26 = !{!21, !11, i64 64}
!27 = !{!6, !11, i64 2424}
!28 = !{!21, !7, i64 108}
!29 = distinct !{!29, !23}
!30 = !{!21, !11, i64 24}
!31 = !{!10, !10, i64 0}
!32 = distinct !{!32, !23}
!33 = !{!6, !7, i64 136}
!34 = !{!6, !7, i64 272}
!35 = !{!6, !11, i64 2632}
!36 = !{!6, !7, i64 2580}


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