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

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

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

@qh_qh = external global %struct.qhT, align 8
@.str.60 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [115 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [115 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

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

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

16:                                               ; preds = %2
  %17 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %18 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 167), align 8, !tbaa !16
  %19 = getelementptr inbounds %struct.facetT, ptr %18, i32 0, i32 14
  %20 = load i32, ptr %19, align 4, !tbaa !17
  %21 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !19
  %22 = getelementptr inbounds %struct.facetT, ptr %21, i32 0, i32 14
  %23 = load i32, ptr %22, align 4, !tbaa !17
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %17, i32 noundef 3042, ptr noundef @.str.60, i32 noundef %20, i32 noundef %23)
  br label %24

24:                                               ; preds = %16, %2
  %25 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 49), align 8, !tbaa !20
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %34

27:                                               ; preds = %24
  %28 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 6), align 8, !tbaa !21
  %29 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 200), align 8, !tbaa !22
  %30 = fcmp olt double %28, %29
  br i1 %30, label %31, label %33

31:                                               ; preds = %27
  %32 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 200), align 8, !tbaa !22
  store double %32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 6), align 8, !tbaa !21
  br label %33

33:                                               ; preds = %31, %27
  br label %34

34:                                               ; preds = %33, %24
  %35 = load ptr, ptr %4, align 8, !tbaa !9
  store i32 0, ptr %35, align 4, !tbaa !5
  %36 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 167), align 8, !tbaa !16
  store ptr %36, ptr %5, align 8, !tbaa !9
  br label %37

37:                                               ; preds = %160, %34
  %38 = load ptr, ptr %5, align 8, !tbaa !9
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %47

40:                                               ; preds = %37
  %41 = load ptr, ptr %5, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.facetT, ptr %41, i32 0, i32 15
  %43 = load i32, ptr %42, align 8
  %44 = lshr i32 %43, 11
  %45 = and i32 %44, 1
  %46 = icmp ne i32 %45, 0
  br label %47

47:                                               ; preds = %40, %37
  %48 = phi i1 [ false, %37 ], [ %46, %40 ]
  br i1 %48, label %49, label %164

49:                                               ; preds = %47
  %50 = load ptr, ptr %5, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct.facetT, ptr %50, i32 0, i32 11
  %52 = load ptr, ptr %51, align 8, !tbaa !23
  %53 = icmp ne ptr %52, null
  br i1 %53, label %60, label %54

54:                                               ; preds = %49
  %55 = load ptr, ptr %5, align 8, !tbaa !9
  %56 = getelementptr inbounds %struct.facetT, ptr %55, i32 0, i32 12
  %57 = load ptr, ptr %56, align 8, !tbaa !24
  %58 = icmp ne ptr %57, null
  br i1 %58, label %60, label %59

59:                                               ; preds = %54
  br label %160

60:                                               ; preds = %54, %49
  %61 = load ptr, ptr %5, align 8, !tbaa !9
  %62 = call ptr @qh_getreplacement(ptr noundef %61)
  store ptr %62, ptr %6, align 8, !tbaa !9
  %63 = load ptr, ptr %6, align 8, !tbaa !9
  %64 = icmp ne ptr %63, null
  br i1 %64, label %67, label %65

65:                                               ; preds = %60
  %66 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !19
  store ptr %66, ptr %6, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %65, %60
  %68 = load ptr, ptr %6, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct.facetT, ptr %68, i32 0, i32 7
  %70 = load ptr, ptr %69, align 8, !tbaa !25
  %71 = icmp ne ptr %70, null
  br i1 %71, label %74, label %72

72:                                               ; preds = %67
  %73 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %73, i32 noundef 6170, ptr noundef @.str.61)
  call void @qh_errexit(i32 noundef 7, ptr noundef null, ptr noundef null)
  br label %74

74:                                               ; preds = %72, %67
  %75 = load ptr, ptr %5, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.facetT, ptr %75, i32 0, i32 11
  %77 = load ptr, ptr %76, align 8, !tbaa !23
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %111

