; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (io_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.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }
%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.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_countfacets(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #2 {
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store i32 %3, ptr %14, align 4, !tbaa !9
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  store ptr %9, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store i32 0, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  store i32 0, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  store i32 0, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  store i32 0, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  store i32 0, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  store i32 0, ptr %28, align 4, !tbaa !9
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %132

31:                                               ; preds = %10
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %32, ptr %21, align 8, !tbaa !5
  br label %33

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

36:                                               ; preds = %33
  %37 = load ptr, ptr %21, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.facetT, ptr %37, i32 0, i32 7
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %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 %131

43:                                               ; preds = %41
  %44 = load ptr, ptr %21, 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, 11
  %48 = and i32 %47, 1
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %55

50:                                               ; preds = %43
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.qhT, ptr %51, i32 0, i32 202
  %53 = load i32, ptr %52, align 8, !tbaa !14
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %63, label %55

55:                                               ; preds = %50, %43
  %56 = load i32, ptr %14, align 4, !tbaa !9
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %66, label %58

58:                                               ; preds = %55
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = load ptr, ptr %21, align 8, !tbaa !5
  %61 = call i32 @qh_skipfacet(ptr noundef %59, ptr noundef %60)
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %66

63:                                               ; preds = %58, %50
  %64 = load ptr, ptr %21, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.facetT, ptr %64, i32 0, i32 13
  store i32 0, ptr %65, align 8, !tbaa !19
  br label %126

66:                                               ; preds = %58, %55
  %67 = load i32, ptr %23, align 4, !tbaa !9
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %23, align 4, !tbaa !9
  %69 = load ptr, ptr %21, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.facetT, ptr %69, i32 0, i32 13
  store i32 %68, ptr %70, align 8, !tbaa !19
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = load ptr, ptr %21, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.facetT, ptr %72, i32 0, i32 10
  %74 = load ptr, ptr %73, align 8, !tbaa !20
  %75 = call i32 @qh_setsize(ptr noundef %71, ptr noundef %74)
  %76 = load i32, ptr %26, align 4, !tbaa !9
  %77 = add nsw i32 %76, %75
  store i32 %77, ptr %26, align 4, !tbaa !9
  %78 = load ptr, ptr %21, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.facetT, ptr %78, i32 0, i32 15
  %80 = load i32, ptr %79, align 8
  %81 = lshr i32 %80, 13
  %82 = and i32 %81, 1
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %104

84:                                               ; preds = %66
  %85 = load i32, ptr %24, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %24, align 4, !tbaa !9
  %87 = load ptr, ptr %21, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.facetT, ptr %87, i32 0, i32 15
  %89 = load i32, ptr %88, align 8
  %90 = lshr i32 %89, 28
  %91 = and i32 %90, 1
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %103

93:                                               ; preds = %84
  %94 = load ptr, ptr %21, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.facetT, ptr %94, i32 0, i32 15
  %96 = load i32, ptr %95, align 8
  %97 = lshr i32 %96, 9
  %98 = and i32 %97, 1
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %103

100:                                              ; preds = %93
  %101 = load i32, ptr %28, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %28, align 4, !tbaa !9
  br label %103

103:                                              ; preds = %100, %93, %84
  br label %112

104:                                              ; preds = %66
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = load ptr, ptr %21, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.facetT, ptr %106, i32 0, i32 9
  %108 = load ptr, ptr %107, align 8, !tbaa !21
  %109 = call i32 @qh_setsize(ptr noundef %105, ptr noundef %108)
  %110 = load i32, ptr %25, align 4, !tbaa !9
  %111 = add nsw i32 %110, %109
  store i32 %111, ptr %25, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %104, %103
  %113 = load ptr, ptr %21, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.facetT, ptr %113, i32 0, i32 12
  %115 = load ptr, ptr %114, align 8, !tbaa !22
  %116 = icmp ne ptr %115, null
  br i1 %116, label %117, label %125

117:                                              ; preds = %112
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = load ptr, ptr %21, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.facetT, ptr %119, i32 0, i32 12
  %121 = load ptr, ptr %120, align 8, !tbaa !22
  %122 = call i32 @qh_setsize(ptr noundef %118, ptr noundef %121)
  %123 = load i32, ptr %27, align 4, !tbaa !9
  %124 = add nsw i32 %123, %122
  store i32 %124, ptr %27, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %117, %112
  br label %126

126:                                              ; preds = %125, %63
  br label %127

127:                                              ; preds = %126
  %128 = load ptr, ptr %21, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.facetT, ptr %128, i32 0, i32 7
  %130 = load ptr, ptr %129, align 8, !tbaa !11
  store ptr %130, ptr %21, align 8, !tbaa !5
  br label %33, !llvm.loop !23

131:                                              ; preds = %41
  br label %132

132:                                              ; preds = %131, %10
  store ptr null, ptr %21, align 8, !tbaa !5
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %229

135:                                              ; preds = %132
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.setT, ptr %136, i32 0, i32 1
  %138 = getelementptr inbounds [1 x %union.setelemT], ptr %137, i64 0, i64 0
  store ptr %138, ptr %22, align 8, !tbaa !5
  br label %139

139:                                              ; preds = %227, %135
  %140 = load ptr, ptr %22, align 8, !tbaa !5
  %141 = getelementptr inbounds ptr, ptr %140, i32 1
  store ptr %141, ptr %22, align 8, !tbaa !5
  %142 = load ptr, ptr %140, align 8, !tbaa !5
  store ptr %142, ptr %21, align 8, !tbaa !5
  %143 = icmp ne ptr %142, null
  br i1 %143, label %144, label %228

144:                                              ; preds = %139
  %145 = load ptr, ptr %21, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.facetT, ptr %145, i32 0, i32 15
  %147 = load i32, ptr %146, align 8
  %148 = lshr i32 %147, 11
  %149 = and i32 %148, 1
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %156

151:                                              ; preds = %144
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.qhT, ptr %152, i32 0, i32 202
  %154 = load i32, ptr %153, align 8, !tbaa !14
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %164, label %156

156:                                              ; preds = %151, %144
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %167, label %159

159:                                              ; preds = %156
  %160 = load ptr, ptr %11, align 8, !tbaa !5
  %161 = load ptr, ptr %21, align 8, !tbaa !5
  %162 = call i32 @qh_skipfacet(ptr noundef %160, ptr noundef %161)
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %164, label %167

164:                                              ; preds = %159, %151
  %165 = load ptr, ptr %21, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.facetT, ptr %165, i32 0, i32 13
  store i32 0, ptr %166, align 8, !tbaa !19
  br label %227

167:                                              ; preds = %159, %156
  %168 = load i32, ptr %23, align 4, !tbaa !9
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %23, align 4, !tbaa !9
  %170 = load ptr, ptr %21, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.facetT, ptr %170, i32 0, i32 13
  store i32 %169, ptr %171, align 8, !tbaa !19
  %172 = load ptr, ptr %11, align 8, !tbaa !5
  %173 = load ptr, ptr %21, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.facetT, ptr %173, i32 0, i32 10
  %175 = load ptr, ptr %174, align 8, !tbaa !20
  %176 = call i32 @qh_setsize(ptr noundef %172, ptr noundef %175)
  %177 = load i32, ptr %26, align 4, !tbaa !9
  %178 = add nsw i32 %177, %176
  store i32 %178, ptr %26, align 4, !tbaa !9
  %179 = load ptr, ptr %21, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.facetT, ptr %179, i32 0, i32 15
  %181 = load i32, ptr %180, align 8
  %182 = lshr i32 %181, 13
  %183 = and i32 %182, 1
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %205

185:                                              ; preds = %167
  %186 = load i32, ptr %24, align 4, !tbaa !9
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %24, align 4, !tbaa !9
  %188 = load ptr, ptr %21, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.facetT, ptr %188, i32 0, i32 15
  %190 = load i32, ptr %189, align 8
  %191 = lshr i32 %190, 28
  %192 = and i32 %191, 1
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %204

194:                                              ; preds = %185
  %195 = load ptr, ptr %21, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.facetT, ptr %195, i32 0, i32 15
  %197 = load i32, ptr %196, align 8
  %198 = lshr i32 %197, 9
  %199 = and i32 %198, 1
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %201, label %204

201:                                              ; preds = %194
  %202 = load i32, ptr %28, align 4, !tbaa !9
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %28, align 4, !tbaa !9
  br label %204

204:                                              ; preds = %201, %194, %185
  br label %213

205:                                              ; preds = %167
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = load ptr, ptr %21, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.facetT, ptr %207, i32 0, i32 9
  %209 = load ptr, ptr %208, align 8, !tbaa !21
  %210 = call i32 @qh_setsize(ptr noundef %206, ptr noundef %209)
  %211 = load i32, ptr %25, align 4, !tbaa !9
  %212 = add nsw i32 %211, %210
  store i32 %212, ptr %25, align 4, !tbaa !9
  br label %213

213:                                              ; preds = %205, %204
  %214 = load ptr, ptr %21, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.facetT, ptr %214, i32 0, i32 12
  %216 = load ptr, ptr %215, align 8, !tbaa !22
  %217 = icmp ne ptr %216, null
  br i1 %217, label %218, label %226

218:                                              ; preds = %213
  %219 = load ptr, ptr %11, align 8, !tbaa !5
  %220 = load ptr, ptr %21, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.facetT, ptr %220, i32 0, i32 12
  %222 = load ptr, ptr %221, align 8, !tbaa !22
  %223 = call i32 @qh_setsize(ptr noundef %219, ptr noundef %222)
  %224 = load i32, ptr %27, align 4, !tbaa !9
  %225 = add nsw i32 %224, %223
  store i32 %225, ptr %27, align 4, !tbaa !9
  br label %226

226:                                              ; preds = %218, %213
  br label %227

227:                                              ; preds = %226, %164
  br label %139, !llvm.loop !25

228:                                              ; preds = %139
  br label %229

229:                                              ; preds = %228, %132
  %230 = load i32, ptr %23, align 4, !tbaa !9
  %231 = add i32 %230, 1
  %232 = load ptr, ptr %11, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.qhT, ptr %232, i32 0, i32 217
  %234 = load i32, ptr %233, align 8, !tbaa !26
  %235 = add i32 %234, %231
  store i32 %235, ptr %233, align 8, !tbaa !26
  %236 = load i32, ptr %23, align 4, !tbaa !9
  %237 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 %236, ptr %237, align 4, !tbaa !9
  %238 = load i32, ptr %24, align 4, !tbaa !9
  %239 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 %238, ptr %239, align 4, !tbaa !9
  %240 = load i32, ptr %26, align 4, !tbaa !9
  %241 = load ptr, ptr %17, align 8, !tbaa !5
  store i32 %240, ptr %241, align 4, !tbaa !9
  %242 = load i32, ptr %25, align 4, !tbaa !9
  %243 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 %242, ptr %243, align 4, !tbaa !9
  %244 = load i32, ptr %27, align 4, !tbaa !9
  %245 = load ptr, ptr %19, align 8, !tbaa !5
  store i32 %244, ptr %245, align 4, !tbaa !9
  %246 = load i32, ptr %28, align 4, !tbaa !9
  %247 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 %246, ptr %247, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  ret void
}

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

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

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

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


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

