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

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

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

@.str.48 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [80 x i8], align 1

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

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

18:                                               ; preds = %2
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.qhT, ptr %19, i32 0, i32 163
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  store ptr %21, ptr %9, align 8, !tbaa !5
  br label %102

22:                                               ; preds = %2
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.qhT, ptr %23, i32 0, i32 166
  %25 = load ptr, ptr %24, align 8, !tbaa !17
  store ptr %25, ptr %9, align 8, !tbaa !5
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %80

28:                                               ; preds = %22
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %29, ptr %6, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %75, %28
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %38

33:                                               ; preds = %30
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.facetT, ptr %34, i32 0, i32 7
  %36 = load ptr, ptr %35, align 8, !tbaa !18
  %37 = icmp ne ptr %36, null
  br label %38

38:                                               ; preds = %33, %30
  %39 = phi i1 [ false, %30 ], [ %37, %33 ]
  br i1 %39, label %40, label %79

40:                                               ; preds = %38
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.facetT, ptr %41, i32 0, i32 10
  %43 = load ptr, ptr %42, align 8, !tbaa !20
  %44 = getelementptr inbounds %struct.setT, ptr %43, i32 0, i32 1
  %45 = getelementptr inbounds [1 x %union.setelemT], ptr %44, i64 0, i64 0
  %46 = load ptr, ptr %45, align 8, !tbaa !21
  store ptr %46, ptr %8, align 8, !tbaa !5
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.facetT, ptr %47, i32 0, i32 15
  %49 = load i32, ptr %48, align 8
  %50 = lshr i32 %49, 13
  %51 = and i32 %50, 1
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %54, label %53

53:                                               ; preds = %40
  br label %308

54:                                               ; preds = %40
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.facetT, ptr %55, i32 0, i32 15
  %57 = load i32, ptr %56, align 8
  %58 = lshr i32 %57, 16
  %59 = and i32 %58, 1
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %73, label %61

61:                                               ; preds = %54
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.facetT, ptr %62, i32 0, i32 15
  %64 = load i32, ptr %63, align 8
  %65 = lshr i32 %64, 21
  %66 = and i32 %65, 1
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %73, label %68

68:                                               ; preds = %61
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.facetT, ptr %69, i32 0, i32 3
  %71 = load ptr, ptr %70, align 8, !tbaa !22
  %72 = icmp ne ptr %71, null
  br i1 %72, label %74, label %73

73:                                               ; preds = %68, %61, %54
  br label %308

74:                                               ; preds = %68
  br label %75

75:                                               ; preds = %74
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.facetT, ptr %76, i32 0, i32 7
  %78 = load ptr, ptr %77, align 8, !tbaa !18
  store ptr %78, ptr %6, align 8, !tbaa !5
  br label %30, !llvm.loop !23

79:                                               ; preds = %38
  br label %80

80:                                               ; preds = %79, %22
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.qhT, ptr %81, i32 0, i32 37
  %83 = load i32, ptr %82, align 4, !tbaa !25
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %101

85:                                               ; preds = %80
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.qhT, ptr %86, i32 0, i32 220
  %88 = load i32, ptr %87, align 4, !tbaa !26
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %101

90:                                               ; preds = %85
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.qhT, ptr %91, i32 0, i32 29
  %93 = load i32, ptr %92, align 8, !tbaa !27
  %94 = icmp sge i32 %93, 2
  br i1 %94, label %95, label %100

95:                                               ; preds = %90
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.qhT, ptr %97, i32 0, i32 158
  %99 = load ptr, ptr %98, align 8, !tbaa !28
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %96, ptr noundef %99, i32 noundef 2011, ptr noundef @.str.48)
  br label %100

100:                                              ; preds = %95, %90
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %369

101:                                              ; preds = %85, %80
  br label %102

102:                                              ; preds = %101, %18
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = icmp ne ptr %103, null
  br i1 %104, label %105, label %284

105:                                              ; preds = %102
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %106, ptr %6, align 8, !tbaa !5
  br label %107

107:                                              ; preds = %279, %105
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = icmp ne ptr %108, null
  br i1 %109, label %110, label %115

110:                                              ; preds = %107
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.facetT, ptr %111, i32 0, i32 7
  %113 = load ptr, ptr %112, align 8, !tbaa !18
  %114 = icmp ne ptr %113, null
  br label %115

115:                                              ; preds = %110, %107
  %116 = phi i1 [ false, %107 ], [ %114, %110 ]
  br i1 %116, label %117, label %283

