; LLVM IR from Discngine/fpocket :: src/qhull/src/libqhull (merge)

; 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, double, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, double, i32, double, i32, 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, i32, double, double, double, 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, i32, ptr, double, double, double, double, [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, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, ptr, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, 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.qhstatT = type { [227 x %union.intrealT], [237 x i8], [227 x ptr], [227 x i16], [227 x i8], [227 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 }

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.10 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [72 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(i32 noundef %0) #1 {
  %2 = alloca i32, align 4
  %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 ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  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 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %14 = load i32, ptr %3, align 4, !tbaa !5
  %15 = icmp ne i32 %14, 0
  br i1 %15, label %16, label %18

16:                                               ; preds = %1
  %17 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 156), align 8, !tbaa !9
  store ptr %17, ptr %8, align 8, !tbaa !14
  br label %87

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

22:                                               ; preds = %18
  %23 = load ptr, ptr %8, align 8, !tbaa !14
  store ptr %23, ptr %4, align 8, !tbaa !14
  br label %24

24:                                               ; preds = %69, %22
  %25 = load ptr, ptr %4, align 8, !tbaa !14
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %32

27:                                               ; preds = %24
  %28 = load ptr, ptr %4, align 8, !tbaa !14
  %29 = getelementptr inbounds %struct.facetT, ptr %28, i32 0, i32 7
  %30 = load ptr, ptr %29, align 8, !tbaa !16
  %31 = icmp ne ptr %30, null
  br label %32

32:                                               ; preds = %27, %24
  %33 = phi i1 [ false, %24 ], [ %31, %27 ]
  br i1 %33, label %34, label %73

34:                                               ; preds = %32
  %35 = load ptr, ptr %4, align 8, !tbaa !14
  %36 = getelementptr inbounds %struct.facetT, ptr %35, i32 0, i32 10
  %37 = load ptr, ptr %36, align 8, !tbaa !18
  %38 = getelementptr inbounds %struct.setT, ptr %37, i32 0, i32 1
  %39 = getelementptr inbounds [1 x %union.setelemT], ptr %38, i64 0, i64 0
  %40 = load ptr, ptr %39, align 8, !tbaa !19
  store ptr %40, ptr %7, align 8, !tbaa !14
  %41 = load ptr, ptr %7, align 8, !tbaa !14
  %42 = getelementptr inbounds %struct.facetT, ptr %41, i32 0, i32 15
  %43 = load i32, ptr %42, align 8
  %44 = lshr i32 %43, 13
  %45 = and i32 %44, 1
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %48, label %47

47:                                               ; preds = %34
  br label %242

48:                                               ; preds = %34
  %49 = load ptr, ptr %4, align 8, !tbaa !14
  %50 = getelementptr inbounds %struct.facetT, ptr %49, i32 0, i32 15
  %51 = load i32, ptr %50, align 8
  %52 = lshr i32 %51, 16
  %53 = and i32 %52, 1
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %67, label %55

55:                                               ; preds = %48
  %56 = load ptr, ptr %4, align 8, !tbaa !14
  %57 = getelementptr inbounds %struct.facetT, ptr %56, i32 0, i32 15
  %58 = load i32, ptr %57, align 8
  %59 = lshr i32 %58, 21
  %60 = and i32 %59, 1
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %67, label %62

62:                                               ; preds = %55
  %63 = load ptr, ptr %4, align 8, !tbaa !14
  %64 = getelementptr inbounds %struct.facetT, ptr %63, i32 0, i32 3
  %65 = load ptr, ptr %64, align 8, !tbaa !20
  %66 = icmp ne ptr %65, null
  br i1 %66, label %68, label %67

67:                                               ; preds = %62, %55, %48
  br label %242

68:                                               ; preds = %62
  br label %69

69:                                               ; preds = %68
  %70 = load ptr, ptr %4, align 8, !tbaa !14
  %71 = getelementptr inbounds %struct.facetT, ptr %70, i32 0, i32 7
  %72 = load ptr, ptr %71, align 8, !tbaa !16
  store ptr %72, ptr %4, align 8, !tbaa !14
  br label %24, !llvm.loop !21

73:                                               ; preds = %32
  br label %74

74:                                               ; preds = %73, %18
  %75 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 31), align 8, !tbaa !23
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %86

77:                                               ; preds = %74
  %78 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 203), align 8, !tbaa !24
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %86

80:                                               ; preds = %77
  %81 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !25
  %82 = icmp sge i32 %81, 2
  br i1 %82, label %83, label %85

83:                                               ; preds = %80
  %84 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !26
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %84, i32 noundef 2011, ptr noundef @.str.10)
  br label %85

85:                                               ; preds = %83, %80
  store i32 1, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %267

86:                                               ; preds = %77, %74
  br label %87

87:                                               ; preds = %86, %16
  %88 = load ptr, ptr %8, align 8, !tbaa !14
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %225

90:                                               ; preds = %87
  %91 = load ptr, ptr %8, align 8, !tbaa !14
  store ptr %91, ptr %4, align 8, !tbaa !14
  br label %92

92:                                               ; preds = %220, %90
  %93 = load ptr, ptr %4, align 8, !tbaa !14
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %100