declare i32 @qh_setsize(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @qh_countfacets(ptr noundef %0, ptr noundef %1, ptr noundef readonly %2, i32 noundef %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5, ptr nocapture noundef writeonly %6, ptr nocapture noundef writeonly %7, ptr nocapture noundef writeonly %8, ptr nocapture noundef writeonly %9) local_unnamed_addr #1 {
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.critedge, label %.preheader130

.preheader130:                                    ; preds = %10
  %11 = getelementptr inbounds i8, ptr %0, i64 2704
  %.not122 = icmp eq i32 %3, 0
  br i1 %.not122, label %.preheader130.split.us, label %.preheader130.split

.preheader130.split.us:                           ; preds = %.preheader130, %48
  %.0137.us = phi i32 [ %.2.us, %48 ], [ 0, %.preheader130 ]
  %.067136.us = phi i32 [ %.168.us, %48 ], [ 0, %.preheader130 ]
  %.073135.us = phi i32 [ %.174.us, %48 ], [ 0, %.preheader130 ]
  %.079134.us = phi i32 [ %.281.us, %48 ], [ 0, %.preheader130 ]
  %.087133.us = phi i32 [ %.289.us, %48 ], [ 0, %.preheader130 ]
  %.095132.us = phi i32 [ %.196.us, %48 ], [ 0, %.preheader130 ]
  %.0102131.us = phi ptr [ %49, %48 ], [ %1, %.preheader130 ]
  %12 = getelementptr inbounds i8, ptr %.0102131.us, i64 56
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %.not109.us = icmp eq ptr %13, null
  br i1 %.not109.us, label %.critedge, label %14

14:                                               ; preds = %.preheader130.split.us
  %15 = getelementptr inbounds i8, ptr %.0102131.us, i64 112
  %16 = load i32, ptr %15, align 8
  %17 = and i32 %16, 2048
  %.not120.us = icmp eq i32 %17, 0
  br i1 %.not120.us, label %20, label %18

18:                                               ; preds = %14
  %19 = load i32, ptr %11, align 8, !tbaa !12
  %.not121.us = icmp eq i32 %19, 0
  br i1 %.not121.us, label %20, label %22

20:                                               ; preds = %18, %14
  %21 = tail call i32 @qh_skipfacet(ptr noundef %0, ptr noundef nonnull %.0102131.us)
  %.not123.us = icmp eq i32 %21, 0
  br i1 %.not123.us, label %24, label %22

22:                                               ; preds = %20, %18
  %23 = getelementptr inbounds i8, ptr %.0102131.us, i64 104
  store i32 0, ptr %23, align 8, !tbaa !17
  br label %48

24:                                               ; preds = %20
  %25 = add nsw i32 %.095132.us, 1
  %26 = getelementptr inbounds i8, ptr %.0102131.us, i64 104
  store i32 %25, ptr %26, align 8, !tbaa !17
  %27 = getelementptr inbounds i8, ptr %.0102131.us, i64 80
  %28 = load ptr, ptr %27, align 8, !tbaa !18
  %29 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %28) #2
  %30 = add nsw i32 %29, %.073135.us
  %31 = load i32, ptr %15, align 8
  %32 = and i32 %31, 8192
  %.not124.us = icmp eq i32 %32, 0
  br i1 %.not124.us, label %37, label %33

