; 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.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
@.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, i32 noundef, ptr noundef, ...) #1

declare i32 @qh_pointid(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_findgood(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) #1

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

12:                                               ; preds = %1
  %13 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !16
  %14 = icmp ne i32 %13, 0
  br i1 %14, label %22, label %15

15:                                               ; preds = %12
  %16 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 22), align 4, !tbaa !17
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %22, label %18

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

21:                                               ; preds = %18
  store i32 1, ptr %9, align 4
  br label %268

22:                                               ; preds = %18, %15, %12, %1
  %23 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 48), align 4, !tbaa !19
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %28, label %25

25:                                               ; preds = %22
  %26 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !20
  %27 = call i32 @qh_findgood(ptr noundef %26, i32 noundef 0)
  br label %28

28:                                               ; preds = %25, %22
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %59

31:                                               ; preds = %28
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %32, ptr %3, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %54, %31
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %41

36:                                               ; preds = %33
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.facetT, ptr %37, i32 0, i32 7
  %39 = load ptr, ptr %38, align 8, !tbaa !21
  %40 = icmp ne ptr %39, null
  br label %41

41:                                               ; preds = %36, %33
  %42 = phi i1 [ false, %33 ], [ %40, %36 ]
  br i1 %42, label %43, label %58

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

50:                                               ; preds = %43
  %51 = load i32, ptr %7, align 4, !tbaa !11
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %7, align 4, !tbaa !11
  br label %53

53:                                               ; preds = %50, %43
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.facetT, ptr %55, i32 0, i32 7
  %57 = load ptr, ptr %56, align 8, !tbaa !21
  store ptr %57, ptr %3, align 8, !tbaa !5
  br label %33, !llvm.loop !23

58:                                               ; preds = %41
  br label %59

59:                                               ; preds = %58, %28
  %60 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !13
  %61 = icmp slt i32 %60, 0
  br i1 %61, label %68, label %62

62:                                               ; preds = %59
  %63 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !13
  %64 = icmp sgt i32 %63, 0
  br i1 %64, label %65, label %151

65:                                               ; preds = %62
  %66 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 39), align 4, !tbaa !25
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %151

68:                                               ; preds = %65, %59
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %150

71:                                               ; preds = %68
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %72, ptr %3, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %145, %71
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %81

76:                                               ; preds = %73
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.facetT, ptr %77, i32 0, i32 7
  %79 = load ptr, ptr %78, align 8, !tbaa !21
  %80 = icmp ne ptr %79, null
  br label %81

81:                                               ; preds = %76, %73
  %82 = phi i1 [ false, %73 ], [ %80, %76 ]
  br i1 %82, label %83, label %149

83:                                               ; preds = %81
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.facetT, ptr %84, i32 0, i32 15
  %86 = load i32, ptr %85, align 8
  %87 = lshr i32 %86, 19
  %88 = and i32 %87, 1
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %144

90:                                               ; preds = %83
  %91 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !13
  %92 = icmp sgt i32 %91, 0
  %93 = zext i1 %92 to i32
  %94 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 26), align 8, !tbaa !26
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.facetT, ptr %95, i32 0, i32 8
  %97 = load ptr, ptr %96, align 8, !tbaa !27
  %98 = call ptr @qh_isvertex(ptr noundef %94, ptr noundef %97)
  %99 = icmp ne ptr %98, null
  %100 = xor i1 %99, true
  %101 = xor i1 %100, true
  %102 = zext i1 %101 to i32
  %103 = xor i32 %93, %102
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %144

105:                                              ; preds = %90
  %106 = load i32, ptr %7, align 4, !tbaa !11
  %107 = add nsw i32 %106, -1
  store i32 %107, ptr %7, align 4, !tbaa !11
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %138, label %109

109:                                              ; preds = %105
  %110 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 48), align 4, !tbaa !19
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %119

112:                                              ; preds = %109
  %113 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !28
  %114 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 26), align 8, !tbaa !26
  %115 = call i32 @qh_pointid(ptr noundef %114)
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.facetT, ptr %116, i32 0, i32 14
  %118 = load i32, ptr %117, align 4, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %113, i32 noundef 7064, ptr noundef @.str.142, i32 noundef %115, i32 noundef %118)
  store i32 1, ptr %9, align 4
  br label %268

119:                                              ; preds = %109
  %120 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !13
  %121 = icmp sgt i32 %120, 0
  br i1 %121, label %122, label %128