95:                                               ; preds = %92
  %96 = load ptr, ptr %4, align 8, !tbaa !14
  %97 = getelementptr inbounds %struct.facetT, ptr %96, i32 0, i32 7
  %98 = load ptr, ptr %97, align 8, !tbaa !16
  %99 = icmp ne ptr %98, null
  br label %100

100:                                              ; preds = %95, %92
  %101 = phi i1 [ false, %92 ], [ %99, %95 ]
  br i1 %101, label %102, label %224

102:                                              ; preds = %100
  %103 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !27
  %104 = add i32 %103, 1
  store i32 %104, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !27
  store i32 0, ptr %9, align 4, !tbaa !5
  store ptr null, ptr %7, align 8, !tbaa !14
  store ptr null, ptr %5, align 8, !tbaa !14
  %105 = load ptr, ptr %4, align 8, !tbaa !14
  %106 = getelementptr inbounds %struct.facetT, ptr %105, i32 0, i32 10
  %107 = load ptr, ptr %106, align 8, !tbaa !18
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %167

109:                                              ; preds = %102
  %110 = load ptr, ptr %4, align 8, !tbaa !14
  %111 = getelementptr inbounds %struct.facetT, ptr %110, i32 0, i32 10
  %112 = load ptr, ptr %111, align 8, !tbaa !18
  %113 = getelementptr inbounds %struct.setT, ptr %112, i32 0, i32 1
  %114 = getelementptr inbounds [1 x %union.setelemT], ptr %113, i64 0, i64 0
  store ptr %114, ptr %6, align 8, !tbaa !14
  br label %115

115:                                              ; preds = %165, %126, %109
  %116 = load ptr, ptr %6, align 8, !tbaa !14
  %117 = getelementptr inbounds ptr, ptr %116, i32 1
  store ptr %117, ptr %6, align 8, !tbaa !14
  %118 = load ptr, ptr %116, align 8, !tbaa !14
  store ptr %118, ptr %5, align 8, !tbaa !14
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %166

120:                                              ; preds = %115
  %121 = load i32, ptr %9, align 4, !tbaa !5
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %130, label %123

123:                                              ; preds = %120
  %124 = load i32, ptr %3, align 4, !tbaa !5
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %130, label %126

126:                                              ; preds = %123
  %127 = load ptr, ptr %5, align 8, !tbaa !14
  store ptr %127, ptr %7, align 8, !tbaa !14
  %128 = load i32, ptr %9, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %9, align 4, !tbaa !5
  br label %115, !llvm.loop !28

130:                                              ; preds = %123, %120
  %131 = load ptr, ptr %4, align 8, !tbaa !14
  %132 = getelementptr inbounds %struct.facetT, ptr %131, i32 0, i32 8
  %133 = load ptr, ptr %132, align 8, !tbaa !29
  %134 = getelementptr inbounds %struct.setT, ptr %133, i32 0, i32 1
  %135 = load i32, ptr %9, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %9, align 4, !tbaa !5
  %137 = sext i32 %135 to i64
  %138 = getelementptr inbounds [1 x %union.setelemT], ptr %134, i64 0, i64 %137
  %139 = load ptr, ptr %138, align 8, !tbaa !19
  store ptr %139, ptr %10, align 8, !tbaa !14
  %140 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !27
  %141 = load ptr, ptr %10, align 8, !tbaa !14
  %142 = getelementptr inbounds %struct.vertexT, ptr %141, i32 0, i32 5
  store i32 %140, ptr %142, align 4, !tbaa !30
  %143 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 59), align 8, !tbaa !19
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 59), align 8, !tbaa !19
  %145 = load ptr, ptr %10, align 8, !tbaa !14
  %146 = getelementptr inbounds %struct.vertexT, ptr %145, i32 0, i32 2
  %147 = load ptr, ptr %146, align 8, !tbaa !32
  %148 = load ptr, ptr %5, align 8, !tbaa !14
  call void @qh_distplane(ptr noundef %147, ptr noundef %148, ptr noundef %12)
  %149 = load double, ptr %12, align 8, !tbaa !33
  %150 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 128), align 8, !tbaa !34
  %151 = fneg double %150
  %152 = fcmp oge double %149, %151
  br i1 %152, label %153, label %165

153:                                              ; preds = %130
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 203), align 8, !tbaa !24
  %154 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 31), align 8, !tbaa !23
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %163

156:                                              ; preds = %153
  %157 = load i32, ptr %3, align 4, !tbaa !5
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %163, label %159

159:                                              ; preds = %156
  %160 = load double, ptr %12, align 8, !tbaa !33
  %161 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 128), align 8, !tbaa !34
  %162 = fcmp ogt double %160, %161
  br i1 %162, label %163, label %164

163:                                              ; preds = %159, %156, %153
  br label %251

164:                                              ; preds = %159
  br label %165

165:                                              ; preds = %164, %130
  br label %115, !llvm.loop !28

166:                                              ; preds = %115
  br label %167

167:                                              ; preds = %166, %102
  %168 = load i32, ptr %3, align 4, !tbaa !5
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %219, label %170