33:                                               ; preds = %24
  %34 = add nsw i32 %.087133.us, 1
  %35 = and i32 %31, 268435968
  %or.cond.not.us = icmp eq i32 %35, 268435968
  %36 = zext i1 %or.cond.not.us to i32
  %spec.select.us = add nsw i32 %.0137.us, %36
  br label %42

37:                                               ; preds = %24
  %38 = getelementptr inbounds i8, ptr %.0102131.us, i64 72
  %39 = load ptr, ptr %38, align 8, !tbaa !19
  %40 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %39) #2
  %41 = add nsw i32 %40, %.079134.us
  br label %42

42:                                               ; preds = %37, %33
  %.188.us = phi i32 [ %.087133.us, %37 ], [ %34, %33 ]
  %.180.us = phi i32 [ %41, %37 ], [ %.079134.us, %33 ]
  %.1.us = phi i32 [ %.0137.us, %37 ], [ %spec.select.us, %33 ]
  %43 = getelementptr inbounds i8, ptr %.0102131.us, i64 96
  %44 = load ptr, ptr %43, align 8, !tbaa !20
  %.not127.us = icmp eq ptr %44, null
  br i1 %.not127.us, label %48, label %45

45:                                               ; preds = %42
  %46 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef nonnull %44) #2
  %47 = add nsw i32 %46, %.067136.us
  br label %48