79:                                               ; preds = %74
  %80 = load ptr, ptr %5, align 8, !tbaa !9
  %81 = getelementptr inbounds %struct.facetT, ptr %80, i32 0, i32 11
  %82 = load ptr, ptr %81, align 8, !tbaa !23
  %83 = call i32 @qh_setsize(ptr noundef %82)
  store i32 %83, ptr %11, align 4, !tbaa !5
  %84 = load i32, ptr %11, align 4, !tbaa !5
  %85 = load ptr, ptr %4, align 8, !tbaa !9
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = add nsw i32 %86, %84
  store i32 %87, ptr %85, align 4, !tbaa !5
  %88 = load i32, ptr %11, align 4, !tbaa !5
  %89 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 180), align 8, !tbaa !26
  %90 = sub nsw i32 %89, %88
  store i32 %90, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 180), align 8, !tbaa !26
  store ptr null, ptr %7, align 8, !tbaa !9
  %91 = load ptr, ptr %5, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.facetT, ptr %91, i32 0, i32 11
  %93 = load ptr, ptr %92, align 8, !tbaa !23
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %110

95:                                               ; preds = %79
  %96 = load ptr, ptr %5, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.facetT, ptr %96, i32 0, i32 11
  %98 = load ptr, ptr %97, align 8, !tbaa !23
  %99 = getelementptr inbounds %struct.setT, ptr %98, i32 0, i32 1
  %100 = getelementptr inbounds [1 x %union.setelemT], ptr %99, i64 0, i64 0
  store ptr %100, ptr %8, align 8, !tbaa !9
  br label %101

101:                                              ; preds = %106, %95
  %102 = load ptr, ptr %8, align 8, !tbaa !9
  %103 = getelementptr inbounds ptr, ptr %102, i32 1
  store ptr %103, ptr %8, align 8, !tbaa !9
  %104 = load ptr, ptr %102, align 8, !tbaa !9
  store ptr %104, ptr %7, align 8, !tbaa !9
  %105 = icmp ne ptr %104, null
  br i1 %105, label %106, label %109

106:                                              ; preds = %101
  %107 = load ptr, ptr %7, align 8, !tbaa !9
  %108 = load ptr, ptr %6, align 8, !tbaa !9
  call void @qh_partitionpoint(ptr noundef %107, ptr noundef %108)
  br label %101, !llvm.loop !27

109:                                              ; preds = %101
  br label %110

110:                                              ; preds = %109, %79
  br label %111

111:                                              ; preds = %110, %74
  %112 = load ptr, ptr %5, align 8, !tbaa !9
  %113 = getelementptr inbounds %struct.facetT, ptr %112, i32 0, i32 12
  %114 = load ptr, ptr %113, align 8, !tbaa !24
  %115 = icmp ne ptr %114, null
  br i1 %115, label %116, label %159

116:                                              ; preds = %111
  %117 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 31), align 8, !tbaa !29
  %118 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 32), align 4, !tbaa !30
  %119 = add i32 %117, %118
  %120 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 109), align 4, !tbaa !31
  %121 = add i32 %119, %120
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %159

123:                                              ; preds = %116
  %124 = load ptr, ptr %5, align 8, !tbaa !9
  %125 = getelementptr inbounds %struct.facetT, ptr %124, i32 0, i32 12
  %126 = load ptr, ptr %125, align 8, !tbaa !24
  %127 = call i32 @qh_setsize(ptr noundef %126)
  store i32 %127, ptr %11, align 4, !tbaa !5
  %128 = load i32, ptr %11, align 4, !tbaa !5
  %129 = load i32, ptr %10, align 4, !tbaa !5
  %130 = add nsw i32 %129, %128
  store i32 %130, ptr %10, align 4, !tbaa !5
  store ptr null, ptr %7, align 8, !tbaa !9
  %131 = load ptr, ptr %5, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.facetT, ptr %131, i32 0, i32 12
  %133 = load ptr, ptr %132, align 8, !tbaa !24
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %158