170:                                              ; preds = %167
  %171 = load ptr, ptr %7, align 8, !tbaa !14
  %172 = icmp ne ptr %171, null
  br i1 %172, label %173, label %219

173:                                              ; preds = %170
  store ptr null, ptr %10, align 8, !tbaa !14
  %174 = load ptr, ptr %7, align 8, !tbaa !14
  %175 = getelementptr inbounds %struct.facetT, ptr %174, i32 0, i32 8
  %176 = load ptr, ptr %175, align 8, !tbaa !29
  %177 = icmp ne ptr %176, null
  br i1 %177, label %178, label %218

178:                                              ; preds = %173
  %179 = load ptr, ptr %7, align 8, !tbaa !14
  %180 = getelementptr inbounds %struct.facetT, ptr %179, i32 0, i32 8
  %181 = load ptr, ptr %180, align 8, !tbaa !29
  %182 = getelementptr inbounds %struct.setT, ptr %181, i32 0, i32 1
  %183 = getelementptr inbounds [1 x %union.setelemT], ptr %182, i64 0, i64 0
  store ptr %183, ptr %11, align 8, !tbaa !14
  br label %184

184:                                              ; preds = %216, %178
  %185 = load ptr, ptr %11, align 8, !tbaa !14
  %186 = getelementptr inbounds ptr, ptr %185, i32 1
  store ptr %186, ptr %11, align 8, !tbaa !14
  %187 = load ptr, ptr %185, align 8, !tbaa !14
  store ptr %187, ptr %10, align 8, !tbaa !14
  %188 = icmp ne ptr %187, null
  br i1 %188, label %189, label %217

189:                                              ; preds = %184
  %190 = load ptr, ptr %10, align 8, !tbaa !14
  %191 = getelementptr inbounds %struct.vertexT, ptr %190, i32 0, i32 5
  %192 = load i32, ptr %191, align 4, !tbaa !30
  %193 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !27
  %194 = icmp ne i32 %192, %193
  br i1 %194, label %195, label %216

195:                                              ; preds = %189
  %196 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 59), align 8, !tbaa !19
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 59), align 8, !tbaa !19
  %198 = load ptr, ptr %10, align 8, !tbaa !14
  %199 = getelementptr inbounds %struct.vertexT, ptr %198, i32 0, i32 2
  %200 = load ptr, ptr %199, align 8, !tbaa !32
  %201 = load ptr, ptr %4, align 8, !tbaa !14
  call void @qh_distplane(ptr noundef %200, ptr noundef %201, ptr noundef %12)
  %202 = load double, ptr %12, align 8, !tbaa !33
  %203 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 128), align 8, !tbaa !34
  %204 = fneg double %203
  %205 = fcmp oge double %202, %204
  br i1 %205, label %206, label %215

206:                                              ; preds = %195
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 203), align 8, !tbaa !24
  %207 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 31), align 8, !tbaa !23
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %209, label %213

209:                                              ; preds = %206
  %210 = load double, ptr %12, align 8, !tbaa !33
  %211 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 128), align 8, !tbaa !34
  %212 = fcmp ogt double %210, %211
  br i1 %212, label %213, label %214

213:                                              ; preds = %209, %206
  br label %251

214:                                              ; preds = %209
  br label %215

215:                                              ; preds = %214, %195
  br label %217

216:                                              ; preds = %189
  br label %184, !llvm.loop !35

217:                                              ; preds = %215, %184
  br label %218

218:                                              ; preds = %217, %173
  br label %219

219:                                              ; preds = %218, %170, %167
  br label %220

220:                                              ; preds = %219
  %221 = load ptr, ptr %4, align 8, !tbaa !14
  %222 = getelementptr inbounds %struct.facetT, ptr %221, i32 0, i32 7
  %223 = load ptr, ptr %222, align 8, !tbaa !16
  store ptr %223, ptr %4, align 8, !tbaa !14
  br label %92, !llvm.loop !36

224:                                              ; preds = %100
  br label %225

225:                                              ; preds = %224, %87
  %226 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !25
  %227 = icmp sge i32 %226, 2
  br i1 %227, label %228, label %241

228:                                              ; preds = %225
  %229 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !26
  %230 = load i32, ptr %3, align 4, !tbaa !5
  %231 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 31), align 8, !tbaa !23
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %237

233:                                              ; preds = %228
  %234 = load i32, ptr %3, align 4, !tbaa !5
  %235 = icmp ne i32 %234, 0
  %236 = xor i1 %235, true
  br label %237

237:                                              ; preds = %233, %228
  %238 = phi i1 [ false, %228 ], [ %236, %233 ]
  %239 = zext i1 %238 to i64
  %240 = select i1 %238, ptr @.str.12, ptr @.str.13
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %229, i32 noundef 2012, ptr noundef @.str.11, i32 noundef %230, ptr noundef %240)
  br label %241

241:                                              ; preds = %237, %225
  store i32 1, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %267

242:                                              ; preds = %67, %47
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 203), align 8, !tbaa !24
  %243 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !25
  %244 = icmp sge i32 %243, 2
  br i1 %244, label %245, label %250