48:                                               ; preds = %45, %42, %22
  %.196.us = phi i32 [ %.095132.us, %22 ], [ %25, %45 ], [ %25, %42 ]
  %.289.us = phi i32 [ %.087133.us, %22 ], [ %.188.us, %45 ], [ %.188.us, %42 ]
  %.281.us = phi i32 [ %.079134.us, %22 ], [ %.180.us, %45 ], [ %.180.us, %42 ]
  %.174.us = phi i32 [ %.073135.us, %22 ], [ %30, %45 ], [ %30, %42 ]
  %.168.us = phi i32 [ %.067136.us, %22 ], [ %47, %45 ], [ %.067136.us, %42 ]
  %.2.us = phi i32 [ %.0137.us, %22 ], [ %.1.us, %45 ], [ %.1.us, %42 ]
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %.not108.us = icmp eq ptr %49, null
  br i1 %.not108.us, label %.critedge, label %.preheader130.split.us, !llvm.loop !21

.preheader130.split:                              ; preds = %.preheader130, %84
  %.0137 = phi i32 [ %.2, %84 ], [ 0, %.preheader130 ]
  %.067136 = phi i32 [ %.168, %84 ], [ 0, %.preheader130 ]
  %.073135 = phi i32 [ %.174, %84 ], [ 0, %.preheader130 ]
  %.079134 = phi i32 [ %.281, %84 ], [ 0, %.preheader130 ]
  %.087133 = phi i32 [ %.289, %84 ], [ 0, %.preheader130 ]
  %.095132 = phi i32 [ %.196, %84 ], [ 0, %.preheader130 ]
  %.0102131 = phi ptr [ %85, %84 ], [ %1, %.preheader130 ]
  %50 = getelementptr inbounds i8, ptr %.0102131, i64 56
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %.not109 = icmp eq ptr %51, null
  br i1 %.not109, label %.critedge, label %52