135:                                              ; preds = %123
  %136 = load ptr, ptr %5, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.facetT, ptr %136, i32 0, i32 12
  %138 = load ptr, ptr %137, align 8, !tbaa !24
  %139 = getelementptr inbounds %struct.setT, ptr %138, i32 0, i32 1
  %140 = getelementptr inbounds [1 x %union.setelemT], ptr %139, i64 0, i64 0
  store ptr %140, ptr %8, align 8, !tbaa !9
  br label %141

141:                                              ; preds = %156, %135
  %142 = load ptr, ptr %8, align 8, !tbaa !9
  %143 = getelementptr inbounds ptr, ptr %142, i32 1
  store ptr %143, ptr %8, align 8, !tbaa !9
  %144 = load ptr, ptr %142, align 8, !tbaa !9
  store ptr %144, ptr %7, align 8, !tbaa !9
  %145 = icmp ne ptr %144, null
  br i1 %145, label %146, label %157

146:                                              ; preds = %141
  %147 = load i32, ptr %3, align 4, !tbaa !5
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %152

149:                                              ; preds = %146
  %150 = load ptr, ptr %7, align 8, !tbaa !9
  %151 = load ptr, ptr %6, align 8, !tbaa !9
  call void @qh_partitionpoint(ptr noundef %150, ptr noundef %151)
  br label %156

152:                                              ; preds = %146
  %153 = load ptr, ptr %7, align 8, !tbaa !9
  %154 = load ptr, ptr %6, align 8, !tbaa !9
  %155 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 204), align 8, !tbaa !32
  call void @qh_partitioncoplanar(ptr noundef %153, ptr noundef %154, ptr noundef null, i32 noundef %155)
  br label %156

156:                                              ; preds = %152, %149
  br label %141, !llvm.loop !33

157:                                              ; preds = %141
  br label %158

158:                                              ; preds = %157, %123
  br label %159

159:                                              ; preds = %158, %116, %111
  br label %160

160:                                              ; preds = %159, %59
  %161 = load ptr, ptr %5, align 8, !tbaa !9
  %162 = getelementptr inbounds %struct.facetT, ptr %161, i32 0, i32 7
  %163 = load ptr, ptr %162, align 8, !tbaa !25
  store ptr %163, ptr %5, align 8, !tbaa !9
  br label %37, !llvm.loop !34

164:                                              ; preds = %47
  %165 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 226), align 8, !tbaa !35
  %166 = call i32 @qh_setsize(ptr noundef %165)
  store i32 %166, ptr %9, align 4, !tbaa !5
  %167 = load i32, ptr %9, align 4, !tbaa !5
  %168 = icmp sgt i32 %167, 0
  br i1 %168, label %169, label %241

169:                                              ; preds = %164
  %170 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !11
  %171 = icmp sge i32 %170, 3
  br i1 %171, label %172, label %182

172:                                              ; preds = %169
  %173 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %174 = load i32, ptr %9, align 4, !tbaa !5
  %175 = load i32, ptr %3, align 4, !tbaa !5
  %176 = icmp ne i32 %175, 0
  %177 = xor i1 %176, true
  %178 = zext i1 %177 to i32
  %179 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !19
  %180 = getelementptr inbounds %struct.facetT, ptr %179, i32 0, i32 14
  %181 = load i32, ptr %180, align 4, !tbaa !17
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %173, i32 noundef 3049, ptr noundef @.str.62, i32 noundef %174, i32 noundef %178, i32 noundef %181)
  br label %182

182:                                              ; preds = %172, %169
  store ptr null, ptr %12, align 8, !tbaa !9
  %183 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 226), align 8, !tbaa !35
  %184 = icmp ne ptr %183, null
  br i1 %184, label %185, label %240

185:                                              ; preds = %182
  %186 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 226), align 8, !tbaa !35
  %187 = getelementptr inbounds %struct.setT, ptr %186, i32 0, i32 1
  %188 = getelementptr inbounds [1 x %union.setelemT], ptr %187, i64 0, i64 0
  store ptr %188, ptr %13, align 8, !tbaa !9
  br label %189