245:                                              ; preds = %242
  %246 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !26
  %247 = load ptr, ptr %4, align 8, !tbaa !14
  %248 = getelementptr inbounds %struct.facetT, ptr %247, i32 0, i32 14
  %249 = load i32, ptr %248, align 4, !tbaa !37
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %246, i32 noundef 2013, ptr noundef @.str.14, i32 noundef %249)
  br label %250

250:                                              ; preds = %245, %242
  store i32 0, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %267

251:                                              ; preds = %213, %163
  %252 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !25
  %253 = icmp sge i32 %252, 2
  br i1 %253, label %254, label %266

254:                                              ; preds = %251
  %255 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !26
  %256 = load ptr, ptr %4, align 8, !tbaa !14
  %257 = getelementptr inbounds %struct.facetT, ptr %256, i32 0, i32 14
  %258 = load i32, ptr %257, align 4, !tbaa !37
  %259 = load ptr, ptr %5, align 8, !tbaa !14
  %260 = getelementptr inbounds %struct.facetT, ptr %259, i32 0, i32 14
  %261 = load i32, ptr %260, align 4, !tbaa !37
  %262 = load ptr, ptr %10, align 8, !tbaa !14
  %263 = getelementptr inbounds %struct.vertexT, ptr %262, i32 0, i32 4
  %264 = load i32, ptr %263, align 8, !tbaa !38
  %265 = load double, ptr %12, align 8, !tbaa !33
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %255, i32 noundef 2014, ptr noundef @.str.15, i32 noundef %258, i32 noundef %261, i32 noundef %264, double noundef %265)
  br label %266

266:                                              ; preds = %254, %251
  store i32 0, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %267

267:                                              ; preds = %266, %250, %241, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %268 = load i32, ptr %2, align 4
  ret i32 %268
}