117:                                              ; preds = %115
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.qhT, ptr %118, i32 0, i32 218
  %120 = load i32, ptr %119, align 4, !tbaa !29
  %121 = add i32 %120, 1
  store i32 %121, ptr %119, align 4, !tbaa !29
  store ptr null, ptr %8, align 8, !tbaa !5
  store ptr null, ptr %7, align 8, !tbaa !5
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.facetT, ptr %122, i32 0, i32 10
  %124 = load ptr, ptr %123, align 8, !tbaa !20
  %125 = icmp ne ptr %124, null
  br i1 %125, label %126, label %211

126:                                              ; preds = %117
  store i32 0, ptr %10, align 4, !tbaa !9
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.facetT, ptr %127, i32 0, i32 10
  %129 = load ptr, ptr %128, align 8, !tbaa !20
  %130 = getelementptr inbounds %struct.setT, ptr %129, i32 0, i32 1
  %131 = getelementptr inbounds [1 x %union.setelemT], ptr %130, i64 0, i64 0
  %132 = load ptr, ptr %131, align 8, !tbaa !21
  store ptr %132, ptr %7, align 8, !tbaa !5
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.facetT, ptr %134, i32 0, i32 10
  %136 = load ptr, ptr %135, align 8, !tbaa !20
  %137 = call i32 @qh_setsize(ptr noundef %133, ptr noundef %136)
  store i32 %137, ptr %11, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %200, %126
  %139 = load i32, ptr %10, align 4, !tbaa !9
  %140 = load i32, ptr %11, align 4, !tbaa !9
  %141 = icmp slt i32 %139, %140
  br i1 %141, label %142, label %210

142:                                              ; preds = %138
  %143 = load i32, ptr %10, align 4, !tbaa !9
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %150, label %145

145:                                              ; preds = %142
  %146 = load i32, ptr %5, align 4, !tbaa !9
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %150, label %148

148:                                              ; preds = %145
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %149, ptr %8, align 8, !tbaa !5
  br label %200

150:                                              ; preds = %145, %142
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.facetT, ptr %151, i32 0, i32 8
  %153 = load ptr, ptr %152, align 8, !tbaa !30
  %154 = getelementptr inbounds %struct.setT, ptr %153, i32 0, i32 1
  %155 = load i32, ptr %10, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [1 x %union.setelemT], ptr %154, i64 0, i64 %156
  %158 = load ptr, ptr %157, align 8, !tbaa !21
  store ptr %158, ptr %12, align 8, !tbaa !5
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.qhT, ptr %159, i32 0, i32 218
  %161 = load i32, ptr %160, align 4, !tbaa !29
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.vertexT, ptr %162, i32 0, i32 5
  store i32 %161, ptr %163, align 4, !tbaa !31
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.qhT, ptr %164, i32 0, i32 258
  %166 = getelementptr inbounds %struct.qhstatT, ptr %165, i32 0, i32 0
  %167 = getelementptr inbounds [249 x %union.intrealT], ptr %166, i64 0, i64 64
  %168 = load i32, ptr %167, align 8, !tbaa !21
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %167, align 8, !tbaa !21
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = load ptr, ptr %12, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.vertexT, ptr %171, i32 0, i32 2
  %173 = load ptr, ptr %172, align 8, !tbaa !33
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %170, ptr noundef %173, ptr noundef %174, ptr noundef %14)
  %175 = load double, ptr %14, align 8, !tbaa !34
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.qhT, ptr %176, i32 0, i32 134
  %178 = load double, ptr %177, align 8, !tbaa !35
  %179 = fmul double -2.000000e+00, %178
  %180 = fcmp oge double %175, %179
  br i1 %180, label %181, label %199

181:                                              ; preds = %150
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.qhT, ptr %182, i32 0, i32 220
  store i32 0, ptr %183, align 4, !tbaa !26
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.qhT, ptr %184, i32 0, i32 37
  %186 = load i32, ptr %185, align 4, !tbaa !25
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %188, label %197

188:                                              ; preds = %181
  %189 = load i32, ptr %5, align 4, !tbaa !9
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %197, label %191

191:                                              ; preds = %188
  %192 = load double, ptr %14, align 8, !tbaa !34
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.qhT, ptr %193, i32 0, i32 134
  %195 = load double, ptr %194, align 8, !tbaa !35
  %196 = fcmp ogt double %192, %195
  br i1 %196, label %197, label %198