189:                                              ; preds = %238, %185
  %190 = load ptr, ptr %13, align 8, !tbaa !9
  %191 = getelementptr inbounds ptr, ptr %190, i32 1
  store ptr %191, ptr %13, align 8, !tbaa !9
  %192 = load ptr, ptr %190, align 8, !tbaa !9
  store ptr %192, ptr %12, align 8, !tbaa !9
  %193 = icmp ne ptr %192, null
  br i1 %193, label %194, label %239

194:                                              ; preds = %189
  %195 = load ptr, ptr %12, align 8, !tbaa !9
  %196 = getelementptr inbounds %struct.vertexT, ptr %195, i32 0, i32 2
  %197 = load ptr, ptr %196, align 8, !tbaa !36
  %198 = icmp ne ptr %197, null
  br i1 %198, label %199, label %238

199:                                              ; preds = %194
  %200 = load ptr, ptr %12, align 8, !tbaa !9
  %201 = getelementptr inbounds %struct.vertexT, ptr %200, i32 0, i32 6
  %202 = load i8, ptr %201, align 8
  %203 = lshr i8 %202, 5
  %204 = and i8 %203, 1
  %205 = zext i8 %204 to i32
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %238, label %207

207:                                              ; preds = %199
  %208 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !19
  %209 = icmp ne ptr %208, null
  br i1 %209, label %210, label %214

210:                                              ; preds = %207
  %211 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !19
  %212 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 164), align 8, !tbaa !38
  %213 = icmp eq ptr %211, %212
  br i1 %213, label %214, label %219

214:                                              ; preds = %210, %207
  %215 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %216 = load ptr, ptr %12, align 8, !tbaa !9
  %217 = getelementptr inbounds %struct.vertexT, ptr %216, i32 0, i32 4
  %218 = load i32, ptr %217, align 8, !tbaa !39
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %215, i32 noundef 6284, ptr noundef @.str.63, i32 noundef %218)
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %219

219:                                              ; preds = %214, %210
  %220 = load i32, ptr %3, align 4, !tbaa !5
  %221 = icmp ne i32 %220, 0
  br i1 %221, label %222, label %227

222:                                              ; preds = %219
  %223 = load ptr, ptr %12, align 8, !tbaa !9
  %224 = getelementptr inbounds %struct.vertexT, ptr %223, i32 0, i32 2
  %225 = load ptr, ptr %224, align 8, !tbaa !36
  %226 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !19
  call void @qh_partitionpoint(ptr noundef %225, ptr noundef %226)
  br label %232

227:                                              ; preds = %219
  %228 = load ptr, ptr %12, align 8, !tbaa !9
  %229 = getelementptr inbounds %struct.vertexT, ptr %228, i32 0, i32 2
  %230 = load ptr, ptr %229, align 8, !tbaa !36
  %231 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !19
  call void @qh_partitioncoplanar(ptr noundef %230, ptr noundef %231, ptr noundef null, i32 noundef 1)
  br label %232

232:                                              ; preds = %227, %222
  %233 = load ptr, ptr %12, align 8, !tbaa !9
  %234 = getelementptr inbounds %struct.vertexT, ptr %233, i32 0, i32 6
  %235 = load i8, ptr %234, align 8
  %236 = and i8 %235, -33
  %237 = or i8 %236, 32
  store i8 %237, ptr %234, align 8
  br label %238

238:                                              ; preds = %232, %199, %194
  br label %189, !llvm.loop !40

239:                                              ; preds = %189
  br label %240

240:                                              ; preds = %239, %182
  br label %241

241:                                              ; preds = %240, %164
  %242 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !11
  %243 = icmp sge i32 %242, 1
  br i1 %243, label %244, label %250

244:                                              ; preds = %241
  %245 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %246 = load ptr, ptr %4, align 8, !tbaa !9
  %247 = load i32, ptr %246, align 4, !tbaa !5
  %248 = load i32, ptr %10, align 4, !tbaa !5
  %249 = load i32, ptr %9, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %245, i32 noundef 1043, ptr noundef @.str.64, i32 noundef %247, i32 noundef %248, i32 noundef %249)
  br label %250

250:                                              ; preds = %244, %241
  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 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

declare i32 @qh_setsize(ptr noundef) #1