declare void @qh_fprintf(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 void @qh_distplane(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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 2440}
!10 = !{!"qhT", !6, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !11, i64 56, !11, i64 64, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !6, i64 88, !12, i64 96, !6, i64 104, !6, i64 108, !12, i64 112, !6, i64 120, !6, i64 124, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144, !11, i64 152, !11, i64 160, !6, i64 168, !6, i64 172, !6, i64 176, !11, i64 184, !11, i64 192, !6, i64 200, !11, i64 208, !6, i64 216, !6, i64 220, !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, !7, i64 296, !6, i64 412, !6, i64 416, !6, i64 420, !6, i64 424, !6, i64 428, !6, i64 432, !6, i64 436, !6, i64 440, !6, i64 444, !11, i64 448, !11, i64 456, !11, 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, !11, i64 544, !6, i64 552, !6, i64 556, !6, i64 560, !6, i64 564, !6, i64 568, !6, i64 572, !6, i64 576, !6, i64 580, !11, i64 584, !6, i64 592, !12, i64 600, !12, i64 608, !6, i64 616, !6, i64 620, !6, i64 624, !6, i64 628, !6, i64 632, !12, i64 640, !6, i64 648, !12, i64 656, !6, i64 664, !7, i64 668, !6, i64 924, !7, i64 928, !7, i64 1184, !6, i64 1696, !6, i64 1700, !6, i64 1704, !6, i64 1708, !6, i64 1712, !6, i64 1716, !12, i64 1720, !12, i64 1728, !12, i64 1736, !12, i64 1744, !11, i64 1752, !11, i64 1760, !11, i64 1768, !11, i64 1776, !11, i64 1784, !11, i64 1792, !11, i64 1800, !11, i64 1808, !11, i64 1816, !11, i64 1824, !11, i64 1832, !11, i64 1840, !11, i64 1848, !6, i64 1856, !12, i64 1864, !11, i64 1872, !11, i64 1880, !11, i64 1888, !11, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 2112, !7, i64 2152, !7, i64 2352, !12, i64 2392, !12, i64 2400, !12, i64 2408, !12, i64 2416, !6, i64 2424, !6, i64 2428, !6, i64 2432, !12, i64 2440, !12, i64 2448, !12, i64 2456, !12, i64 2464, !12, i64 2472, !6, i64 2480, !6, i64 2484, !12, i64 2488, !6, i64 2496, !12, i64 2504, !12, i64 2512, !12, i64 2520, !12, i64 2528, !6, i64 2536, !6, i64 2540, !6, i64 2544, !6, i64 2548, !6, i64 2552, !6, i64 2556, !6, i64 2560, !13, i64 2568, !6, i64 2576, !6, i64 2580, !6, i64 2584, !6, i64 2588, !12, i64 2592, !6, i64 2600, !6, i64 2604, !11, i64 2608, !6, i64 2616, !11, i64 2624, !11, i64 2632, !11, i64 2640, !6, i64 2648, !6, i64 2652, !6, i64 2656, !6, i64 2660, !11, i64 2664, !11, i64 2672, !6, i64 2680, !6, i64 2684, !6, i64 2688, !6, i64 2692, !11, i64 2696, !11, i64 2704, !6, i64 2712, !6, i64 2716, !6, i64 2720, !6, i64 2724, !12, i64 2728, !12, i64 2736, !12, i64 2744, !12, i64 2752, !12, i64 2760, !12, i64 2768, !12, i64 2776, !12, i64 2784, !6, i64 2792, !12, i64 2800, !12, i64 2808, !6, i64 2816, !6, i64 2820, !6, i64 2824, !12, i64 2832, !11, i64 2840, !11, i64 2848, !11, i64 2856, !6, i64 2864, !6, i64 2868, !12, i64 2872, !12, i64 2880, !6, i64 2888}
!11 = !{!"double", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!10, !12, i64 2464}
!16 = !{!17, !12, i64 56}
!17 = !{!"facetT", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !7, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, 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}
!18 = !{!17, !12, i64 80}
!19 = !{!7, !7, i64 0}
!20 = !{!17, !12, i64 24}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!10, !6, i64 168}
!24 = !{!10, !6, i64 2720}
!25 = !{!10, !6, i64 128}
!26 = !{!10, !12, i64 2408}
!27 = !{!10, !6, i64 2716}
!28 = distinct !{!28, !22}
!29 = !{!17, !12, i64 64}
!30 = !{!31, !6, i64 36}
!31 = !{!"vertexT", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 40, !6, i64 40, !6, i64 40, !6, i64 40}
!32 = !{!31, !12, i64 16}
!33 = !{!11, !11, i64 0}
!34 = !{!10, !11, i64 1776}
!35 = distinct !{!35, !22}
!36 = distinct !{!36, !22}
!37 = !{!17, !6, i64 108}
!38 = !{!31, !6, 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"

%struct.qhT = type { i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, double, i32, double, i32, 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, i32, double, double, double, 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, i32, ptr, double, double, double, double, [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, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, ptr, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, 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.qhstatT = type { [227 x %union.intrealT], [237 x i8], [227 x ptr], [227 x i16], [227 x i8], [227 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }
%union.setelemT = type { ptr }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.10 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [72 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(i32 noundef %0) local_unnamed_addr #1 {
  %2 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  %3 = icmp ne i32 %0, 0
  br i1 %3, label %4, label %6

4:                                                ; preds = %1
  %5 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8, !tbaa !5
  br label %34

6:                                                ; preds = %1
  %7 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2464), align 8, !tbaa !13
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %.critedge, label %.preheader92

.preheader92:                                     ; preds = %6, %22
  %.059 = phi ptr [ %9, %22 ], [ %7, %6 ]
  %8 = getelementptr inbounds i8, ptr %.059, i64 56
  %9 = load ptr, ptr %8, align 8, !tbaa !14
  %.not69 = icmp eq ptr %9, null
  br i1 %.not69, label %.critedge, label %10

10:                                               ; preds = %.preheader92
  %11 = getelementptr inbounds i8, ptr %.059, i64 80
  %12 = load ptr, ptr %11, align 8, !tbaa !16
  %13 = getelementptr inbounds i8, ptr %12, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !17
  %15 = getelementptr inbounds i8, ptr %14, i64 112
  %16 = load i32, ptr %15, align 8
  %17 = and i32 %16, 8192
  %.not70 = icmp eq i32 %17, 0
  br i1 %.not70, label %128, label %18

18:                                               ; preds = %10
  %19 = getelementptr inbounds i8, ptr %.059, i64 112
  %20 = load i32, ptr %19, align 8
  %21 = and i32 %20, 2162688
  %or.cond85 = icmp eq i32 %21, 0
  br i1 %or.cond85, label %22, label %128

22:                                               ; preds = %18
  %23 = getelementptr inbounds i8, ptr %.059, i64 24
  %24 = load ptr, ptr %23, align 8, !tbaa !18
  %.not73 = icmp eq ptr %24, null
  br i1 %.not73, label %128, label %.preheader92, !llvm.loop !19

.critedge:                                        ; preds = %.preheader92, %6
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 168), align 8, !tbaa !21
  %26 = icmp ne i32 %25, 0
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2720), align 8
  %28 = icmp ne i32 %27, 0
  %or.cond = select i1 %26, i1 %28, i1 false
  br i1 %or.cond, label %29, label %34

29:                                               ; preds = %.critedge
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !22
  %31 = icmp sgt i32 %30, 1
  br i1 %31, label %32, label %146

32:                                               ; preds = %29
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !23
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %33, i32 noundef 2011, ptr noundef nonnull @.str.10) #3
  br label %146

34:                                               ; preds = %.critedge, %4
  %.054 = phi ptr [ %5, %4 ], [ %7, %.critedge ]
  %.not74 = icmp eq ptr %.054, null
  br i1 %.not74, label %.critedge3, label %.preheader90

.preheader90:                                     ; preds = %34
  %35 = icmp eq i32 %0, 0
  br label %36

36:                                               ; preds = %.preheader90, %.thread
  %.160146 = phi ptr [ %.054, %.preheader90 ], [ %120, %.thread ]
  %37 = getelementptr inbounds i8, ptr %.160146, i64 56
  %38 = load ptr, ptr %37, align 8, !tbaa !14
  %.not76 = icmp eq ptr %38, null
  br i1 %.not76, label %.critedge3, label %39

39:                                               ; preds = %36
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !24
  %41 = add i32 %40, 1
  store i32 %41, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !24
  %42 = getelementptr inbounds i8, ptr %.160146, i64 80
  %43 = load ptr, ptr %42, align 8, !tbaa !16
  %.not79 = icmp eq ptr %43, null
  br i1 %.not79, label %.thread, label %44

44:                                               ; preds = %39
  %45 = getelementptr inbounds i8, ptr %43, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !25
  %.not80105136 = icmp eq ptr %46, null
  br i1 %.not80105136, label %.thread, label %.lr.ph.lr.ph

.lr.ph.lr.ph:                                     ; preds = %44
  %47 = getelementptr inbounds i8, ptr %43, i64 16
  %48 = getelementptr inbounds i8, ptr %.160146, i64 64
  br i1 %3, label %.lr.ph.split.us.split.split.us, label %.lr.ph

.outer.loopexit.split:                            ; preds = %72
  %49 = getelementptr inbounds i8, ptr %74, i64 8
  %50 = load ptr, ptr %74, align 8, !tbaa !25
  %.not80105 = icmp eq ptr %50, null
  br i1 %.not80105, label %.outer._crit_edge, label %.lr.ph, !llvm.loop !26

.lr.ph:                                           ; preds = %.lr.ph.lr.ph, %.outer.loopexit.split
  %51 = phi ptr [ %50, %.outer.loopexit.split ], [ %46, %.lr.ph.lr.ph ]
  %52 = phi ptr [ %49, %.outer.loopexit.split ], [ %47, %.lr.ph.lr.ph ]
  %.053.ph138 = phi i64 [ 1, %.outer.loopexit.split ], [ 0, %.lr.ph.lr.ph ]
  %.055.ph137 = phi ptr [ %73, %.outer.loopexit.split ], [ null, %.lr.ph.lr.ph ]
  br label %72

.lr.ph.split.us.split.split.us:                   ; preds = %.lr.ph.lr.ph, %69
  %indvars.iv173 = phi i64 [ %indvars.iv.next174, %69 ], [ 0, %.lr.ph.lr.ph ]
  %53 = phi ptr [ %71, %69 ], [ %46, %.lr.ph.lr.ph ]
  %54 = phi ptr [ %70, %69 ], [ %47, %.lr.ph.lr.ph ]
  %55 = load ptr, ptr %48, align 8, !tbaa !27
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  %57 = getelementptr inbounds [1 x %union.setelemT], ptr %56, i64 0, i64 %indvars.iv173
  %58 = load ptr, ptr %57, align 8, !tbaa !17
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !24
  %60 = getelementptr inbounds i8, ptr %58, i64 36
  store i32 %59, ptr %60, align 4, !tbaa !28
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 472), align 8, !tbaa !17
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 472), align 8, !tbaa !17
  %63 = getelementptr inbounds i8, ptr %58, i64 16
  %64 = load ptr, ptr %63, align 8, !tbaa !30
  call void @qh_distplane(ptr noundef %64, ptr noundef nonnull %53, ptr noundef nonnull %2) #3
  %65 = load double, ptr %2, align 8, !tbaa !31
  %66 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1776), align 8, !tbaa !32
  %67 = fneg double %66
  %68 = fcmp ult double %65, %67
  br i1 %68, label %69, label %.loopexit.split.us