197:                                              ; preds = %191, %188, %181
  br label %327

198:                                              ; preds = %191
  br label %199

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

200:                                              ; preds = %199, %148
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.facetT, ptr %201, i32 0, i32 10
  %203 = load ptr, ptr %202, align 8, !tbaa !20
  %204 = getelementptr inbounds %struct.setT, ptr %203, i32 0, i32 1
  %205 = load i32, ptr %10, align 4, !tbaa !9
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %10, align 4, !tbaa !9
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [1 x %union.setelemT], ptr %204, i64 0, i64 %207
  %209 = load ptr, ptr %208, align 8, !tbaa !21
  store ptr %209, ptr %7, align 8, !tbaa !5
  br label %138, !llvm.loop !36

210:                                              ; preds = %138
  br label %211

211:                                              ; preds = %210, %117
  %212 = load i32, ptr %5, align 4, !tbaa !9
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %278, label %214

214:                                              ; preds = %211
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = icmp ne ptr %215, null
  br i1 %216, label %217, label %278

217:                                              ; preds = %214
  store ptr null, ptr %12, align 8, !tbaa !5
  %218 = load ptr, ptr %8, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.facetT, ptr %218, i32 0, i32 8
  %220 = load ptr, ptr %219, align 8, !tbaa !30
  %221 = icmp ne ptr %220, null
  br i1 %221, label %222, label %277

222:                                              ; preds = %217
  %223 = load ptr, ptr %8, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.facetT, ptr %223, i32 0, i32 8
  %225 = load ptr, ptr %224, align 8, !tbaa !30
  %226 = getelementptr inbounds %struct.setT, ptr %225, i32 0, i32 1
  %227 = getelementptr inbounds [1 x %union.setelemT], ptr %226, i64 0, i64 0
  store ptr %227, ptr %13, align 8, !tbaa !5
  br label %228

228:                                              ; preds = %275, %222
  %229 = load ptr, ptr %13, align 8, !tbaa !5
  %230 = getelementptr inbounds ptr, ptr %229, i32 1
  store ptr %230, ptr %13, align 8, !tbaa !5
  %231 = load ptr, ptr %229, align 8, !tbaa !5
  store ptr %231, ptr %12, align 8, !tbaa !5
  %232 = icmp ne ptr %231, null
  br i1 %232, label %233, label %276

233:                                              ; preds = %228
  %234 = load ptr, ptr %12, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.vertexT, ptr %234, i32 0, i32 5
  %236 = load i32, ptr %235, align 4, !tbaa !31
  %237 = load ptr, ptr %4, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.qhT, ptr %237, i32 0, i32 218
  %239 = load i32, ptr %238, align 4, !tbaa !29
  %240 = icmp ne i32 %236, %239
  br i1 %240, label %241, label %275

241:                                              ; preds = %233
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.qhT, ptr %242, i32 0, i32 258
  %244 = getelementptr inbounds %struct.qhstatT, ptr %243, i32 0, i32 0
  %245 = getelementptr inbounds [249 x %union.intrealT], ptr %244, i64 0, i64 64
  %246 = load i32, ptr %245, align 8, !tbaa !21
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %245, align 8, !tbaa !21
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = load ptr, ptr %12, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.vertexT, ptr %249, i32 0, i32 2
  %251 = load ptr, ptr %250, align 8, !tbaa !33
  %252 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %248, ptr noundef %251, ptr noundef %252, ptr noundef %14)
  %253 = load double, ptr %14, align 8, !tbaa !34
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.qhT, ptr %254, i32 0, i32 134
  %256 = load double, ptr %255, align 8, !tbaa !35
  %257 = fmul double -2.000000e+00, %256
  %258 = fcmp oge double %253, %257
  br i1 %258, label %259, label %274

259:                                              ; preds = %241
  %260 = load ptr, ptr %4, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.qhT, ptr %260, i32 0, i32 220
  store i32 0, ptr %261, align 4, !tbaa !26
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.qhT, ptr %262, i32 0, i32 37
  %264 = load i32, ptr %263, align 4, !tbaa !25
  %265 = icmp ne i32 %264, 0
  br i1 %265, label %266, label %272

266:                                              ; preds = %259
  %267 = load double, ptr %14, align 8, !tbaa !34
  %268 = load ptr, ptr %4, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.qhT, ptr %268, i32 0, i32 134
  %270 = load double, ptr %269, align 8, !tbaa !35
  %271 = fcmp ogt double %267, %270
  br i1 %271, label %272, label %273