122:                                              ; preds = %119
  %123 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !28
  %124 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !13
  %125 = sub nsw i32 %124, 1
  %126 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !13
  %127 = sub nsw i32 %126, 1
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %123, i32 noundef 7065, ptr noundef @.str.143, i32 noundef %125, i32 noundef %127)
  br label %136

128:                                              ; preds = %119
  %129 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !28
  %130 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !13
  %131 = sub nsw i32 0, %130
  %132 = sub nsw i32 %131, 1
  %133 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !13
  %134 = sub nsw i32 0, %133
  %135 = sub nsw i32 %134, 1
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %129, i32 noundef 7066, ptr noundef @.str.144, i32 noundef %132, i32 noundef %135)
  br label %136

136:                                              ; preds = %128, %122
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137, %105
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.facetT, ptr %139, i32 0, i32 15
  %141 = load i32, ptr %140, align 8
  %142 = and i32 %141, -524289
  %143 = or i32 %142, 0
  store i32 %143, ptr %140, align 8
  br label %144

144:                                              ; preds = %138, %90, %83
  br label %145

145:                                              ; preds = %144
  %146 = load ptr, ptr %3, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.facetT, ptr %146, i32 0, i32 7
  %148 = load ptr, ptr %147, align 8, !tbaa !21
  store ptr %148, ptr %3, align 8, !tbaa !5
  br label %73, !llvm.loop !30

149:                                              ; preds = %81
  br label %150

150:                                              ; preds = %149, %68
  br label %151

151:                                              ; preds = %150, %65, %62
  %152 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %152, ptr %8, align 4, !tbaa !11
  %153 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 86), align 8, !tbaa !18
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %229

155:                                              ; preds = %151
  %156 = load ptr, ptr %2, align 8, !tbaa !5
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %205

158:                                              ; preds = %155
  %159 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %159, ptr %3, align 8, !tbaa !5
  br label %160

160:                                              ; preds = %200, %158
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = icmp ne ptr %161, null
  br i1 %162, label %163, label %168

163:                                              ; preds = %160
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.facetT, ptr %164, i32 0, i32 7
  %166 = load ptr, ptr %165, align 8, !tbaa !21
  %167 = icmp ne ptr %166, null
  br label %168

168:                                              ; preds = %163, %160
  %169 = phi i1 [ false, %160 ], [ %167, %163 ]
  br i1 %169, label %170, label %204

170:                                              ; preds = %168
  %171 = load ptr, ptr %3, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.facetT, ptr %171, i32 0, i32 15
  %173 = load i32, ptr %172, align 8
  %174 = lshr i32 %173, 19
  %175 = and i32 %174, 1
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %177, label %199

177:                                              ; preds = %170
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.facetT, ptr %178, i32 0, i32 3
  %180 = load ptr, ptr %179, align 8, !tbaa !31
  %181 = call i32 @qh_inthresholds(ptr noundef %180, ptr noundef %5)
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %198, label %183

183:                                              ; preds = %177
  %184 = load ptr, ptr %3, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.facetT, ptr %184, i32 0, i32 15
  %186 = load i32, ptr %185, align 8
  %187 = and i32 %186, -524289
  %188 = or i32 %187, 0
  store i32 %188, ptr %185, align 8
  %189 = load i32, ptr %7, align 4, !tbaa !11
  %190 = add nsw i32 %189, -1
  store i32 %190, ptr %7, align 4, !tbaa !11
  %191 = load double, ptr %5, align 8, !tbaa !9
  %192 = load double, ptr %6, align 8, !tbaa !9
  %193 = fcmp olt double %191, %192
  br i1 %193, label %194, label %197

194:                                              ; preds = %183
  %195 = load double, ptr %5, align 8, !tbaa !9
  store double %195, ptr %6, align 8, !tbaa !9
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %196, ptr %4, align 8, !tbaa !5
  br label %197

197:                                              ; preds = %194, %183
  br label %198

198:                                              ; preds = %197, %177
  br label %199

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

200:                                              ; preds = %199
  %201 = load ptr, ptr %3, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.facetT, ptr %201, i32 0, i32 7
  %203 = load ptr, ptr %202, align 8, !tbaa !21
  store ptr %203, ptr %3, align 8, !tbaa !5
  br label %160, !llvm.loop !32

204:                                              ; preds = %168
  br label %205

205:                                              ; preds = %204, %155
  %206 = load i32, ptr %7, align 4, !tbaa !11
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %228, label %208

208:                                              ; preds = %205
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = icmp ne ptr %209, null
  br i1 %210, label %211, label %228