52:                                               ; preds = %.preheader130.split
  %53 = getelementptr inbounds i8, ptr %.0102131, i64 112
  %54 = load i32, ptr %53, align 8
  %55 = and i32 %54, 2048
  %.not120 = icmp eq i32 %55, 0
  br i1 %.not120, label %58, label %56

56:                                               ; preds = %52
  %57 = load i32, ptr %11, align 8, !tbaa !12
  %.not121 = icmp eq i32 %57, 0
  br i1 %.not121, label %58, label %67

58:                                               ; preds = %56, %52
  %59 = add nsw i32 %.095132, 1
  %60 = getelementptr inbounds i8, ptr %.0102131, i64 104
  store i32 %59, ptr %60, align 8, !tbaa !17
  %61 = getelementptr inbounds i8, ptr %.0102131, i64 80
  %62 = load ptr, ptr %61, align 8, !tbaa !18
  %63 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %62) #2
  %64 = add nsw i32 %63, %.073135
  %65 = load i32, ptr %53, align 8
  %66 = and i32 %65, 8192
  %.not124 = icmp eq i32 %66, 0
  br i1 %.not124, label %73, label %69

67:                                               ; preds = %56
  %68 = getelementptr inbounds i8, ptr %.0102131, i64 104
  store i32 0, ptr %68, align 8, !tbaa !17
  br label %84

69:                                               ; preds = %58
  %70 = add nsw i32 %.087133, 1
  %71 = and i32 %65, 268435968
  %or.cond.not = icmp eq i32 %71, 268435968
  %72 = zext i1 %or.cond.not to i32
  %spec.select = add nsw i32 %.0137, %72
  br label %78

73:                                               ; preds = %58
  %74 = getelementptr inbounds i8, ptr %.0102131, i64 72
  %75 = load ptr, ptr %74, align 8, !tbaa !19
  %76 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %75) #2
  %77 = add nsw i32 %76, %.079134
  br label %78

78:                                               ; preds = %69, %73
  %.188 = phi i32 [ %.087133, %73 ], [ %70, %69 ]
  %.180 = phi i32 [ %77, %73 ], [ %.079134, %69 ]
  %.1 = phi i32 [ %.0137, %73 ], [ %spec.select, %69 ]
  %79 = getelementptr inbounds i8, ptr %.0102131, i64 96
  %80 = load ptr, ptr %79, align 8, !tbaa !20
  %.not127 = icmp eq ptr %80, null
  br i1 %.not127, label %84, label %81

81:                                               ; preds = %78
  %82 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef nonnull %80) #2
  %83 = add nsw i32 %82, %.067136
  br label %84

84:                                               ; preds = %67, %81, %78
  %.196 = phi i32 [ %.095132, %67 ], [ %59, %81 ], [ %59, %78 ]
  %.289 = phi i32 [ %.087133, %67 ], [ %.188, %81 ], [ %.188, %78 ]
  %.281 = phi i32 [ %.079134, %67 ], [ %.180, %81 ], [ %.180, %78 ]
  %.174 = phi i32 [ %.073135, %67 ], [ %64, %81 ], [ %64, %78 ]
  %.168 = phi i32 [ %.067136, %67 ], [ %83, %81 ], [ %.067136, %78 ]
  %.2 = phi i32 [ %.0137, %67 ], [ %.1, %81 ], [ %.1, %78 ]
  %85 = load ptr, ptr %50, align 8, !tbaa !5
  %.not108 = icmp eq ptr %85, null
  br i1 %.not108, label %.critedge, label %.preheader130.split, !llvm.loop !21