.loopexit.split.us:                               ; preds = %.lr.ph.split.us.split.split.us
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2720), align 8, !tbaa !33
  br label %.loopexit

69:                                               ; preds = %.lr.ph.split.us.split.split.us
  %indvars.iv.next174 = add nuw nsw i64 %indvars.iv173, 1
  %70 = getelementptr inbounds i8, ptr %54, i64 8
  %71 = load ptr, ptr %54, align 8, !tbaa !25
  %.not80.us = icmp eq ptr %71, null
  br i1 %.not80.us, label %.thread, label %.lr.ph.split.us.split.split.us, !llvm.loop !26

72:                                               ; preds = %.lr.ph, %95
  %indvars.iv = phi i64 [ %.053.ph138, %.lr.ph ], [ %indvars.iv.next, %95 ]
  %73 = phi ptr [ %51, %.lr.ph ], [ %97, %95 ]
  %74 = phi ptr [ %52, %.lr.ph ], [ %96, %95 ]
  %or.cond5.not = icmp eq i64 %indvars.iv, 0
  br i1 %or.cond5.not, label %.outer.loopexit.split, label %75

75:                                               ; preds = %72
  %76 = load ptr, ptr %48, align 8, !tbaa !27
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %78 = getelementptr inbounds [1 x %union.setelemT], ptr %77, i64 0, i64 %indvars.iv
  %79 = load ptr, ptr %78, align 8, !tbaa !17
  %80 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !24
  %81 = getelementptr inbounds i8, ptr %79, i64 36
  store i32 %80, ptr %81, align 4, !tbaa !28
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 472), align 8, !tbaa !17
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 472), align 8, !tbaa !17
  %84 = getelementptr inbounds i8, ptr %79, i64 16
  %85 = load ptr, ptr %84, align 8, !tbaa !30
  call void @qh_distplane(ptr noundef %85, ptr noundef nonnull %73, ptr noundef nonnull %2) #3
  %86 = load double, ptr %2, align 8, !tbaa !31
  %87 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1776), align 8, !tbaa !32
  %88 = fneg double %87
  %89 = fcmp ult double %86, %88
  br i1 %89, label %95, label %90