211:                                              ; preds = %208
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.facetT, ptr %212, i32 0, i32 15
  %214 = load i32, ptr %213, align 8
  %215 = and i32 %214, -524289
  %216 = or i32 %215, 524288
  store i32 %216, ptr %213, align 8
  %217 = load i32, ptr %7, align 4, !tbaa !11
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %7, align 4, !tbaa !11
  %219 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !33
  %220 = icmp ne i32 %219, 0
  br i1 %220, label %221, label %227

221:                                              ; preds = %211
  %222 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !28
  %223 = load ptr, ptr %4, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.facetT, ptr %223, i32 0, i32 14
  %225 = load i32, ptr %224, align 4, !tbaa !29
  %226 = load double, ptr %6, align 8, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %222, i32 noundef 23, ptr noundef @.str.145, i32 noundef %225, double noundef %226)
  br label %227

227:                                              ; preds = %221, %211
  store i32 1, ptr %9, align 4
  br label %268

228:                                              ; preds = %208, %205
  br label %229

229:                                              ; preds = %228, %151
  %230 = load i32, ptr %7, align 4, !tbaa !11
  %231 = icmp eq i32 %230, 1
  br i1 %231, label %232, label %259

232:                                              ; preds = %229
  %233 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 57), align 8, !tbaa !34
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %259, label %235

235:                                              ; preds = %232
  %236 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !35
  %237 = icmp ne ptr %236, null
  br i1 %237, label %238, label %259

238:                                              ; preds = %235
  %239 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !35
  %240 = getelementptr inbounds %struct.facetT, ptr %239, i32 0, i32 15
  %241 = load i32, ptr %240, align 8
  %242 = lshr i32 %241, 19
  %243 = and i32 %242, 1
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %245, label %259

245:                                              ; preds = %238
  %246 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !33
  %247 = icmp sge i32 %246, 2
  br i1 %247, label %248, label %253

248:                                              ; preds = %245
  %249 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !28
  %250 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !35
  %251 = getelementptr inbounds %struct.facetT, ptr %250, i32 0, i32 14
  %252 = load i32, ptr %251, align 4, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %249, i32 noundef 2109, ptr noundef @.str.146, i32 noundef %252)
  br label %253

253:                                              ; preds = %248, %245
  %254 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 8, !tbaa !35
  %255 = getelementptr inbounds %struct.facetT, ptr %254, i32 0, i32 15
  %256 = load i32, ptr %255, align 8
  %257 = and i32 %256, -524289
  %258 = or i32 %257, 0
  store i32 %258, ptr %255, align 8
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %259

259:                                              ; preds = %253, %238, %235, %232, %229
  %260 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %260, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 181), align 4, !tbaa !36
  %261 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !33
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %263, label %267

263:                                              ; preds = %259
  %264 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !28
  %265 = load i32, ptr %7, align 4, !tbaa !11
  %266 = load i32, ptr %8, align 4, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %264, i32 noundef 24, ptr noundef @.str.147, i32 noundef %265, i32 noundef %266)
  br label %267

267:                                              ; preds = %263, %259
  store i32 0, ptr %9, align 4
  br label %268

268:                                              ; preds = %267, %227, %112, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  %269 = load i32, ptr %9, align 4
  switch i32 %269, label %271 [
    i32 0, label %270
    i32 1, label %270
  ]

270:                                              ; preds = %268, %268
  ret void

271:                                              ; preds = %268
  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, !6, i64 2984, !12, i64 2992}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !12, i64 112}
!17 = !{!14, !12, i64 100}
!18 = !{!14, !12, i64 512}
!19 = !{!14, !12, i64 236}
!20 = !{!14, !6, i64 2456}
!21 = !{!22, !6, i64 56}
!22 = !{!"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}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!14, !12, i64 188}
!26 = !{!14, !6, i64 120}
!27 = !{!22, !6, i64 64}
!28 = !{!14, !6, i64 2424}
!29 = !{!22, !12, i64 108}
!30 = distinct !{!30, !24}
!31 = !{!22, !6, i64 24}
!32 = distinct !{!32, !24}
!33 = !{!14, !12, i64 136}
!34 = !{!14, !12, i64 272}
!35 = !{!14, !6, i64 2632}
!36 = !{!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"

%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] }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@.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, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