.critedge:                                        ; preds = %84, %.preheader130.split, %48, %.preheader130.split.us, %10
  %.297 = phi i32 [ 0, %10 ], [ %.196.us, %48 ], [ %.095132.us, %.preheader130.split.us ], [ %.196, %84 ], [ %.095132, %.preheader130.split ]
  %.390 = phi i32 [ 0, %10 ], [ %.289.us, %48 ], [ %.087133.us, %.preheader130.split.us ], [ %.289, %84 ], [ %.087133, %.preheader130.split ]
  %.382 = phi i32 [ 0, %10 ], [ %.281.us, %48 ], [ %.079134.us, %.preheader130.split.us ], [ %.281, %84 ], [ %.079134, %.preheader130.split ]
  %.275 = phi i32 [ 0, %10 ], [ %.174.us, %48 ], [ %.073135.us, %.preheader130.split.us ], [ %.174, %84 ], [ %.073135, %.preheader130.split ]
  %.269 = phi i32 [ 0, %10 ], [ %.168.us, %48 ], [ %.067136.us, %.preheader130.split.us ], [ %.168, %84 ], [ %.067136, %.preheader130.split ]
  %.3 = phi i32 [ 0, %10 ], [ %.2.us, %48 ], [ %.0137.us, %.preheader130.split.us ], [ %.2, %84 ], [ %.0137, %.preheader130.split ]
  %.not110 = icmp eq ptr %2, null
  br i1 %.not110, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.critedge
  %.0101143 = getelementptr inbounds i8, ptr %2, i64 8
  %86 = load ptr, ptr %.0101143, align 8, !tbaa !23
  %.not111144 = icmp eq ptr %86, null
  br i1 %.not111144, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %87 = getelementptr inbounds i8, ptr %0, i64 2704
  %.not114 = icmp eq i32 %3, 0
  br i1 %.not114, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %122
  %88 = phi ptr [ %123, %122 ], [ %86, %.lr.ph ]
  %.0101151.us = phi ptr [ %.0101.us, %122 ], [ %.0101143, %.lr.ph ]
  %.4150.us = phi i32 [ %.6.us, %122 ], [ %.3, %.lr.ph ]
  %.370149.us = phi i32 [ %.471.us, %122 ], [ %.269, %.lr.ph ]
  %.376148.us = phi i32 [ %.477.us, %122 ], [ %.275, %.lr.ph ]
  %.483147.us = phi i32 [ %.685.us, %122 ], [ %.382, %.lr.ph ]
  %.491146.us = phi i32 [ %.693.us, %122 ], [ %.390, %.lr.ph ]
  %.398145.us = phi i32 [ %.499.us, %122 ], [ %.297, %.lr.ph ]
  %89 = getelementptr inbounds i8, ptr %88, i64 112
  %90 = load i32, ptr %89, align 8
  %91 = and i32 %90, 2048
  %.not112.us = icmp eq i32 %91, 0
  br i1 %.not112.us, label %94, label %92

92:                                               ; preds = %.lr.ph.split.us
  %93 = load i32, ptr %87, align 8, !tbaa !12
  %.not113.us = icmp eq i32 %93, 0
  br i1 %.not113.us, label %94, label %96

94:                                               ; preds = %92, %.lr.ph.split.us
  %95 = tail call i32 @qh_skipfacet(ptr noundef %0, ptr noundef nonnull %88)
  %.not115.us = icmp eq i32 %95, 0
  br i1 %.not115.us, label %98, label %96

96:                                               ; preds = %94, %92
  %97 = getelementptr inbounds i8, ptr %88, i64 104
  store i32 0, ptr %97, align 8, !tbaa !17
  br label %122

98:                                               ; preds = %94
  %99 = add nsw i32 %.398145.us, 1
  %100 = getelementptr inbounds i8, ptr %88, i64 104
  store i32 %99, ptr %100, align 8, !tbaa !17
  %101 = getelementptr inbounds i8, ptr %88, i64 80
  %102 = load ptr, ptr %101, align 8, !tbaa !18
  %103 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %102) #2
  %104 = add nsw i32 %103, %.376148.us
  %105 = load i32, ptr %89, align 8
  %106 = and i32 %105, 8192
  %.not116.us = icmp eq i32 %106, 0
  br i1 %.not116.us, label %111, label %107