272:                                              ; preds = %266, %259
  br label %348

273:                                              ; preds = %266
  br label %274

274:                                              ; preds = %273, %241
  br label %276

275:                                              ; preds = %233
  br label %228, !llvm.loop !37

276:                                              ; preds = %274, %228
  br label %277

277:                                              ; preds = %276, %217
  br label %278

278:                                              ; preds = %277, %214, %211
  br label %279

279:                                              ; preds = %278
  %280 = load ptr, ptr %6, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.facetT, ptr %280, i32 0, i32 7
  %282 = load ptr, ptr %281, align 8, !tbaa !18
  store ptr %282, ptr %6, align 8, !tbaa !5
  br label %107, !llvm.loop !38

283:                                              ; preds = %115
  br label %284

284:                                              ; preds = %283, %102
  %285 = load ptr, ptr %4, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.qhT, ptr %285, i32 0, i32 29
  %287 = load i32, ptr %286, align 8, !tbaa !27
  %288 = icmp sge i32 %287, 2
  br i1 %288, label %289, label %307

289:                                              ; preds = %284
  %290 = load ptr, ptr %4, align 8, !tbaa !5
  %291 = load ptr, ptr %4, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.qhT, ptr %291, i32 0, i32 158
  %293 = load ptr, ptr %292, align 8, !tbaa !28
  %294 = load i32, ptr %5, align 4, !tbaa !9
  %295 = load ptr, ptr %4, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.qhT, ptr %295, i32 0, i32 37
  %297 = load i32, ptr %296, align 4, !tbaa !25
  %298 = icmp ne i32 %297, 0
  br i1 %298, label %299, label %303

299:                                              ; preds = %289
  %300 = load i32, ptr %5, align 4, !tbaa !9
  %301 = icmp ne i32 %300, 0
  %302 = xor i1 %301, true
  br label %303

303:                                              ; preds = %299, %289
  %304 = phi i1 [ false, %289 ], [ %302, %299 ]
  %305 = zext i1 %304 to i64
  %306 = select i1 %304, ptr @.str.50, ptr @.str.51
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %290, ptr noundef %293, i32 noundef 2012, ptr noundef @.str.49, i32 noundef %294, ptr noundef %306)
  br label %307

307:                                              ; preds = %303, %284
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %369

308:                                              ; preds = %73, %53
  %309 = load ptr, ptr %4, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.qhT, ptr %309, i32 0, i32 220
  store i32 0, ptr %310, align 4, !tbaa !26
  %311 = load ptr, ptr %4, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.qhT, ptr %311, i32 0, i32 29
  %313 = load i32, ptr %312, align 8, !tbaa !27
  %314 = icmp sge i32 %313, 2
  br i1 %314, label %315, label %326

315:                                              ; preds = %308
  %316 = load ptr, ptr %4, align 8, !tbaa !5
  %317 = load ptr, ptr %4, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.qhT, ptr %317, i32 0, i32 158
  %319 = load ptr, ptr %318, align 8, !tbaa !28
  %320 = load ptr, ptr %6, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.facetT, ptr %320, i32 0, i32 14
  %322 = load i32, ptr %321, align 4, !tbaa !39
  %323 = load ptr, ptr %8, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.facetT, ptr %323, i32 0, i32 14
  %325 = load i32, ptr %324, align 4, !tbaa !39
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %316, ptr noundef %319, i32 noundef 2013, ptr noundef @.str.52, i32 noundef %322, i32 noundef %325)
  br label %326

326:                                              ; preds = %315, %308
  store i32 0, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %369

327:                                              ; preds = %197
  %328 = load ptr, ptr %4, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.qhT, ptr %328, i32 0, i32 29
  %330 = load i32, ptr %329, align 8, !tbaa !27
  %331 = icmp sge i32 %330, 2
  br i1 %331, label %332, label %347