declare i32 @qh_pointid(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_findgood(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) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_findgood_all(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  %3 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 116), align 4, !tbaa !5
  %4 = icmp ne i32 %3, 0
  %5 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 112), align 8
  %6 = icmp ne i32 %5, 0
  %or.cond = select i1 %4, i1 true, i1 %6
  %7 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 100), align 4
  %8 = icmp ne i32 %7, 0
  %or.cond3 = select i1 %or.cond, i1 true, i1 %8
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 512), align 8
  %10 = icmp ne i32 %9, 0
  %or.cond5 = select i1 %or.cond3, i1 true, i1 %10
  br i1 %or.cond5, label %11, label %128

11:                                               ; preds = %1
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 236), align 4, !tbaa !13
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %13, label %16

13:                                               ; preds = %11
  %14 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !14
  %15 = tail call i32 @qh_findgood(ptr noundef %14, i32 noundef 0)
  br label %16

16:                                               ; preds = %13, %11
  %17 = icmp ne ptr %0, null
  br i1 %17, label %.preheader106, label %.critedge11.thread

.preheader106:                                    ; preds = %16
  %18 = getelementptr inbounds i8, ptr %0, i64 56
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %.not74109 = icmp eq ptr %19, null
  br i1 %.not74109, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader106, %.lr.ph
  %20 = phi ptr [ %26, %.lr.ph ], [ %19, %.preheader106 ]
  %.0111 = phi ptr [ %20, %.lr.ph ], [ %0, %.preheader106 ]
  %.057110 = phi i32 [ %spec.select, %.lr.ph ], [ 0, %.preheader106 ]
  %21 = getelementptr inbounds i8, ptr %.0111, i64 112
  %22 = load i32, ptr %21, align 8
  %23 = lshr i32 %22, 19
  %24 = and i32 %23, 1
  %spec.select = add i32 %24, %.057110
  %25 = getelementptr inbounds i8, ptr %20, i64 56
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  %.not74 = icmp eq ptr %26, null
  br i1 %.not74, label %.critedge, label %.lr.ph, !llvm.loop !17

.critedge:                                        ; preds = %.lr.ph, %.preheader106
  %.057.lcssa = phi i32 [ 0, %.preheader106 ], [ %spec.select, %.lr.ph ]
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 116), align 4, !tbaa !5
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %.preheader126, label %29

29:                                               ; preds = %.critedge
  %30 = icmp ne i32 %27, 0
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 188), align 4
  %32 = icmp ne i32 %31, 0
  %or.cond7 = select i1 %30, i1 %32, i1 false
  br i1 %or.cond7, label %.preheader126, label %.critedge9

.preheader126:                                    ; preds = %.critedge, %29
  br label %33

33:                                               ; preds = %.preheader126, %70
  %.1113 = phi ptr [ %71, %70 ], [ %0, %.preheader126 ]
  %.3112 = phi i32 [ %.4, %70 ], [ %.057.lcssa, %.preheader126 ]
  %34 = getelementptr inbounds i8, ptr %.1113, i64 56
  %35 = load ptr, ptr %34, align 8, !tbaa !15
  %.not76 = icmp eq ptr %35, null
  br i1 %.not76, label %.critedge9, label %36

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %.1113, i64 112
  %38 = load i32, ptr %37, align 8
  %39 = and i32 %38, 524288
  %.not88 = icmp eq i32 %39, 0
  br i1 %.not88, label %70, label %40

40:                                               ; preds = %36
  %41 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 116), align 4, !tbaa !5
  %42 = icmp sgt i32 %41, 0
  %43 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 120), align 8, !tbaa !19
  %44 = getelementptr inbounds i8, ptr %.1113, i64 64
  %45 = load ptr, ptr %44, align 8, !tbaa !20
  %46 = tail call ptr @qh_isvertex(ptr noundef %43, ptr noundef %45)
  %47 = icmp ne ptr %46, null
  %48 = xor i1 %42, %47
  br i1 %48, label %49, label %70

49:                                               ; preds = %40
  %50 = add nsw i32 %.3112, -1
  %.not89 = icmp eq i32 %50, 0
  br i1 %.not89, label %51, label %67

51:                                               ; preds = %49
  %52 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 236), align 4, !tbaa !13
  %.not90 = icmp eq i32 %52, 0
  br i1 %.not90, label %59, label %53

53:                                               ; preds = %51
  %54 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !21
  %55 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 120), align 8, !tbaa !19
  %56 = tail call i32 @qh_pointid(ptr noundef %55) #3
  %57 = getelementptr inbounds i8, ptr %.1113, i64 108
  %58 = load i32, ptr %57, align 4, !tbaa !22
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %54, i32 noundef 7064, ptr noundef nonnull @.str.142, i32 noundef %56, i32 noundef %58) #3
  br label %128