107:                                              ; preds = %98
  %108 = add nsw i32 %.491146.us, 1
  %109 = and i32 %105, 268435968
  %or.cond128.not.us = icmp eq i32 %109, 268435968
  %110 = zext i1 %or.cond128.not.us to i32
  %spec.select129.us = add nsw i32 %.4150.us, %110
  br label %116

111:                                              ; preds = %98
  %112 = getelementptr inbounds i8, ptr %88, i64 72
  %113 = load ptr, ptr %112, align 8, !tbaa !19
  %114 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %113) #2
  %115 = add nsw i32 %114, %.483147.us
  br label %116

116:                                              ; preds = %111, %107
  %.592.us = phi i32 [ %.491146.us, %111 ], [ %108, %107 ]
  %.584.us = phi i32 [ %115, %111 ], [ %.483147.us, %107 ]
  %.5.us = phi i32 [ %.4150.us, %111 ], [ %spec.select129.us, %107 ]
  %117 = getelementptr inbounds i8, ptr %88, i64 96
  %118 = load ptr, ptr %117, align 8, !tbaa !20
  %.not119.us = icmp eq ptr %118, null
  br i1 %.not119.us, label %122, label %119

119:                                              ; preds = %116
  %120 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef nonnull %118) #2
  %121 = add nsw i32 %120, %.370149.us
  br label %122

122:                                              ; preds = %119, %116, %96
  %.499.us = phi i32 [ %.398145.us, %96 ], [ %99, %119 ], [ %99, %116 ]
  %.693.us = phi i32 [ %.491146.us, %96 ], [ %.592.us, %119 ], [ %.592.us, %116 ]
  %.685.us = phi i32 [ %.483147.us, %96 ], [ %.584.us, %119 ], [ %.584.us, %116 ]
  %.477.us = phi i32 [ %.376148.us, %96 ], [ %104, %119 ], [ %104, %116 ]
  %.471.us = phi i32 [ %.370149.us, %96 ], [ %121, %119 ], [ %.370149.us, %116 ]
  %.6.us = phi i32 [ %.4150.us, %96 ], [ %.5.us, %119 ], [ %.5.us, %116 ]
  %.0101.us = getelementptr inbounds i8, ptr %.0101151.us, i64 8
  %123 = load ptr, ptr %.0101.us, align 8, !tbaa !23
  %.not111.us = icmp eq ptr %123, null
  br i1 %.not111.us, label %.loopexit, label %.lr.ph.split.us, !llvm.loop !24

.lr.ph.split:                                     ; preds = %.lr.ph, %156
  %124 = phi ptr [ %157, %156 ], [ %86, %.lr.ph ]
  %.0101151 = phi ptr [ %.0101, %156 ], [ %.0101143, %.lr.ph ]
  %.4150 = phi i32 [ %.6, %156 ], [ %.3, %.lr.ph ]
  %.370149 = phi i32 [ %.471, %156 ], [ %.269, %.lr.ph ]
  %.376148 = phi i32 [ %.477, %156 ], [ %.275, %.lr.ph ]
  %.483147 = phi i32 [ %.685, %156 ], [ %.382, %.lr.ph ]
  %.491146 = phi i32 [ %.693, %156 ], [ %.390, %.lr.ph ]
  %.398145 = phi i32 [ %.499, %156 ], [ %.297, %.lr.ph ]
  %125 = getelementptr inbounds i8, ptr %124, i64 112
  %126 = load i32, ptr %125, align 8
  %127 = and i32 %126, 2048
  %.not112 = icmp eq i32 %127, 0
  br i1 %.not112, label %130, label %128

128:                                              ; preds = %.lr.ph.split
  %129 = load i32, ptr %87, align 8, !tbaa !12
  %.not113 = icmp eq i32 %129, 0
  br i1 %.not113, label %130, label %139

130:                                              ; preds = %128, %.lr.ph.split
  %131 = add nsw i32 %.398145, 1
  %132 = getelementptr inbounds i8, ptr %124, i64 104
  store i32 %131, ptr %132, align 8, !tbaa !17
  %133 = getelementptr inbounds i8, ptr %124, i64 80
  %134 = load ptr, ptr %133, align 8, !tbaa !18
  %135 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %134) #2
  %136 = add nsw i32 %135, %.376148
  %137 = load i32, ptr %125, align 8
  %138 = and i32 %137, 8192
  %.not116 = icmp eq i32 %138, 0
  br i1 %.not116, label %145, label %141