declare void @qh_errexit(i32 noundef, 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
declare dso_local void @qh_partitioncoplanar(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

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

declare ptr @qh_getreplacement(ptr noundef) #1

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

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

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


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

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@.str.60 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [115 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [115 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_partitionvisible(i32 noundef %0, ptr nocapture noundef %1) local_unnamed_addr #1 {
  %3 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %4 = icmp sgt i32 %3, 2
  br i1 %4, label %5, label %13

5:                                                ; preds = %2
  %6 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %7 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2488), align 8, !tbaa !14
  %8 = getelementptr inbounds i8, ptr %7, i64 108
  %9 = load i32, ptr %8, align 4, !tbaa !15
  %10 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !17
  %11 = getelementptr inbounds i8, ptr %10, i64 108
  %12 = load i32, ptr %11, align 4, !tbaa !15
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %6, i32 noundef 3042, ptr noundef nonnull @.str.60, i32 noundef %9, i32 noundef %12) #2
  br label %13

13:                                               ; preds = %5, %2
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 240), align 8, !tbaa !18
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %20, label %15

15:                                               ; preds = %13
  %16 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 24), align 8, !tbaa !19
  %17 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2688), align 8, !tbaa !20
  %18 = fcmp olt double %16, %17
  br i1 %18, label %19, label %20

19:                                               ; preds = %15
  store double %17, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 24), align 8, !tbaa !19
  br label %20

20:                                               ; preds = %15, %19, %13
  store i32 0, ptr %1, align 4, !tbaa !21
  %.04596 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2488), align 8, !tbaa !22
  %.not6197 = icmp eq ptr %.04596, null
  br i1 %.not6197, label %.critedge, label %.lr.ph100

.lr.ph100:                                        ; preds = %20
  %.not83 = icmp eq i32 %0, 0
  br label %21

21:                                               ; preds = %.lr.ph100, %.loopexit86
  %.04599 = phi ptr [ %.04596, %.lr.ph100 ], [ %.045, %.loopexit86 ]
  %.04498 = phi i32 [ 0, %.lr.ph100 ], [ %.1, %.loopexit86 ]
  %22 = getelementptr inbounds i8, ptr %.04599, i64 112
  %23 = load i32, ptr %22, align 8
  %24 = and i32 %23, 2048
  %.not62 = icmp eq i32 %24, 0
  br i1 %.not62, label %.critedge, label %25

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %.04599, i64 88
  %27 = load ptr, ptr %26, align 8, !tbaa !23
  %.not70 = icmp eq ptr %27, null
  br i1 %.not70, label %28, label %31

28:                                               ; preds = %25
  %29 = getelementptr inbounds i8, ptr %.04599, i64 96
  %30 = load ptr, ptr %29, align 8, !tbaa !24
  %.not71 = icmp eq ptr %30, null
  br i1 %.not71, label %.loopexit86, label %31

31:                                               ; preds = %28, %25
  %32 = tail call ptr @qh_getreplacement(ptr noundef nonnull %.04599) #2
  %.not72 = icmp eq ptr %32, null
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8
  %spec.select = select i1 %.not72, ptr %33, ptr %32
  %34 = getelementptr inbounds i8, ptr %spec.select, i64 56
  %35 = load ptr, ptr %34, align 8, !tbaa !25
  %.not73 = icmp eq ptr %35, null
  br i1 %.not73, label %36, label %38

36:                                               ; preds = %31
  %37 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %37, i32 noundef 6170, ptr noundef nonnull @.str.61) #2
  tail call void @qh_errexit(i32 noundef 7, ptr noundef null, ptr noundef null) #2
  br label %38

38:                                               ; preds = %36, %31
  %39 = load ptr, ptr %26, align 8, !tbaa !23
  %.not74 = icmp eq ptr %39, null
  br i1 %.not74, label %.loopexit88, label %40

40:                                               ; preds = %38
  %41 = tail call i32 @qh_setsize(ptr noundef nonnull %39) #2
  %42 = load i32, ptr %1, align 4, !tbaa !21
  %43 = add nsw i32 %42, %41
  store i32 %43, ptr %1, align 4, !tbaa !21
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2576), align 8, !tbaa !26
  %45 = sub nsw i32 %44, %41
  store i32 %45, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2576), align 8, !tbaa !26
  %46 = load ptr, ptr %26, align 8, !tbaa !23
  %.not75 = icmp eq ptr %46, null
  br i1 %.not75, label %.loopexit88, label %.preheader87