59:                                               ; preds = %51
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 116), align 4, !tbaa !5
  %61 = icmp sgt i32 %60, 0
  %62 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !21
  br i1 %61, label %63, label %65

63:                                               ; preds = %59
  %64 = add nsw i32 %60, -1
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %62, i32 noundef 7065, ptr noundef nonnull @.str.143, i32 noundef %64, i32 noundef %64) #3
  br label %67

65:                                               ; preds = %59
  %66 = xor i32 %60, -1
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %62, i32 noundef 7066, ptr noundef nonnull @.str.144, i32 noundef %66, i32 noundef %66) #3
  br label %67

67:                                               ; preds = %65, %63, %49
  %68 = load i32, ptr %37, align 8
  %69 = and i32 %68, -524289
  store i32 %69, ptr %37, align 8
  br label %70

70:                                               ; preds = %36, %40, %67
  %.4 = phi i32 [ %50, %67 ], [ %.3112, %40 ], [ %.3112, %36 ]
  %71 = load ptr, ptr %34, align 8, !tbaa !15
  %.not75 = icmp eq ptr %71, null
  br i1 %.not75, label %.critedge9, label %33, !llvm.loop !23

.critedge9:                                       ; preds = %70, %33, %29
  %.5 = phi i32 [ %.057.lcssa, %29 ], [ %.3112, %33 ], [ %.4, %70 ]
  %72 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 512), align 8, !tbaa !24
  %.not77 = icmp ne i32 %72, 0
  %brmerge.not = and i1 %17, %.not77
  br i1 %brmerge.not, label %.preheader, label %.critedge11.thread

.preheader:                                       ; preds = %.critedge9, %90
  %.2117 = phi ptr [ %91, %90 ], [ %0, %.critedge9 ]
  %.6116 = phi i32 [ %.7, %90 ], [ %.5, %.critedge9 ]
  %.060115 = phi double [ %.161, %90 ], [ 0x7FEFFFFFFFFFFFFF, %.critedge9 ]
  %.063114 = phi ptr [ %.164, %90 ], [ null, %.critedge9 ]
  %73 = getelementptr inbounds i8, ptr %.2117, i64 56
  %74 = load ptr, ptr %73, align 8, !tbaa !15
  %.not79 = icmp eq ptr %74, null
  br i1 %.not79, label %.critedge11, label %75

75:                                               ; preds = %.preheader
  %76 = getelementptr inbounds i8, ptr %.2117, i64 112
  %77 = load i32, ptr %76, align 8
  %78 = and i32 %77, 524288
  %.not86 = icmp eq i32 %78, 0
  br i1 %.not86, label %90, label %79

79:                                               ; preds = %75
  %80 = getelementptr inbounds i8, ptr %.2117, i64 24
  %81 = load ptr, ptr %80, align 8, !tbaa !25
  %82 = call i32 @qh_inthresholds(ptr noundef %81, ptr noundef nonnull %2) #3
  %.not87 = icmp eq i32 %82, 0
  br i1 %.not87, label %83, label %90

83:                                               ; preds = %79
  %84 = load i32, ptr %76, align 8
  %85 = and i32 %84, -524289
  store i32 %85, ptr %76, align 8
  %86 = add nsw i32 %.6116, -1
  %87 = load double, ptr %2, align 8, !tbaa !26
  %88 = fcmp olt double %87, %.060115
  br i1 %88, label %89, label %90

89:                                               ; preds = %83
  br label %90

90:                                               ; preds = %75, %83, %89, %79
  %.164 = phi ptr [ %.063114, %79 ], [ %.2117, %89 ], [ %.063114, %83 ], [ %.063114, %75 ]
  %.161 = phi double [ %.060115, %79 ], [ %87, %89 ], [ %.060115, %83 ], [ %.060115, %75 ]
  %.7 = phi i32 [ %.6116, %79 ], [ %86, %89 ], [ %86, %83 ], [ %.6116, %75 ]
  %91 = load ptr, ptr %73, align 8, !tbaa !15
  %.not78 = icmp eq ptr %91, null
  br i1 %.not78, label %.critedge11, label %.preheader, !llvm.loop !27