332:                                              ; preds = %327
  %333 = load ptr, ptr %4, align 8, !tbaa !5
  %334 = load ptr, ptr %4, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.qhT, ptr %334, i32 0, i32 158
  %336 = load ptr, ptr %335, align 8, !tbaa !28
  %337 = load ptr, ptr %6, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.facetT, ptr %337, i32 0, i32 14
  %339 = load i32, ptr %338, align 4, !tbaa !39
  %340 = load ptr, ptr %7, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.facetT, ptr %340, i32 0, i32 14
  %342 = load i32, ptr %341, align 4, !tbaa !39
  %343 = load ptr, ptr %12, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.vertexT, ptr %343, i32 0, i32 4
  %345 = load i32, ptr %344, align 8, !tbaa !40
  %346 = load double, ptr %14, align 8, !tbaa !34
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %333, ptr noundef %336, i32 noundef 2014, ptr noundef @.str.53, i32 noundef %339, i32 noundef %342, i32 noundef %345, double noundef %346)
  br label %347

347:                                              ; preds = %332, %327
  store i32 0, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %369

348:                                              ; preds = %272
  %349 = load ptr, ptr %4, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.qhT, ptr %349, i32 0, i32 29
  %351 = load i32, ptr %350, align 8, !tbaa !27
  %352 = icmp sge i32 %351, 2
  br i1 %352, label %353, label %368

353:                                              ; preds = %348
  %354 = load ptr, ptr %4, align 8, !tbaa !5
  %355 = load ptr, ptr %4, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.qhT, ptr %355, i32 0, i32 158
  %357 = load ptr, ptr %356, align 8, !tbaa !28
  %358 = load ptr, ptr %6, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.facetT, ptr %358, i32 0, i32 14
  %360 = load i32, ptr %359, align 4, !tbaa !39
  %361 = load ptr, ptr %8, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.facetT, ptr %361, i32 0, i32 14
  %363 = load i32, ptr %362, align 4, !tbaa !39
  %364 = load ptr, ptr %12, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.vertexT, ptr %364, i32 0, i32 4
  %366 = load i32, ptr %365, align 8, !tbaa !40
  %367 = load double, ptr %14, align 8, !tbaa !34
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %354, ptr noundef %357, i32 noundef 2060, ptr noundef @.str.54, i32 noundef %360, i32 noundef %363, i32 noundef %366, double noundef %367)
  br label %368

368:                                              ; preds = %353, %348
  store i32 0, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %369

369:                                              ; preds = %368, %347, %326, %307, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %370 = load i32, ptr %3, align 4
  ret i32 %370
}

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 2456}
!12 = !{!"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, !14, 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, !15, i64 3272, !16, i64 3424}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"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}
!16 = !{!"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}
!17 = !{!12, !6, i64 2480}
!18 = !{!19, !6, i64 56}
!19 = !{!"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}
!20 = !{!19, !6, i64 80}
!21 = !{!7, !7, i64 0}
!22 = !{!19, !6, i64 24}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!12, !10, i64 180}
!26 = !{!12, !10, i64 2796}
!27 = !{!12, !10, i64 136}
!28 = !{!12, !6, i64 2424}
!29 = !{!12, !10, i64 2788}
!30 = !{!19, !6, i64 64}
!31 = !{!32, !10, i64 36}
!32 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40}
!33 = !{!32, !6, i64 16}
!34 = !{!13, !13, i64 0}
!35 = !{!12, !13, i64 1784}
!36 = distinct !{!36, !24}
!37 = distinct !{!37, !24}
!38 = distinct !{!38, !24}
!39 = !{!19, !10, i64 108}
!40 = !{!32, !10, i64 32}


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

%union.setelemT = type { ptr }

@.str.48 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [80 x i8], align 1

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

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

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 2456
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  br label %40

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 2480
  %10 = load ptr, ptr %9, align 8, !tbaa !15
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %.critedge, label %.preheader128

.preheader128:                                    ; preds = %8, %25
  %.099 = phi ptr [ %12, %25 ], [ %10, %8 ]
  %11 = getelementptr inbounds i8, ptr %.099, i64 56
  %12 = load ptr, ptr %11, align 8, !tbaa !16
  %.not106 = icmp eq ptr %12, null
  br i1 %.not106, label %.critedge, label %13

13:                                               ; preds = %.preheader128
  %14 = getelementptr inbounds i8, ptr %.099, i64 80
  %15 = load ptr, ptr %14, align 8, !tbaa !18
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !19
  %18 = getelementptr inbounds i8, ptr %17, i64 112
  %19 = load i32, ptr %18, align 8
  %20 = and i32 %19, 8192
  %.not109 = icmp eq i32 %20, 0
  br i1 %.not109, label %121, label %21