.preheader87:                                     ; preds = %40
  %.04689 = getelementptr inbounds i8, ptr %46, i64 8
  %47 = load ptr, ptr %.04689, align 8, !tbaa !22
  %.not7790 = icmp eq ptr %47, null
  br i1 %.not7790, label %.loopexit88, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader87, %.lr.ph
  %48 = phi ptr [ %49, %.lr.ph ], [ %47, %.preheader87 ]
  %.04691 = phi ptr [ %.046, %.lr.ph ], [ %.04689, %.preheader87 ]
  tail call void @qh_partitionpoint(ptr noundef nonnull %48, ptr noundef %spec.select)
  %.046 = getelementptr inbounds i8, ptr %.04691, i64 8
  %49 = load ptr, ptr %.046, align 8, !tbaa !22
  %.not77 = icmp eq ptr %49, null
  br i1 %.not77, label %.loopexit88, label %.lr.ph, !llvm.loop !27

.loopexit88:                                      ; preds = %.lr.ph, %.preheader87, %40, %38
  %50 = getelementptr inbounds i8, ptr %.04599, i64 96
  %51 = load ptr, ptr %50, align 8, !tbaa !24
  %.not78 = icmp eq ptr %51, null
  br i1 %.not78, label %.loopexit86, label %52

52:                                               ; preds = %.loopexit88
  %53 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 144), align 8, !tbaa !29
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 148), align 4, !tbaa !30
  %55 = add i32 %54, %53
  %56 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 628), align 4, !tbaa !31
  %57 = sub i32 0, %56
  %.not79 = icmp eq i32 %55, %57
  br i1 %.not79, label %.loopexit86, label %58

58:                                               ; preds = %52
  %59 = tail call i32 @qh_setsize(ptr noundef nonnull %51) #2
  %60 = add nsw i32 %59, %.04498
  %61 = load ptr, ptr %50, align 8, !tbaa !24
  %.not80 = icmp eq ptr %61, null
  br i1 %.not80, label %.loopexit86, label %.preheader85

.preheader85:                                     ; preds = %58
  %.14792 = getelementptr inbounds i8, ptr %61, i64 8
  %62 = load ptr, ptr %.14792, align 8, !tbaa !22
  %.not8293 = icmp eq ptr %62, null
  br i1 %.not8293, label %.loopexit86, label %.lr.ph95

.lr.ph95:                                         ; preds = %.preheader85
  br i1 %.not83, label %.lr.ph95.split.us, label %.lr.ph95.split

.lr.ph95.split.us:                                ; preds = %.lr.ph95, %.lr.ph95.split.us
  %63 = phi ptr [ %65, %.lr.ph95.split.us ], [ %62, %.lr.ph95 ]
  %.14794.us = phi ptr [ %.147.us, %.lr.ph95.split.us ], [ %.14792, %.lr.ph95 ]
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !32
  tail call void @qh_partitioncoplanar(ptr noundef nonnull %63, ptr noundef %spec.select, ptr noundef null, i32 noundef %64)
  %.147.us = getelementptr inbounds i8, ptr %.14794.us, i64 8
  %65 = load ptr, ptr %.147.us, align 8, !tbaa !22
  %.not82.us = icmp eq ptr %65, null
  br i1 %.not82.us, label %.loopexit86, label %.lr.ph95.split.us, !llvm.loop !33

.lr.ph95.split:                                   ; preds = %.lr.ph95, %.lr.ph95.split
  %66 = phi ptr [ %67, %.lr.ph95.split ], [ %62, %.lr.ph95 ]
  %.14794 = phi ptr [ %.147, %.lr.ph95.split ], [ %.14792, %.lr.ph95 ]
  tail call void @qh_partitionpoint(ptr noundef nonnull %66, ptr noundef %spec.select)
  %.147 = getelementptr inbounds i8, ptr %.14794, i64 8
  %67 = load ptr, ptr %.147, align 8, !tbaa !22
  %.not82 = icmp eq ptr %67, null
  br i1 %.not82, label %.loopexit86, label %.lr.ph95.split, !llvm.loop !33