90:                                               ; preds = %75
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2720), align 8, !tbaa !33
  %91 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 168), align 8, !tbaa !21
  %92 = icmp eq i32 %91, 0
  %93 = fcmp ogt double %86, %87
  %94 = or i1 %93, %92
  br i1 %94, label %.loopexit, label %95

95:                                               ; preds = %90, %75
  %96 = getelementptr inbounds i8, ptr %74, i64 8
  %97 = load ptr, ptr %74, align 8, !tbaa !25
  %.not80 = icmp eq ptr %97, null
  br i1 %.not80, label %.outer._crit_edge, label %72, !llvm.loop !26

.outer._crit_edge:                                ; preds = %.outer.loopexit.split, %95
  %.055.ph.lcssa99 = phi ptr [ %.055.ph137, %95 ], [ %73, %.outer.loopexit.split ]
  %98 = icmp ne ptr %.055.ph.lcssa99, null
  %or.cond9 = and i1 %35, %98
  br i1 %or.cond9, label %99, label %.thread

99:                                               ; preds = %.outer._crit_edge
  %100 = getelementptr inbounds i8, ptr %.055.ph.lcssa99, i64 64
  %101 = load ptr, ptr %100, align 8, !tbaa !27
  %.not81 = icmp eq ptr %101, null
  br i1 %.not81, label %.thread, label %.preheader

.preheader:                                       ; preds = %99
  %102 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4
  br label %103

103:                                              ; preds = %.preheader, %105
  %.pn = phi ptr [ %.0, %105 ], [ %101, %.preheader ]
  %.0 = getelementptr inbounds i8, ptr %.pn, i64 8
  %104 = load ptr, ptr %.0, align 8, !tbaa !25
  %.not82 = icmp eq ptr %104, null
  br i1 %.not82, label %.thread, label %105

105:                                              ; preds = %103
  %106 = getelementptr inbounds i8, ptr %104, i64 36
  %107 = load i32, ptr %106, align 4, !tbaa !28
  %.not83 = icmp eq i32 %107, %102
  br i1 %.not83, label %103, label %108, !llvm.loop !34

108:                                              ; preds = %105
  %109 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 472), align 8, !tbaa !17
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 472), align 8, !tbaa !17
  %111 = getelementptr inbounds i8, ptr %104, i64 16
  %112 = load ptr, ptr %111, align 8, !tbaa !30
  call void @qh_distplane(ptr noundef %112, ptr noundef nonnull %.160146, ptr noundef nonnull %2) #3
  %113 = load double, ptr %2, align 8, !tbaa !31
  %114 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1776), align 8, !tbaa !32
  %115 = fneg double %114
  %116 = fcmp ult double %113, %115
  br i1 %116, label %.thread, label %117

117:                                              ; preds = %108
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2720), align 8, !tbaa !33
  %118 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 168), align 8, !tbaa !21
  %.not84 = icmp eq i32 %118, 0
  %119 = fcmp ogt double %113, %114
  %or.cond89 = or i1 %119, %.not84
  br i1 %or.cond89, label %.loopexit, label %.thread

.thread:                                          ; preds = %103, %69, %44, %117, %39, %.outer._crit_edge, %108, %99
  %120 = load ptr, ptr %37, align 8, !tbaa !14
  %.not75 = icmp eq ptr %120, null
  br i1 %.not75, label %.critedge3, label %36, !llvm.loop !35

.critedge3:                                       ; preds = %36, %.thread, %34
  %121 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !22
  %122 = icmp sgt i32 %121, 1
  br i1 %122, label %123, label %146

123:                                              ; preds = %.critedge3
  %124 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !23
  %125 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 168), align 8, !tbaa !21
  %126 = icmp eq i32 %125, 0
  %.not78 = or i1 %3, %126
  %127 = select i1 %.not78, ptr @.str.13, ptr @.str.12
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %124, i32 noundef 2012, ptr noundef nonnull @.str.11, i32 noundef %0, ptr noundef nonnull %127) #3
  br label %146

128:                                              ; preds = %18, %22, %10
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2720), align 8, !tbaa !33
  %129 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !22
  %130 = icmp sgt i32 %129, 1
  br i1 %130, label %131, label %146

131:                                              ; preds = %128
  %132 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !23
  %133 = getelementptr inbounds i8, ptr %.059, i64 108
  %134 = load i32, ptr %133, align 4, !tbaa !36
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %132, i32 noundef 2013, ptr noundef nonnull @.str.14, i32 noundef %134) #3
  br label %146

.loopexit:                                        ; preds = %117, %90, %.loopexit.split.us
  %135 = phi double [ %65, %.loopexit.split.us ], [ %86, %90 ], [ %113, %117 ]
  %.158 = phi ptr [ %53, %.loopexit.split.us ], [ %73, %90 ], [ null, %117 ]
  %.052 = phi ptr [ %58, %.loopexit.split.us ], [ %79, %90 ], [ %104, %117 ]
  %136 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !22
  %137 = icmp sgt i32 %136, 1
  br i1 %137, label %138, label %146