139:                                              ; preds = %128
  %140 = getelementptr inbounds i8, ptr %124, i64 104
  store i32 0, ptr %140, align 8, !tbaa !17
  br label %156

141:                                              ; preds = %130
  %142 = add nsw i32 %.491146, 1
  %143 = and i32 %137, 268435968
  %or.cond128.not = icmp eq i32 %143, 268435968
  %144 = zext i1 %or.cond128.not to i32
  %spec.select129 = add nsw i32 %.4150, %144
  br label %150

145:                                              ; preds = %130
  %146 = getelementptr inbounds i8, ptr %124, i64 72
  %147 = load ptr, ptr %146, align 8, !tbaa !19
  %148 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %147) #2
  %149 = add nsw i32 %148, %.483147
  br label %150

150:                                              ; preds = %141, %145
  %.592 = phi i32 [ %.491146, %145 ], [ %142, %141 ]
  %.584 = phi i32 [ %149, %145 ], [ %.483147, %141 ]
  %.5 = phi i32 [ %.4150, %145 ], [ %spec.select129, %141 ]
  %151 = getelementptr inbounds i8, ptr %124, i64 96
  %152 = load ptr, ptr %151, align 8, !tbaa !20
  %.not119 = icmp eq ptr %152, null
  br i1 %.not119, label %156, label %153

153:                                              ; preds = %150
  %154 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef nonnull %152) #2
  %155 = add nsw i32 %154, %.370149
  br label %156

156:                                              ; preds = %150, %153, %139
  %.499 = phi i32 [ %.398145, %139 ], [ %131, %153 ], [ %131, %150 ]
  %.693 = phi i32 [ %.491146, %139 ], [ %.592, %153 ], [ %.592, %150 ]
  %.685 = phi i32 [ %.483147, %139 ], [ %.584, %153 ], [ %.584, %150 ]
  %.477 = phi i32 [ %.376148, %139 ], [ %136, %153 ], [ %136, %150 ]
  %.471 = phi i32 [ %.370149, %139 ], [ %155, %153 ], [ %.370149, %150 ]
  %.6 = phi i32 [ %.4150, %139 ], [ %.5, %153 ], [ %.5, %150 ]
  %.0101 = getelementptr inbounds i8, ptr %.0101151, i64 8
  %157 = load ptr, ptr %.0101, align 8, !tbaa !23
  %.not111 = icmp eq ptr %157, null
  br i1 %.not111, label %.loopexit, label %.lr.ph.split, !llvm.loop !24

.loopexit:                                        ; preds = %156, %122, %.preheader, %.critedge
  %.5100 = phi i32 [ %.297, %.critedge ], [ %.297, %.preheader ], [ %.499.us, %122 ], [ %.499, %156 ]
  %.794 = phi i32 [ %.390, %.critedge ], [ %.390, %.preheader ], [ %.693.us, %122 ], [ %.693, %156 ]
  %.786 = phi i32 [ %.382, %.critedge ], [ %.382, %.preheader ], [ %.685.us, %122 ], [ %.685, %156 ]
  %.578 = phi i32 [ %.275, %.critedge ], [ %.275, %.preheader ], [ %.477.us, %122 ], [ %.477, %156 ]
  %.572 = phi i32 [ %.269, %.critedge ], [ %.269, %.preheader ], [ %.471.us, %122 ], [ %.471, %156 ]
  %.7 = phi i32 [ %.3, %.critedge ], [ %.3, %.preheader ], [ %.6.us, %122 ], [ %.6, %156 ]
  %158 = add i32 %.5100, 1
  %159 = getelementptr inbounds i8, ptr %0, i64 2784
  %160 = load i32, ptr %159, align 8, !tbaa !25
  %161 = add i32 %158, %160
  store i32 %161, ptr %159, align 8, !tbaa !25
  store i32 %.5100, ptr %4, align 4, !tbaa !26
  store i32 %.794, ptr %5, align 4, !tbaa !26
  store i32 %.578, ptr %6, align 4, !tbaa !26
  store i32 %.786, ptr %7, align 4, !tbaa !26
  store i32 %.572, ptr %8, align 4, !tbaa !26
  store i32 %.7, ptr %9, align 4, !tbaa !26
  ret void
}

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

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

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


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