.loopexit86:                                      ; preds = %.lr.ph95.split, %.lr.ph95.split.us, %.preheader85, %.loopexit88, %52, %58, %28
  %.1 = phi i32 [ %60, %58 ], [ %.04498, %52 ], [ %.04498, %.loopexit88 ], [ %.04498, %28 ], [ %60, %.preheader85 ], [ %60, %.lr.ph95.split.us ], [ %60, %.lr.ph95.split ]
  %68 = getelementptr inbounds i8, ptr %.04599, i64 56
  %.045 = load ptr, ptr %68, align 8, !tbaa !22
  %.not61 = icmp eq ptr %.045, null
  br i1 %.not61, label %.critedge, label %21, !llvm.loop !34

.critedge:                                        ; preds = %21, %.loopexit86, %20
  %.044.lcssa = phi i32 [ 0, %20 ], [ %.1, %.loopexit86 ], [ %.04498, %21 ]
  %69 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2840), align 8, !tbaa !35
  %70 = tail call i32 @qh_setsize(ptr noundef %69) #2
  %71 = icmp sgt i32 %70, 0
  br i1 %71, label %72, label %.loopexit

72:                                               ; preds = %.critedge
  %73 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %74 = icmp sgt i32 %73, 2
  br i1 %74, label %75, label %81

75:                                               ; preds = %72
  %76 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %.not63 = icmp eq i32 %0, 0
  %77 = zext i1 %.not63 to i32
  %78 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !17
  %79 = getelementptr inbounds i8, ptr %78, i64 108
  %80 = load i32, ptr %79, align 4, !tbaa !15
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %76, i32 noundef 3049, ptr noundef nonnull @.str.62, i32 noundef %70, i32 noundef %77, i32 noundef %80) #2
  br label %81

81:                                               ; preds = %75, %72
  %82 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2840), align 8, !tbaa !35
  %.not64 = icmp eq ptr %82, null
  br i1 %.not64, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %81
  %.0103 = getelementptr inbounds i8, ptr %82, i64 8
  %83 = load ptr, ptr %.0103, align 8, !tbaa !22
  %.not65104 = icmp eq ptr %83, null
  br i1 %.not65104, label %.loopexit, label %.lr.ph106

.lr.ph106:                                        ; preds = %.preheader
  %.not69 = icmp eq i32 %0, 0
  br i1 %.not69, label %.lr.ph106.split.us, label %.lr.ph106.split

.lr.ph106.split.us:                               ; preds = %.lr.ph106, %104
  %84 = phi ptr [ %105, %104 ], [ %83, %.lr.ph106 ]
  %.0105.us = phi ptr [ %.0.us, %104 ], [ %.0103, %.lr.ph106 ]
  %85 = getelementptr inbounds i8, ptr %84, i64 16
  %86 = load ptr, ptr %85, align 8, !tbaa !36
  %.not66.us = icmp eq ptr %86, null
  br i1 %.not66.us, label %104, label %87

87:                                               ; preds = %.lr.ph106.split.us
  %88 = getelementptr inbounds i8, ptr %84, i64 40
  %89 = load i8, ptr %88, align 8
  %90 = and i8 %89, 32
  %.not67.us = icmp eq i8 %90, 0
  br i1 %.not67.us, label %91, label %104

91:                                               ; preds = %87
  %92 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !17
  %.not68.us = icmp eq ptr %92, null
  %93 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2464), align 8
  %94 = icmp eq ptr %92, %93
  %or.cond.us = select i1 %.not68.us, i1 true, i1 %94
  br i1 %or.cond.us, label %95, label %99

95:                                               ; preds = %91
  %96 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %97 = getelementptr inbounds i8, ptr %84, i64 32
  %98 = load i32, ptr %97, align 8, !tbaa !38
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %96, i32 noundef 6284, ptr noundef nonnull @.str.63, i32 noundef %98) #2
  tail call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null) #2
  %.pre110 = load ptr, ptr %85, align 8, !tbaa !36
  %.pre111 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !17
  br label %99