.critedge11:                                      ; preds = %.preheader, %90
  %.063.lcssa = phi ptr [ %.063114, %.preheader ], [ %.164, %90 ]
  %.060.lcssa = phi double [ %.060115, %.preheader ], [ %.161, %90 ]
  %.6.lcssa = phi i32 [ %.6116, %.preheader ], [ %.7, %90 ]
  %92 = icmp eq i32 %.6.lcssa, 0
  %93 = icmp ne ptr %.063.lcssa, null
  %or.cond13 = select i1 %92, i1 %93, i1 false
  br i1 %or.cond13, label %94, label %.critedge11.thread

94:                                               ; preds = %.critedge11
  %95 = getelementptr inbounds i8, ptr %.063.lcssa, i64 112
  %96 = load i32, ptr %95, align 8
  %97 = or i32 %96, 524288
  store i32 %97, ptr %95, align 8
  %98 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !28
  %.not85 = icmp eq i32 %98, 0
  br i1 %.not85, label %128, label %99

99:                                               ; preds = %94
  %100 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !21
  %101 = getelementptr inbounds i8, ptr %.063.lcssa, i64 108
  %102 = load i32, ptr %101, align 4, !tbaa !22
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %100, i32 noundef 23, ptr noundef nonnull @.str.145, i32 noundef %102, double noundef %.060.lcssa) #3
  br label %128

.critedge11.thread:                               ; preds = %16, %.critedge9, %.critedge11
  %.5123 = phi i32 [ %.5, %.critedge11 ], [ %.5, %.critedge9 ], [ 0, %16 ]
  %.9 = phi i32 [ %.6.lcssa, %.critedge11 ], [ %.5, %.critedge9 ], [ 0, %16 ]
  %103 = icmp eq i32 %.9, 1
  %104 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 272), align 8
  %105 = icmp eq i32 %104, 0
  %or.cond15.not82 = select i1 %103, i1 %105, i1 false
  %106 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2632), align 8
  %107 = icmp ne ptr %106, null
  %or.cond17 = select i1 %or.cond15.not82, i1 %107, i1 false
  br i1 %or.cond17, label %108, label %124

108:                                              ; preds = %.critedge11.thread
  %109 = getelementptr inbounds i8, ptr %106, i64 112
  %110 = load i32, ptr %109, align 8
  %111 = and i32 %110, 524288
  %.not83 = icmp eq i32 %111, 0
  br i1 %.not83, label %124, label %112

112:                                              ; preds = %108
  %113 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !28
  %114 = icmp sgt i32 %113, 1
  br i1 %114, label %115, label %119

115:                                              ; preds = %112
  %116 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !21
  %117 = getelementptr inbounds i8, ptr %106, i64 108
  %118 = load i32, ptr %117, align 4, !tbaa !22
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %116, i32 noundef 2109, ptr noundef nonnull @.str.146, i32 noundef %118) #3
  %.pre = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2632), align 8, !tbaa !29
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre, i64 112
  %.pre119 = load i32, ptr %.phi.trans.insert, align 8
  br label %119

119:                                              ; preds = %115, %112
  %120 = phi i32 [ %.pre119, %115 ], [ %110, %112 ]
  %121 = phi ptr [ %.pre, %115 ], [ %106, %112 ]
  %122 = getelementptr inbounds i8, ptr %121, i64 112
  %123 = and i32 %120, -524289
  store i32 %123, ptr %122, align 8
  br label %124

124:                                              ; preds = %119, %108, %.critedge11.thread
  %.10 = phi i32 [ 0, %119 ], [ 1, %108 ], [ %.9, %.critedge11.thread ]
  store i32 %.10, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2580), align 4, !tbaa !30
  %125 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !28
  %.not84 = icmp eq i32 %125, 0
  br i1 %.not84, label %128, label %126

126:                                              ; preds = %124
  %127 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !21
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %127, i32 noundef 24, ptr noundef nonnull @.str.147, i32 noundef %.10, i32 noundef %.5123) #3
  br label %128

128:                                              ; preds = %124, %126, %94, %99, %1, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #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, !11, i64 2984, !7, i64 2992}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !7, i64 236}
!14 = !{!6, !11, i64 2456}
!15 = !{!16, !11, i64 56}
!16 = !{!"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}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !11, i64 120}
!20 = !{!16, !11, i64 64}
!21 = !{!6, !11, i64 2424}
!22 = !{!16, !7, i64 108}
!23 = distinct !{!23, !18}
!24 = !{!6, !7, i64 512}
!25 = !{!16, !11, i64 24}
!26 = !{!10, !10, i64 0}
!27 = distinct !{!27, !18}
!28 = !{!6, !7, i64 136}
!29 = !{!6, !11, i64 2632}
!30 = !{!6, !7, i64 2580}


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