21:                                               ; preds = %13
  %22 = getelementptr inbounds i8, ptr %.099, i64 112
  %23 = load i32, ptr %22, align 8
  %24 = and i32 %23, 2162688
  %or.cond = icmp eq i32 %24, 0
  br i1 %or.cond, label %25, label %121

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %.099, i64 24
  %27 = load ptr, ptr %26, align 8, !tbaa !20
  %.not112 = icmp eq ptr %27, null
  br i1 %.not112, label %121, label %.preheader128, !llvm.loop !21

.critedge:                                        ; preds = %.preheader128, %8
  %28 = getelementptr inbounds i8, ptr %0, i64 180
  %29 = load i32, ptr %28, align 4, !tbaa !23
  %.not107 = icmp eq i32 %29, 0
  br i1 %.not107, label %40, label %30

30:                                               ; preds = %.critedge
  %31 = getelementptr inbounds i8, ptr %0, i64 2796
  %32 = load i32, ptr %31, align 4, !tbaa !24
  %.not108 = icmp eq i32 %32, 0
  br i1 %.not108, label %40, label %33

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %0, i64 136
  %35 = load i32, ptr %34, align 8, !tbaa !25
  %36 = icmp sgt i32 %35, 1
  br i1 %36, label %37, label %159

37:                                               ; preds = %33
  %38 = getelementptr inbounds i8, ptr %0, i64 2424
  %39 = load ptr, ptr %38, align 8, !tbaa !26
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %39, i32 noundef 2011, ptr noundef nonnull @.str.48) #3
  br label %159

40:                                               ; preds = %.critedge, %30, %5
  %.096 = phi ptr [ %7, %5 ], [ %10, %30 ], [ %10, %.critedge ]
  %.not113 = icmp eq ptr %.096, null
  br i1 %.not113, label %.critedge2, label %.preheader127

.preheader127:                                    ; preds = %40
  %41 = getelementptr inbounds i8, ptr %0, i64 2788
  %42 = getelementptr inbounds i8, ptr %0, i64 3936
  %43 = getelementptr inbounds i8, ptr %0, i64 1784
  %44 = getelementptr inbounds i8, ptr %0, i64 2796
  %45 = getelementptr inbounds i8, ptr %0, i64 180
  %46 = icmp eq i32 %1, 0
  br label %47

47:                                               ; preds = %.preheader127, %.thread
  %.1100142 = phi ptr [ %.096, %.preheader127 ], [ %110, %.thread ]
  %48 = getelementptr inbounds i8, ptr %.1100142, i64 56
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  %.not115 = icmp eq ptr %49, null
  br i1 %.not115, label %.critedge2, label %50

50:                                               ; preds = %47
  %51 = load i32, ptr %41, align 4, !tbaa !27
  %52 = add i32 %51, 1
  store i32 %52, ptr %41, align 4, !tbaa !27
  %53 = getelementptr inbounds i8, ptr %.1100142, i64 80
  %54 = load ptr, ptr %53, align 8, !tbaa !18
  %.not118 = icmp eq ptr %54, null
  br i1 %.not118, label %.thread, label %55

55:                                               ; preds = %50
  %56 = getelementptr inbounds i8, ptr %54, i64 8
  %57 = load ptr, ptr %56, align 8, !tbaa !19
  %58 = call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef nonnull %54) #3
  %59 = icmp sgt i32 %58, 0
  br i1 %59, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %55
  %60 = getelementptr inbounds i8, ptr %.1100142, i64 64
  %wide.trip.count = zext nneg i32 %58 to i64
  br label %61

61:                                               ; preds = %.lr.ph, %84
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %84 ]
  %.097140 = phi ptr [ null, %.lr.ph ], [ %.1, %84 ]
  %.098139 = phi ptr [ %57, %.lr.ph ], [ %88, %84 ]
  %62 = trunc nuw nsw i64 %indvars.iv to i32
  %63 = or i32 %62, %1
  %or.cond.not = icmp eq i32 %63, 0
  br i1 %or.cond.not, label %84, label %64