138:                                              ; preds = %.loopexit
  %139 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !23
  %140 = getelementptr inbounds i8, ptr %.160146, i64 108
  %141 = load i32, ptr %140, align 4, !tbaa !36
  %142 = getelementptr inbounds i8, ptr %.158, i64 108
  %143 = load i32, ptr %142, align 4, !tbaa !36
  %144 = getelementptr inbounds i8, ptr %.052, i64 32
  %145 = load i32, ptr %144, align 8, !tbaa !37
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %139, i32 noundef 2014, ptr noundef nonnull @.str.15, i32 noundef %141, i32 noundef %143, i32 noundef %145, double noundef %135) #3
  br label %146

146:                                              ; preds = %.loopexit, %138, %128, %131, %.critedge3, %123, %29, %32
  %.061 = phi i32 [ 1, %32 ], [ 1, %29 ], [ 1, %123 ], [ 1, %.critedge3 ], [ 0, %131 ], [ 0, %128 ], [ 0, %138 ], [ 0, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  ret i32 %.061
}

declare void @qh_fprintf(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 void @qh_distplane(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 2440}
!6 = !{!"qhT", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !11, i64 96, !7, i64 104, !7, i64 108, !11, i64 112, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !10, i64 152, !10, i64 160, !7, i64 168, !7, i64 172, !7, i64 176, !10, i64 184, !10, i64 192, !7, i64 200, !10, i64 208, !7, i64 216, !7, i64 220, !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, !8, i64 296, !7, i64 412, !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, !10, i64 544, !7, i64 552, !7, i64 556, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !10, i64 584, !7, i64 592, !11, i64 600, !11, i64 608, !7, i64 616, !7, i64 620, !7, i64 624, !7, i64 628, !7, i64 632, !11, i64 640, !7, i64 648, !11, i64 656, !7, i64 664, !8, i64 668, !7, i64 924, !8, i64 928, !8, i64 1184, !7, i64 1696, !7, i64 1700, !7, i64 1704, !7, i64 1708, !7, i64 1712, !7, i64 1716, !11, i64 1720, !11, i64 1728, !11, i64 1736, !11, i64 1744, !10, 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, !7, i64 1856, !11, i64 1864, !10, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !8, i64 1904, !8, i64 1912, !8, i64 2112, !8, i64 2152, !8, i64 2352, !11, i64 2392, !11, i64 2400, !11, i64 2408, !11, i64 2416, !7, i64 2424, !7, i64 2428, !7, i64 2432, !11, i64 2440, !11, i64 2448, !11, i64 2456, !11, i64 2464, !11, i64 2472, !7, i64 2480, !7, i64 2484, !11, i64 2488, !7, i64 2496, !11, i64 2504, !11, i64 2512, !11, i64 2520, !11, i64 2528, !7, i64 2536, !7, i64 2540, !7, i64 2544, !7, i64 2548, !7, i64 2552, !7, i64 2556, !7, i64 2560, !12, i64 2568, !7, i64 2576, !7, i64 2580, !7, i64 2584, !7, i64 2588, !11, i64 2592, !7, i64 2600, !7, i64 2604, !10, i64 2608, !7, i64 2616, !10, i64 2624, !10, i64 2632, !10, i64 2640, !7, i64 2648, !7, i64 2652, !7, i64 2656, !7, i64 2660, !10, i64 2664, !10, i64 2672, !7, i64 2680, !7, i64 2684, !7, i64 2688, !7, i64 2692, !10, i64 2696, !10, i64 2704, !7, i64 2712, !7, i64 2716, !7, i64 2720, !7, i64 2724, !11, i64 2728, !11, i64 2736, !11, i64 2744, !11, i64 2752, !11, i64 2760, !11, i64 2768, !11, i64 2776, !11, i64 2784, !7, i64 2792, !11, i64 2800, !11, i64 2808, !7, i64 2816, !7, i64 2820, !7, i64 2824, !11, i64 2832, !10, i64 2840, !10, i64 2848, !10, i64 2856, !7, i64 2864, !7, i64 2868, !11, i64 2872, !11, i64 2880, !7, i64 2888}
!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 2464}
!14 = !{!15, !11, i64 56}
!15 = !{!"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}
!16 = !{!15, !11, i64 80}
!17 = !{!8, !8, i64 0}
!18 = !{!15, !11, i64 24}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !7, i64 168}
!22 = !{!6, !7, i64 128}
!23 = !{!6, !11, i64 2408}
!24 = !{!6, !7, i64 2716}
!25 = !{!11, !11, i64 0}
!26 = distinct !{!26, !20}
!27 = !{!15, !11, i64 64}
!28 = !{!29, !7, i64 36}
!29 = !{!"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}
!30 = !{!29, !11, i64 16}
!31 = !{!10, !10, i64 0}
!32 = !{!6, !10, i64 1776}
!33 = !{!6, !7, i64 2720}
!34 = distinct !{!34, !20}
!35 = distinct !{!35, !20}
!36 = !{!15, !7, i64 108}
!37 = !{!29, !7, i64 32}


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