99:                                               ; preds = %95, %91
  %100 = phi ptr [ %.pre111, %95 ], [ %92, %91 ]
  %101 = phi ptr [ %.pre110, %95 ], [ %86, %91 ]
  tail call void @qh_partitioncoplanar(ptr noundef %101, ptr noundef %100, ptr noundef null, i32 noundef 1)
  %102 = load i8, ptr %88, align 8
  %103 = or i8 %102, 32
  store i8 %103, ptr %88, align 8
  br label %104

104:                                              ; preds = %99, %87, %.lr.ph106.split.us
  %.0.us = getelementptr inbounds i8, ptr %.0105.us, i64 8
  %105 = load ptr, ptr %.0.us, align 8, !tbaa !22
  %.not65.us = icmp eq ptr %105, null
  br i1 %.not65.us, label %.loopexit, label %.lr.ph106.split.us, !llvm.loop !39

.lr.ph106.split:                                  ; preds = %.lr.ph106, %126
  %106 = phi ptr [ %127, %126 ], [ %83, %.lr.ph106 ]
  %.0105 = phi ptr [ %.0, %126 ], [ %.0103, %.lr.ph106 ]
  %107 = getelementptr inbounds i8, ptr %106, i64 16
  %108 = load ptr, ptr %107, align 8, !tbaa !36
  %.not66 = icmp eq ptr %108, null
  br i1 %.not66, label %126, label %109

109:                                              ; preds = %.lr.ph106.split
  %110 = getelementptr inbounds i8, ptr %106, i64 40
  %111 = load i8, ptr %110, align 8
  %112 = and i8 %111, 32
  %.not67 = icmp eq i8 %112, 0
  br i1 %.not67, label %113, label %126

113:                                              ; preds = %109
  %114 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !17
  %.not68 = icmp eq ptr %114, null
  %115 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2464), align 8
  %116 = icmp eq ptr %114, %115
  %or.cond = select i1 %.not68, i1 true, i1 %116
  br i1 %or.cond, label %117, label %121

117:                                              ; preds = %113
  %118 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %119 = getelementptr inbounds i8, ptr %106, i64 32
  %120 = load i32, ptr %119, align 8, !tbaa !38
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %118, i32 noundef 6284, ptr noundef nonnull @.str.63, i32 noundef %120) #2
  tail call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null) #2
  %.pre = load ptr, ptr %107, align 8, !tbaa !36
  %.pre109 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !17
  br label %121

121:                                              ; preds = %113, %117
  %122 = phi ptr [ %114, %113 ], [ %.pre109, %117 ]
  %123 = phi ptr [ %108, %113 ], [ %.pre, %117 ]
  tail call void @qh_partitionpoint(ptr noundef %123, ptr noundef %122)
  %124 = load i8, ptr %110, align 8
  %125 = or i8 %124, 32
  store i8 %125, ptr %110, align 8
  br label %126

126:                                              ; preds = %121, %109, %.lr.ph106.split
  %.0 = getelementptr inbounds i8, ptr %.0105, i64 8
  %127 = load ptr, ptr %.0, align 8, !tbaa !22
  %.not65 = icmp eq ptr %127, null
  br i1 %.not65, label %.loopexit, label %.lr.ph106.split, !llvm.loop !39

.loopexit:                                        ; preds = %126, %104, %.preheader, %81, %.critedge
  %128 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %129 = icmp sgt i32 %128, 0
  br i1 %129, label %130, label %133

130:                                              ; preds = %.loopexit
  %131 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %132 = load i32, ptr %1, align 4, !tbaa !21
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %131, i32 noundef 1043, ptr noundef nonnull @.str.64, i32 noundef %132, i32 noundef %.044.lcssa, i32 noundef %70) #2
  br label %133

133:                                              ; preds = %130, %.loopexit
  ret void
}

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #0

declare void @qh_errexit(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

declare ptr @qh_getreplacement(ptr noundef) local_unnamed_addr #0

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


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