64:                                               ; preds = %61
  %65 = load ptr, ptr %60, align 8, !tbaa !28
  %66 = getelementptr inbounds i8, ptr %65, i64 8
  %67 = getelementptr inbounds [1 x %union.setelemT], ptr %66, i64 0, i64 %indvars.iv
  %68 = load ptr, ptr %67, align 8, !tbaa !19
  %69 = load i32, ptr %41, align 4, !tbaa !27
  %70 = getelementptr inbounds i8, ptr %68, i64 36
  store i32 %69, ptr %70, align 4, !tbaa !29
  %71 = load i32, ptr %42, align 8, !tbaa !19
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %42, align 8, !tbaa !19
  %73 = getelementptr inbounds i8, ptr %68, i64 16
  %74 = load ptr, ptr %73, align 8, !tbaa !31
  call void @qh_distplane(ptr noundef %0, ptr noundef %74, ptr noundef %.098139, ptr noundef nonnull %3) #3
  %75 = load double, ptr %3, align 8, !tbaa !32
  %76 = load double, ptr %43, align 8, !tbaa !33
  %77 = fmul double %76, -2.000000e+00
  %78 = fcmp ult double %75, %77
  br i1 %78, label %84, label %79

79:                                               ; preds = %64
  store i32 0, ptr %44, align 4, !tbaa !24
  %80 = load i32, ptr %45, align 4, !tbaa !23
  %81 = icmp eq i32 %80, 0
  %82 = fcmp ogt double %75, %76
  %83 = or i1 %82, %81
  %or.cond125 = or i1 %4, %83
  br i1 %or.cond125, label %133, label %84

84:                                               ; preds = %79, %61, %64
  %.1 = phi ptr [ %.097140, %64 ], [ %.098139, %61 ], [ %.097140, %79 ]
  %85 = load ptr, ptr %53, align 8, !tbaa !18
  %86 = getelementptr inbounds i8, ptr %85, i64 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %87 = getelementptr inbounds [1 x %union.setelemT], ptr %86, i64 0, i64 %indvars.iv.next
  %88 = load ptr, ptr %87, align 8, !tbaa !19
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %61, !llvm.loop !34

._crit_edge:                                      ; preds = %84
  %89 = icmp ne ptr %.1, null
  %or.cond7 = select i1 %46, i1 %89, i1 false
  br i1 %or.cond7, label %90, label %.thread

90:                                               ; preds = %._crit_edge
  %91 = getelementptr inbounds i8, ptr %.1, i64 64
  %92 = load ptr, ptr %91, align 8, !tbaa !28
  %.not119 = icmp eq ptr %92, null
  br i1 %.not119, label %.thread, label %.preheader

.preheader:                                       ; preds = %90, %94
  %.pn = phi ptr [ %.0, %94 ], [ %92, %90 ]
  %.0 = getelementptr inbounds i8, ptr %.pn, i64 8
  %93 = load ptr, ptr %.0, align 8, !tbaa !35
  %.not120 = icmp eq ptr %93, null
  br i1 %.not120, label %.thread, label %94

94:                                               ; preds = %.preheader
  %95 = getelementptr inbounds i8, ptr %93, i64 36
  %96 = load i32, ptr %95, align 4, !tbaa !29
  %97 = load i32, ptr %41, align 4, !tbaa !27
  %.not121 = icmp eq i32 %96, %97
  br i1 %.not121, label %.preheader, label %98, !llvm.loop !36

98:                                               ; preds = %94
  %99 = load i32, ptr %42, align 8, !tbaa !19
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %42, align 8, !tbaa !19
  %101 = getelementptr inbounds i8, ptr %93, i64 16
  %102 = load ptr, ptr %101, align 8, !tbaa !31
  call void @qh_distplane(ptr noundef nonnull %0, ptr noundef %102, ptr noundef nonnull %.1100142, ptr noundef nonnull %3) #3
  %103 = load double, ptr %3, align 8, !tbaa !32
  %104 = load double, ptr %43, align 8, !tbaa !33
  %105 = fmul double %104, -2.000000e+00
  %106 = fcmp ult double %103, %105
  br i1 %106, label %.thread, label %107

107:                                              ; preds = %98
  store i32 0, ptr %44, align 4, !tbaa !24
  %108 = load i32, ptr %45, align 4, !tbaa !23
  %.not122 = icmp eq i32 %108, 0
  %109 = fcmp ogt double %103, %104
  %or.cond126 = or i1 %109, %.not122
  br i1 %or.cond126, label %146, label %.thread

.thread:                                          ; preds = %.preheader, %55, %107, %50, %._crit_edge, %98, %90
  %110 = load ptr, ptr %48, align 8, !tbaa !16
  %.not114 = icmp eq ptr %110, null
  br i1 %.not114, label %.critedge2, label %47, !llvm.loop !37

.critedge2:                                       ; preds = %47, %.thread, %40
  %111 = getelementptr inbounds i8, ptr %0, i64 136
  %112 = load i32, ptr %111, align 8, !tbaa !25
  %113 = icmp sgt i32 %112, 1
  br i1 %113, label %114, label %159

114:                                              ; preds = %.critedge2
  %115 = getelementptr inbounds i8, ptr %0, i64 2424
  %116 = load ptr, ptr %115, align 8, !tbaa !26
  %117 = getelementptr inbounds i8, ptr %0, i64 180
  %118 = load i32, ptr %117, align 4, !tbaa !23
  %119 = icmp eq i32 %118, 0
  %.not117 = or i1 %4, %119
  %120 = select i1 %.not117, ptr @.str.51, ptr @.str.50
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %116, i32 noundef 2012, ptr noundef nonnull @.str.49, i32 noundef %1, ptr noundef nonnull %120) #3
  br label %159

121:                                              ; preds = %21, %25, %13
  %122 = getelementptr inbounds i8, ptr %0, i64 2796
  store i32 0, ptr %122, align 4, !tbaa !24
  %123 = getelementptr inbounds i8, ptr %0, i64 136
  %124 = load i32, ptr %123, align 8, !tbaa !25
  %125 = icmp sgt i32 %124, 1
  br i1 %125, label %126, label %159

126:                                              ; preds = %121
  %127 = getelementptr inbounds i8, ptr %0, i64 2424
  %128 = load ptr, ptr %127, align 8, !tbaa !26
  %129 = getelementptr inbounds i8, ptr %.099, i64 108
  %130 = load i32, ptr %129, align 4, !tbaa !38
  %131 = getelementptr inbounds i8, ptr %17, i64 108
  %132 = load i32, ptr %131, align 4, !tbaa !38
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %128, i32 noundef 2013, ptr noundef nonnull @.str.52, i32 noundef %130, i32 noundef %132) #3
  br label %159

133:                                              ; preds = %79
  %134 = getelementptr inbounds i8, ptr %0, i64 136
  %135 = load i32, ptr %134, align 8, !tbaa !25
  %136 = icmp sgt i32 %135, 1
  br i1 %136, label %137, label %159

137:                                              ; preds = %133
  %138 = getelementptr inbounds i8, ptr %0, i64 2424
  %139 = load ptr, ptr %138, align 8, !tbaa !26
  %140 = getelementptr inbounds i8, ptr %.1100142, i64 108
  %141 = load i32, ptr %140, align 4, !tbaa !38
  %142 = getelementptr inbounds i8, ptr %.098139, i64 108
  %143 = load i32, ptr %142, align 4, !tbaa !38
  %144 = getelementptr inbounds i8, ptr %68, i64 32
  %145 = load i32, ptr %144, align 8, !tbaa !39
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %139, i32 noundef 2014, ptr noundef nonnull @.str.53, i32 noundef %141, i32 noundef %143, i32 noundef %145, double noundef %75) #3
  br label %159

146:                                              ; preds = %107
  %147 = getelementptr inbounds i8, ptr %0, i64 136
  %148 = load i32, ptr %147, align 8, !tbaa !25
  %149 = icmp sgt i32 %148, 1
  br i1 %149, label %150, label %159

150:                                              ; preds = %146
  %151 = getelementptr inbounds i8, ptr %0, i64 2424
  %152 = load ptr, ptr %151, align 8, !tbaa !26
  %153 = getelementptr inbounds i8, ptr %.1100142, i64 108
  %154 = load i32, ptr %153, align 4, !tbaa !38
  %155 = getelementptr inbounds i8, ptr %.1, i64 108
  %156 = load i32, ptr %155, align 4, !tbaa !38
  %157 = getelementptr inbounds i8, ptr %93, i64 32
  %158 = load i32, ptr %157, align 8, !tbaa !39
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %152, i32 noundef 2060, ptr noundef nonnull @.str.54, i32 noundef %154, i32 noundef %156, i32 noundef %158, double noundef %103) #3
  br label %159

159:                                              ; preds = %146, %150, %133, %137, %121, %126, %.critedge2, %114, %33, %37
  %.094 = phi i32 [ 1, %37 ], [ 1, %33 ], [ 1, %114 ], [ 1, %.critedge2 ], [ 0, %126 ], [ 0, %121 ], [ 0, %137 ], [ 0, %133 ], [ 0, %150 ], [ 0, %146 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret i32 %.094
}

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

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

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

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

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

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

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


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