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

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

%struct.qhT = type { i32, i32, i32, 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.27 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [94 x i8], align 1

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

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

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

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

declare void @qh_errexit2(i32 noundef, ptr noundef, ptr noundef) #1

declare i32 @qh_pointid(ptr noundef) #1

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

20:                                               ; preds = %2
  %21 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %21, i32 noundef 1026, ptr noundef @.str.27)
  br label %22

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

25:                                               ; preds = %22
  store i32 0, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 27), align 8, !tbaa !17
  store i32 0, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 37), align 8, !tbaa !17
  br label %26

26:                                               ; preds = %25, %22
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %365

29:                                               ; preds = %26
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %30, ptr %5, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %360, %29
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %39

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

39:                                               ; preds = %34, %31
  %40 = phi i1 [ false, %31 ], [ %38, %34 ]
  br i1 %40, label %41, label %364

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

48:                                               ; preds = %41
  call void @qh_precision(ptr noundef @.str.28)
  %49 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.facetT, ptr %50, i32 0, i32 14
  %52 = load i32, ptr %51, align 4, !tbaa !20
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %49, i32 noundef 6113, ptr noundef @.str.29, i32 noundef %52)
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %53, ptr %8, align 8, !tbaa !5
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %360

54:                                               ; preds = %41
  %55 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 33), align 8, !tbaa !21
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %75

57:                                               ; preds = %54
  %58 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 120), align 4, !tbaa !22
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %74

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

67:                                               ; preds = %60
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.facetT, ptr %68, i32 0, i32 15
  %70 = load i32, ptr %69, align 8
  %71 = lshr i32 %70, 9
  %72 = and i32 %71, 1
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %67, %60, %57
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %209

75:                                               ; preds = %67, %54
  store i32 1, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  store ptr null, ptr %6, align 8, !tbaa !5
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.facetT, ptr %76, i32 0, i32 10
  %78 = load ptr, ptr %77, align 8, !tbaa !23
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %208

80:                                               ; preds = %75
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.facetT, ptr %81, i32 0, i32 10
  %83 = load ptr, ptr %82, align 8, !tbaa !23
  %84 = getelementptr inbounds %struct.setT, ptr %83, i32 0, i32 1
  %85 = getelementptr inbounds [1 x %union.setelemT], ptr %84, i64 0, i64 0
  store ptr %85, ptr %7, align 8, !tbaa !5
  br label %86

86:                                               ; preds = %206, %114, %80
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds ptr, ptr %87, i32 1
  store ptr %88, ptr %7, align 8, !tbaa !5
  %89 = load ptr, ptr %87, align 8, !tbaa !5
  store ptr %89, ptr %6, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %207

91:                                               ; preds = %86
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.facetT, ptr %92, i32 0, i32 8
  %94 = load ptr, ptr %93, align 8, !tbaa !24
  %95 = getelementptr inbounds %struct.setT, ptr %94, i32 0, i32 1
  %96 = load i32, ptr %17, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %17, align 4, !tbaa !9
  %98 = sext i32 %96 to i64
  %99 = getelementptr inbounds [1 x %union.setelemT], ptr %95, i64 0, i64 %98
  %100 = load ptr, ptr %99, align 8, !tbaa !17
  store ptr %100, ptr %10, align 8, !tbaa !5
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.facetT, ptr %101, i32 0, i32 15
  %103 = load i32, ptr %102, align 8
  %104 = lshr i32 %103, 13
  %105 = and i32 %104, 1
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %114

107:                                              ; preds = %91
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.facetT, ptr %108, i32 0, i32 15
  %110 = load i32, ptr %109, align 8
  %111 = lshr i32 %110, 9
  %112 = and i32 %111, 1
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %107, %91
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %86, !llvm.loop !25

115:                                              ; preds = %107
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.vertexT, ptr %116, i32 0, i32 2
  %118 = load ptr, ptr %117, align 8, !tbaa !27
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %118, ptr noundef %119, ptr noundef %11)
  %120 = load double, ptr %11, align 8, !tbaa !29
  %121 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 128), align 8, !tbaa !30
  %122 = fneg double %121
  %123 = fcmp ogt double %120, %122
  br i1 %123, label %124, label %206

124:                                              ; preds = %115
  %125 = load i32, ptr %4, align 4, !tbaa !9
  %126 = icmp eq i32 %125, 1
  br i1 %126, label %127, label %130

127:                                              ; preds = %124
  call void @qh_precision(ptr noundef @.str.30)
  %128 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %129 = load double, ptr %11, align 8, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %128, i32 noundef 6114, ptr noundef @.str.31, double noundef %129)
  call void @qh_errexit(i32 noundef 2, ptr noundef null, ptr noundef null)
  br label %130

130:                                              ; preds = %127, %124
  %131 = load double, ptr %11, align 8, !tbaa !29
  %132 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 128), align 8, !tbaa !30
  %133 = fcmp ogt double %131, %132
  br i1 %133, label %134, label %154

134:                                              ; preds = %130
  %135 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 27), align 8, !tbaa !17
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 27), align 8, !tbaa !17
  call void @qh_precision(ptr noundef @.str.32)
  %137 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.facetT, ptr %138, i32 0, i32 14
  %140 = load i32, ptr %139, align 4, !tbaa !20
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.facetT, ptr %141, i32 0, i32 14
  %143 = load i32, ptr %142, align 4, !tbaa !20
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.vertexT, ptr %144, i32 0, i32 2
  %146 = load ptr, ptr %145, align 8, !tbaa !27
  %147 = call i32 @qh_pointid(ptr noundef %146)
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.vertexT, ptr %148, i32 0, i32 4
  %150 = load i32, ptr %149, align 8, !tbaa !31
  %151 = load double, ptr %11, align 8, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %137, i32 noundef 6115, ptr noundef @.str.33, i32 noundef %140, i32 noundef %143, i32 noundef %147, i32 noundef %150, double noundef %151)
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %152, ptr %8, align 8, !tbaa !5
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %153, ptr %9, align 8, !tbaa !5
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %205

154:                                              ; preds = %130
  %155 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 120), align 4, !tbaa !22
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %181

157:                                              ; preds = %154
  %158 = load double, ptr %11, align 8, !tbaa !29
  %159 = fcmp ogt double %158, 0.000000e+00
  br i1 %159, label %160, label %180

160:                                              ; preds = %157
  %161 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 37), align 8, !tbaa !17
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 37), align 8, !tbaa !17
  call void @qh_precision(ptr noundef @.str.34)
  %163 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.facetT, ptr %164, i32 0, i32 14
  %166 = load i32, ptr %165, align 4, !tbaa !20
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.facetT, ptr %167, i32 0, i32 14
  %169 = load i32, ptr %168, align 4, !tbaa !20
  %170 = load ptr, ptr %10, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.vertexT, ptr %170, i32 0, i32 2
  %172 = load ptr, ptr %171, align 8, !tbaa !27
  %173 = call i32 @qh_pointid(ptr noundef %172)
  %174 = load ptr, ptr %10, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.vertexT, ptr %174, i32 0, i32 4
  %176 = load i32, ptr %175, align 8, !tbaa !31
  %177 = load double, ptr %11, align 8, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %163, i32 noundef 6116, ptr noundef @.str.35, i32 noundef %166, i32 noundef %169, i32 noundef %173, i32 noundef %176, double noundef %177)
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %178, ptr %8, align 8, !tbaa !5
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %179, ptr %9, align 8, !tbaa !5
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %180

180:                                              ; preds = %160, %157
  br label %204

181:                                              ; preds = %154
  %182 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 37), align 8, !tbaa !17
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 37), align 8, !tbaa !17
  call void @qh_precision(ptr noundef @.str.34)
  %184 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !11
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %203

186:                                              ; preds = %181
  %187 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.facetT, ptr %188, i32 0, i32 14
  %190 = load i32, ptr %189, align 4, !tbaa !20
  %191 = load ptr, ptr %6, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.facetT, ptr %191, i32 0, i32 14
  %193 = load i32, ptr %192, align 4, !tbaa !20
  %194 = load ptr, ptr %10, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.vertexT, ptr %194, i32 0, i32 2
  %196 = load ptr, ptr %195, align 8, !tbaa !27
  %197 = call i32 @qh_pointid(ptr noundef %196)
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.vertexT, ptr %198, i32 0, i32 4
  %200 = load i32, ptr %199, align 8, !tbaa !31
  %201 = load double, ptr %11, align 8, !tbaa !29
  %202 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 180), align 4, !tbaa !32
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %187, i32 noundef 22, ptr noundef @.str.36, i32 noundef %190, i32 noundef %193, i32 noundef %197, i32 noundef %200, double noundef %201, i32 noundef %202)
  br label %203

203:                                              ; preds = %186, %181
  br label %204

204:                                              ; preds = %203, %180
  br label %205

205:                                              ; preds = %204, %134
  br label %206

206:                                              ; preds = %205, %115
  br label %86, !llvm.loop !25

207:                                              ; preds = %86
  br label %208

208:                                              ; preds = %207, %75
  br label %209

209:                                              ; preds = %208, %74
  %210 = load i32, ptr %16, align 4, !tbaa !9
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %359, label %212

212:                                              ; preds = %209
  %213 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 179), align 8, !tbaa !33
  %214 = icmp eq i32 %213, 2
  br i1 %214, label %215, label %229

215:                                              ; preds = %212
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.facetT, ptr %216, i32 0, i32 5
  %218 = load ptr, ptr %217, align 8, !tbaa !34
  %219 = icmp ne ptr %218, null
  br i1 %219, label %225, label %220

220:                                              ; preds = %215
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = call ptr @qh_getcentrum(ptr noundef %221)
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.facetT, ptr %223, i32 0, i32 5
  store ptr %222, ptr %224, align 8, !tbaa !34
  br label %225

225:                                              ; preds = %220, %215
  %226 = load ptr, ptr %5, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.facetT, ptr %226, i32 0, i32 5
  %228 = load ptr, ptr %227, align 8, !tbaa !34
  store ptr %228, ptr %12, align 8, !tbaa !5
  br label %251

229:                                              ; preds = %212
  %230 = load i32, ptr %14, align 4, !tbaa !9
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %248, label %232

232:                                              ; preds = %229
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.facetT, ptr %233, i32 0, i32 15
  %235 = load i32, ptr %234, align 8
  %236 = lshr i32 %235, 13
  %237 = and i32 %236, 1
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %239, label %246

239:                                              ; preds = %232
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.facetT, ptr %240, i32 0, i32 15
  %242 = load i32, ptr %241, align 8
  %243 = lshr i32 %242, 9
  %244 = and i32 %243, 1
  %245 = icmp ne i32 %244, 0
  br i1 %245, label %246, label %248

246:                                              ; preds = %239, %232
  store i32 1, ptr %14, align 4, !tbaa !9
  %247 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %247, i32 noundef 7062, ptr noundef @.str.37)
  br label %248

248:                                              ; preds = %246, %239, %229
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  %250 = call ptr @qh_getcentrum(ptr noundef %249)
  store ptr %250, ptr %12, align 8, !tbaa !5
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %251

251:                                              ; preds = %248, %225
  store ptr null, ptr %6, align 8, !tbaa !5
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.facetT, ptr %252, i32 0, i32 10
  %254 = load ptr, ptr %253, align 8, !tbaa !23
  %255 = icmp ne ptr %254, null
  br i1 %255, label %256, label %352

256:                                              ; preds = %251
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.facetT, ptr %257, i32 0, i32 10
  %259 = load ptr, ptr %258, align 8, !tbaa !23
  %260 = getelementptr inbounds %struct.setT, ptr %259, i32 0, i32 1
  %261 = getelementptr inbounds [1 x %union.setelemT], ptr %260, i64 0, i64 0
  store ptr %261, ptr %7, align 8, !tbaa !5
  br label %262

262:                                              ; preds = %350, %299, %284, %256
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  %264 = getelementptr inbounds ptr, ptr %263, i32 1
  store ptr %264, ptr %7, align 8, !tbaa !5
  %265 = load ptr, ptr %263, align 8, !tbaa !5
  store ptr %265, ptr %6, align 8, !tbaa !5
  %266 = icmp ne ptr %265, null
  br i1 %266, label %267, label %351

267:                                              ; preds = %262
  %268 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 120), align 4, !tbaa !22
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %270, label %285

270:                                              ; preds = %267
  %271 = load ptr, ptr %5, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.facetT, ptr %271, i32 0, i32 15
  %273 = load i32, ptr %272, align 8
  %274 = lshr i32 %273, 13
  %275 = and i32 %274, 1
  %276 = icmp ne i32 %275, 0
  br i1 %276, label %277, label %285

277:                                              ; preds = %270
  %278 = load ptr, ptr %6, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.facetT, ptr %278, i32 0, i32 15
  %280 = load i32, ptr %279, align 8
  %281 = lshr i32 %280, 13
  %282 = and i32 %281, 1
  %283 = icmp ne i32 %282, 0
  br i1 %283, label %284, label %285

284:                                              ; preds = %277
  br label %262, !llvm.loop !35

285:                                              ; preds = %277, %270, %267
  %286 = load ptr, ptr %5, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.facetT, ptr %286, i32 0, i32 15
  %288 = load i32, ptr %287, align 8
  %289 = lshr i32 %288, 9
  %290 = and i32 %289, 1
  %291 = icmp ne i32 %290, 0
  br i1 %291, label %299, label %292

292:                                              ; preds = %285
  %293 = load ptr, ptr %6, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.facetT, ptr %293, i32 0, i32 15
  %295 = load i32, ptr %294, align 8
  %296 = lshr i32 %295, 9
  %297 = and i32 %296, 1
  %298 = icmp ne i32 %297, 0
  br i1 %298, label %299, label %300

299:                                              ; preds = %292, %285
  br label %262, !llvm.loop !35

300:                                              ; preds = %292
  %301 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 53), align 8, !tbaa !17
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 53), align 8, !tbaa !17
  %303 = load ptr, ptr %12, align 8, !tbaa !5
  %304 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %303, ptr noundef %304, ptr noundef %11)
  %305 = load double, ptr %11, align 8, !tbaa !29
  %306 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 128), align 8, !tbaa !30
  %307 = fcmp ogt double %305, %306
  br i1 %307, label %308, label %327

308:                                              ; preds = %300
  %309 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 27), align 8, !tbaa !17
  %310 = add nsw i32 %309, 1
  store i32 %310, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 27), align 8, !tbaa !17
  call void @qh_precision(ptr noundef @.str.32)
  %311 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %312 = load ptr, ptr %5, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.facetT, ptr %312, i32 0, i32 14
  %314 = load i32, ptr %313, align 4, !tbaa !20
  %315 = load ptr, ptr %6, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.facetT, ptr %315, i32 0, i32 14
  %317 = load i32, ptr %316, align 4, !tbaa !20
  %318 = load ptr, ptr %5, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.facetT, ptr %318, i32 0, i32 14
  %320 = load i32, ptr %319, align 4, !tbaa !20
  %321 = load double, ptr %11, align 8, !tbaa !29
  %322 = load ptr, ptr %6, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.facetT, ptr %322, i32 0, i32 14
  %324 = load i32, ptr %323, align 4, !tbaa !20
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %311, i32 noundef 6117, ptr noundef @.str.38, i32 noundef %314, i32 noundef %317, i32 noundef %320, double noundef %321, i32 noundef %324)
  %325 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %325, ptr %8, align 8, !tbaa !5
  %326 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %326, ptr %9, align 8, !tbaa !5
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %350

327:                                              ; preds = %300
  %328 = load double, ptr %11, align 8, !tbaa !29
  %329 = fcmp oge double %328, 0.000000e+00
  br i1 %329, label %330, label %349

330:                                              ; preds = %327
  %331 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 37), align 8, !tbaa !17
  %332 = add nsw i32 %331, 1
  store i32 %332, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 37), align 8, !tbaa !17
  call void @qh_precision(ptr noundef @.str.34)
  %333 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %334 = load ptr, ptr %5, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.facetT, ptr %334, i32 0, i32 14
  %336 = load i32, ptr %335, align 4, !tbaa !20
  %337 = load ptr, ptr %6, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.facetT, ptr %337, i32 0, i32 14
  %339 = load i32, ptr %338, align 4, !tbaa !20
  %340 = load ptr, ptr %5, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.facetT, ptr %340, i32 0, i32 14
  %342 = load i32, ptr %341, align 4, !tbaa !20
  %343 = load double, ptr %11, align 8, !tbaa !29
  %344 = load ptr, ptr %6, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.facetT, ptr %344, i32 0, i32 14
  %346 = load i32, ptr %345, align 4, !tbaa !20
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %333, i32 noundef 6118, ptr noundef @.str.39, i32 noundef %336, i32 noundef %339, i32 noundef %342, double noundef %343, i32 noundef %346)
  %347 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %347, ptr %8, align 8, !tbaa !5
  %348 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %348, ptr %9, align 8, !tbaa !5
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %349

349:                                              ; preds = %330, %327
  br label %350

350:                                              ; preds = %349, %308
  br label %262, !llvm.loop !35

351:                                              ; preds = %262
  br label %352

352:                                              ; preds = %351, %251
  %353 = load i32, ptr %15, align 4, !tbaa !9
  %354 = icmp ne i32 %353, 0
  br i1 %354, label %355, label %358

355:                                              ; preds = %352
  %356 = load ptr, ptr %12, align 8, !tbaa !5
  %357 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 153), align 8, !tbaa !36
  call void @qh_memfree(ptr noundef %356, i32 noundef %357)
  br label %358

358:                                              ; preds = %355, %352
  br label %359

359:                                              ; preds = %358, %209
  br label %360

360:                                              ; preds = %359, %48
  %361 = load ptr, ptr %5, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.facetT, ptr %361, i32 0, i32 7
  %363 = load ptr, ptr %362, align 8, !tbaa !18
  store ptr %363, ptr %5, align 8, !tbaa !5
  br label %31, !llvm.loop !37

364:                                              ; preds = %39
  br label %365

365:                                              ; preds = %364, %26
  %366 = load i32, ptr %13, align 4, !tbaa !9
  %367 = icmp ne i32 %366, 0
  br i1 %367, label %368, label %374

368:                                              ; preds = %365
  %369 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 16), align 4, !tbaa !38
  %370 = icmp ne i32 %369, 0
  br i1 %370, label %374, label %371

371:                                              ; preds = %368
  %372 = load ptr, ptr %8, align 8, !tbaa !5
  %373 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 3, ptr noundef %372, ptr noundef %373)
  br label %374

374:                                              ; preds = %371, %368, %365
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  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 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

declare void @qh_precision(ptr noundef) #1

declare void @qh_errexit(i32 noundef, ptr noundef, ptr noundef) #1

declare ptr @qh_getcentrum(ptr noundef) #1

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


; 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.27 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [94 x i8], align 1

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

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

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

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

declare void @qh_errexit2(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @qh_pointid(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_checkconvex(ptr noundef %0, i32 noundef %1) local_unnamed_addr #2 {
  %3 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %4 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %6, label %8

6:                                                ; preds = %2
  %7 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %7, i32 noundef 1026, ptr noundef nonnull @.str.27) #3
  br label %8

8:                                                ; preds = %6, %2
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 484), align 4, !tbaa !14
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %10, label %11

10:                                               ; preds = %8
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 216), align 8, !tbaa !15
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 296), align 8, !tbaa !15
  br label %11

11:                                               ; preds = %10, %8
  %.not110 = icmp eq ptr %0, null
  br i1 %.not110, label %.critedge.thread, label %.preheader

.preheader:                                       ; preds = %11
  %12 = icmp eq i32 %1, 1
  br label %13

13:                                               ; preds = %.preheader, %.thread149
  %.072275 = phi i32 [ 0, %.preheader ], [ %.2, %.thread149 ]
  %.074274 = phi i32 [ 0, %.preheader ], [ %.3, %.thread149 ]
  %.077273 = phi i32 [ 0, %.preheader ], [ %.7, %.thread149 ]
  %.082272 = phi ptr [ %0, %.preheader ], [ %193, %.thread149 ]
  %.083271 = phi ptr [ null, %.preheader ], [ %.790, %.thread149 ]
  %.092270 = phi ptr [ null, %.preheader ], [ %.799, %.thread149 ]
  %14 = getelementptr inbounds i8, ptr %.082272, i64 56
  %15 = load ptr, ptr %14, align 8, !tbaa !16
  %.not112 = icmp eq ptr %15, null
  br i1 %.not112, label %.critedge, label %16

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %.082272, i64 112
  %18 = load i32, ptr %17, align 8
  %19 = and i32 %18, 65536
  %.not113 = icmp eq i32 %19, 0
  br i1 %.not113, label %24, label %20

20:                                               ; preds = %16
  call void @qh_precision(ptr noundef nonnull @.str.28) #3
  %21 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  %22 = getelementptr inbounds i8, ptr %.082272, i64 108
  %23 = load i32, ptr %22, align 4, !tbaa !18
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %21, i32 noundef 6113, ptr noundef nonnull @.str.29, i32 noundef %23) #3
  br label %.thread149

24:                                               ; preds = %16
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 176), align 8, !tbaa !19
  %.not114 = icmp eq i32 %25, 0
  br i1 %.not114, label %30, label %26

26:                                               ; preds = %24
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1716), align 4, !tbaa !20
  %.not115 = icmp ne i32 %27, 0
  %28 = and i32 %18, 8704
  %29 = icmp eq i32 %28, 8192
  %or.cond138 = and i1 %29, %.not115
  br i1 %or.cond138, label %30, label %.thread

30:                                               ; preds = %26, %24
  %31 = getelementptr inbounds i8, ptr %.082272, i64 80
  %32 = load ptr, ptr %31, align 8, !tbaa !21
  %.not118 = icmp eq ptr %32, null
  br i1 %.not118, label %.thread149, label %33

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %32, i64 8
  %35 = getelementptr inbounds i8, ptr %.082272, i64 64
  %36 = getelementptr inbounds i8, ptr %.082272, i64 108
  %37 = load ptr, ptr %34, align 8, !tbaa !22
  %.not119.peel399 = icmp eq ptr %37, null
  br i1 %.not119.peel399, label %.loopexit321, label %.lr.ph406

.lr.ph406:                                        ; preds = %33, %.outer160
  %38 = phi ptr [ %113, %.outer160 ], [ %37, %33 ]
  %.0.ph405 = phi i32 [ %.lcssa286, %.outer160 ], [ 0, %33 ]
  %.071.ph404 = phi i32 [ %.071.lcssa285, %.outer160 ], [ 1, %33 ]
  %.178.ph403 = phi i32 [ %.279, %.outer160 ], [ %.077273, %33 ]
  %.184.ph402 = phi ptr [ %.285, %.outer160 ], [ %.083271, %33 ]
  %.193.ph401 = phi ptr [ %.294, %.outer160 ], [ %.092270, %33 ]
  %.0101.ph400 = phi ptr [ %.lcssa287, %.outer160 ], [ %34, %33 ]
  %39 = getelementptr inbounds i8, ptr %.0101.ph400, i64 8
  %40 = add nsw i32 %.0.ph405, 1
  %41 = getelementptr inbounds i8, ptr %38, i64 112
  %42 = load i32, ptr %41, align 8
  %43 = and i32 %42, 8704
  %or.cond139.peel = icmp eq i32 %43, 8192
  br i1 %or.cond139.peel, label %.loopexit322, label %.peel.next

.peel.next:                                       ; preds = %.lr.ph406, %45
  %.0101 = phi ptr [ %46, %45 ], [ %39, %.lr.ph406 ]
  %.0 = phi i32 [ %47, %45 ], [ %40, %.lr.ph406 ]
  %44 = load ptr, ptr %.0101, align 8, !tbaa !22
  %.not119 = icmp eq ptr %44, null
  br i1 %.not119, label %.thread, label %45

45:                                               ; preds = %.peel.next
  %46 = getelementptr inbounds i8, ptr %.0101, i64 8
  %47 = add nsw i32 %.0, 1
  %48 = getelementptr inbounds i8, ptr %44, i64 112
  %49 = load i32, ptr %48, align 8
  %50 = and i32 %49, 8704
  %or.cond139 = icmp eq i32 %50, 8192
  br i1 %or.cond139, label %.loopexit322, label %.peel.next, !llvm.loop !23

.loopexit322:                                     ; preds = %45, %.lr.ph406
  %.lcssa287 = phi ptr [ %39, %.lr.ph406 ], [ %46, %45 ]
  %.lcssa286 = phi i32 [ %40, %.lr.ph406 ], [ %47, %45 ]
  %.071.lcssa285 = phi i32 [ %.071.ph404, %.lr.ph406 ], [ 0, %45 ]
  %.0.lcssa284 = phi i32 [ %.0.ph405, %.lr.ph406 ], [ %.0, %45 ]
  %.lcssa283 = phi ptr [ %38, %.lr.ph406 ], [ %44, %45 ]
  %51 = load ptr, ptr %35, align 8, !tbaa !26
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  %53 = sext i32 %.0.lcssa284 to i64
  %54 = getelementptr inbounds [1 x %union.setelemT], ptr %52, i64 0, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %57 = load ptr, ptr %56, align 8, !tbaa !27
  call void @qh_distplane(ptr noundef %57, ptr noundef nonnull %.lcssa283, ptr noundef nonnull %3) #3
  %58 = load double, ptr %3, align 8, !tbaa !29
  %59 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1776), align 8, !tbaa !30
  %60 = fneg double %59
  %61 = fcmp ogt double %58, %60
  br i1 %61, label %62, label %.outer160

62:                                               ; preds = %.loopexit322
  br i1 %12, label %63, label %66

63:                                               ; preds = %62
  call void @qh_precision(ptr noundef nonnull @.str.30) #3
  %64 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  %65 = load double, ptr %3, align 8, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %64, i32 noundef 6114, ptr noundef nonnull @.str.31, double noundef %65) #3
  call void @qh_errexit(i32 noundef 2, ptr noundef null, ptr noundef null) #3
  %.pre = load double, ptr %3, align 8, !tbaa !29
  %.pre328 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1776), align 8, !tbaa !30
  br label %66

66:                                               ; preds = %63, %62
  %67 = phi double [ %.pre328, %63 ], [ %59, %62 ]
  %68 = phi double [ %.pre, %63 ], [ %58, %62 ]
  %69 = fcmp ogt double %68, %67
  br i1 %69, label %70, label %82

70:                                               ; preds = %66
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 216), align 8, !tbaa !15
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 216), align 8, !tbaa !15
  call void @qh_precision(ptr noundef nonnull @.str.32) #3
  %73 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  %74 = load i32, ptr %36, align 4, !tbaa !18
  %75 = getelementptr inbounds i8, ptr %.lcssa283, i64 108
  %76 = load i32, ptr %75, align 4, !tbaa !18
  %77 = load ptr, ptr %56, align 8, !tbaa !27
  %78 = call i32 @qh_pointid(ptr noundef %77) #3
  %79 = getelementptr inbounds i8, ptr %55, i64 32
  %80 = load i32, ptr %79, align 8, !tbaa !31
  %81 = load double, ptr %3, align 8, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %73, i32 noundef 6115, ptr noundef nonnull @.str.33, i32 noundef %74, i32 noundef %76, i32 noundef %78, i32 noundef %80, double noundef %81) #3
  br label %.outer160

82:                                               ; preds = %66
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1716), align 4, !tbaa !20
  %.not122 = icmp eq i32 %83, 0
  br i1 %.not122, label %98, label %84

84:                                               ; preds = %82
  %85 = fcmp ogt double %68, 0.000000e+00
  br i1 %85, label %86, label %.outer160

86:                                               ; preds = %84
  %87 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 296), align 8, !tbaa !15
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 296), align 8, !tbaa !15
  call void @qh_precision(ptr noundef nonnull @.str.34) #3
  %89 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  %90 = load i32, ptr %36, align 4, !tbaa !18
  %91 = getelementptr inbounds i8, ptr %.lcssa283, i64 108
  %92 = load i32, ptr %91, align 4, !tbaa !18
  %93 = load ptr, ptr %56, align 8, !tbaa !27
  %94 = call i32 @qh_pointid(ptr noundef %93) #3
  %95 = getelementptr inbounds i8, ptr %55, i64 32
  %96 = load i32, ptr %95, align 8, !tbaa !31
  %97 = load double, ptr %3, align 8, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %89, i32 noundef 6116, ptr noundef nonnull @.str.35, i32 noundef %90, i32 noundef %92, i32 noundef %94, i32 noundef %96, double noundef %97) #3
  br label %.outer160

98:                                               ; preds = %82
  %99 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 296), align 8, !tbaa !15
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 296), align 8, !tbaa !15
  call void @qh_precision(ptr noundef nonnull @.str.34) #3
  %101 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !5
  %.not123 = icmp eq i32 %101, 0
  br i1 %.not123, label %.outer160, label %102

102:                                              ; preds = %98
  %103 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  %104 = load i32, ptr %36, align 4, !tbaa !18
  %105 = getelementptr inbounds i8, ptr %.lcssa283, i64 108
  %106 = load i32, ptr %105, align 4, !tbaa !18
  %107 = load ptr, ptr %56, align 8, !tbaa !27
  %108 = call i32 @qh_pointid(ptr noundef %107) #3
  %109 = getelementptr inbounds i8, ptr %55, i64 32
  %110 = load i32, ptr %109, align 8, !tbaa !31
  %111 = load double, ptr %3, align 8, !tbaa !29
  %112 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2588), align 4, !tbaa !32
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %103, i32 noundef 22, ptr noundef nonnull @.str.36, i32 noundef %104, i32 noundef %106, i32 noundef %108, i32 noundef %110, double noundef %111, i32 noundef %112) #3
  br label %.outer160

.outer160:                                        ; preds = %70, %98, %102, %84, %86, %.loopexit322
  %.294 = phi ptr [ %.082272, %70 ], [ %.082272, %86 ], [ %.193.ph401, %84 ], [ %.193.ph401, %102 ], [ %.193.ph401, %98 ], [ %.193.ph401, %.loopexit322 ]
  %.285 = phi ptr [ %.lcssa283, %70 ], [ %.lcssa283, %86 ], [ %.184.ph402, %84 ], [ %.184.ph402, %102 ], [ %.184.ph402, %98 ], [ %.184.ph402, %.loopexit322 ]
  %.279 = phi i32 [ 1, %70 ], [ 1, %86 ], [ %.178.ph403, %84 ], [ %.178.ph403, %102 ], [ %.178.ph403, %98 ], [ %.178.ph403, %.loopexit322 ]
  %113 = load ptr, ptr %.lcssa287, align 8, !tbaa !22
  %.not119.peel = icmp eq ptr %113, null
  br i1 %.not119.peel, label %.loopexit321, label %.lr.ph406, !llvm.loop !33

.loopexit321:                                     ; preds = %.outer160, %33
  %.193.ph.lcssa = phi ptr [ %.092270, %33 ], [ %.294, %.outer160 ]
  %.184.ph.lcssa = phi ptr [ %.083271, %33 ], [ %.285, %.outer160 ]
  %.178.ph.lcssa = phi i32 [ %.077273, %33 ], [ %.279, %.outer160 ]
  %.071.ph.lcssa = phi i32 [ 1, %33 ], [ %.071.lcssa285, %.outer160 ]
  %.not124 = icmp eq i32 %.071.ph.lcssa, 0
  br i1 %.not124, label %.thread, label %.thread149

.thread:                                          ; preds = %.peel.next, %26, %.loopexit321
  %.380148 = phi i32 [ %.178.ph.lcssa, %.loopexit321 ], [ %.077273, %26 ], [ %.178.ph403, %.peel.next ]
  %.386147 = phi ptr [ %.184.ph.lcssa, %.loopexit321 ], [ %.083271, %26 ], [ %.184.ph402, %.peel.next ]
  %.395146 = phi ptr [ %.193.ph.lcssa, %.loopexit321 ], [ %.092270, %26 ], [ %.193.ph401, %.peel.next ]
  %114 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2584), align 8, !tbaa !34
  %115 = icmp eq i32 %114, 2
  br i1 %115, label %116, label %121

116:                                              ; preds = %.thread
  %117 = getelementptr inbounds i8, ptr %.082272, i64 40
  %118 = load ptr, ptr %117, align 8, !tbaa !35
  %.not128 = icmp eq ptr %118, null
  br i1 %.not128, label %119, label %129

119:                                              ; preds = %116
  %120 = call ptr @qh_getcentrum(ptr noundef nonnull %.082272) #3
  store ptr %120, ptr %117, align 8, !tbaa !35
  br label %129

121:                                              ; preds = %.thread
  %.not125 = icmp eq i32 %.074274, 0
  br i1 %.not125, label %122, label %127

122:                                              ; preds = %121
  %123 = load i32, ptr %17, align 8
  %124 = and i32 %123, 8704
  %or.cond140 = icmp eq i32 %124, 8192
  br i1 %or.cond140, label %127, label %125

125:                                              ; preds = %122
  %126 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %126, i32 noundef 7062, ptr noundef nonnull @.str.37) #3
  br label %127

127:                                              ; preds = %122, %125, %121
  %.175 = phi i32 [ 1, %121 ], [ 1, %125 ], [ 0, %122 ]
  %128 = call ptr @qh_getcentrum(ptr noundef nonnull %.082272) #3
  br label %129

129:                                              ; preds = %116, %119, %127
  %.081 = phi ptr [ %128, %127 ], [ %120, %119 ], [ %118, %116 ]
  %.276 = phi i32 [ %.175, %127 ], [ %.074274, %119 ], [ %.074274, %116 ]
  %.173 = phi i32 [ 1, %127 ], [ %.072275, %119 ], [ %.072275, %116 ]
  %130 = getelementptr inbounds i8, ptr %.082272, i64 80
  %131 = load ptr, ptr %130, align 8, !tbaa !21
  %.not129 = icmp eq ptr %131, null
  br i1 %.not129, label %.loopexit, label %132

132:                                              ; preds = %129
  %133 = getelementptr inbounds i8, ptr %131, i64 8
  %134 = load ptr, ptr %133, align 8, !tbaa !22
  %.not130173260 = icmp eq ptr %134, null
  br i1 %.not130173260, label %.loopexit, label %.lr.ph.lr.ph

.lr.ph.lr.ph:                                     ; preds = %132
  %135 = getelementptr inbounds i8, ptr %131, i64 16
  %136 = getelementptr inbounds i8, ptr %.082272, i64 108
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.lr.ph, %.outer
  %137 = phi ptr [ %134, %.lr.ph.lr.ph ], [ %190, %.outer ]
  %138 = phi ptr [ %135, %.lr.ph.lr.ph ], [ %189, %.outer ]
  %.4.ph265 = phi i32 [ %.380148, %.lr.ph.lr.ph ], [ %.5, %.outer ]
  %.487.ph263 = phi ptr [ %.386147, %.lr.ph.lr.ph ], [ %.588, %.outer ]
  %.496.ph261 = phi ptr [ %.395146, %.lr.ph.lr.ph ], [ %.597, %.outer ]
  %139 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1716), align 4, !tbaa !20
  %.not132 = icmp eq i32 %139, 0
  %140 = load i32, ptr %17, align 8
  br i1 %.not132, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  %141 = and i32 %140, 512
  %.not135.us = icmp eq i32 %141, 0
  br i1 %.not135.us, label %.lr.ph.split.us.split.us, label %.loopexit

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph.split.us, %.backedge.us.us
  %142 = phi ptr [ %148, %.backedge.us.us ], [ %137, %.lr.ph.split.us ]
  %143 = phi ptr [ %147, %.backedge.us.us ], [ %138, %.lr.ph.split.us ]
  %144 = getelementptr inbounds i8, ptr %142, i64 112
  %145 = load i32, ptr %144, align 8
  %146 = and i32 %145, 512
  %.not136.us.us = icmp eq i32 %146, 0
  br i1 %.not136.us.us, label %.split.us.split.us, label %.backedge.us.us

.backedge.us.us:                                  ; preds = %.lr.ph.split.us.split.us
  %147 = getelementptr inbounds i8, ptr %143, i64 8
  %148 = load ptr, ptr %143, align 8, !tbaa !22
  %.not130.us.us = icmp eq ptr %148, null
  br i1 %.not130.us.us, label %.loopexit, label %.lr.ph.split.us.split.us, !llvm.loop !36

.lr.ph.split:                                     ; preds = %.lr.ph
  %149 = and i32 %140, 8192
  %.not133 = icmp eq i32 %149, 0
  %150 = and i32 %140, 512
  %.not135.us183 = icmp eq i32 %150, 0
  br i1 %.not133, label %.lr.ph.split.split.us, label %.lr.ph.split.split

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split
  br i1 %.not135.us183, label %.lr.ph.split.split.us.split.us, label %.loopexit

.lr.ph.split.split.us.split.us:                   ; preds = %.lr.ph.split.split.us, %.backedge.us185.us
  %151 = phi ptr [ %157, %.backedge.us185.us ], [ %137, %.lr.ph.split.split.us ]
  %152 = phi ptr [ %156, %.backedge.us185.us ], [ %138, %.lr.ph.split.split.us ]
  %153 = getelementptr inbounds i8, ptr %151, i64 112
  %154 = load i32, ptr %153, align 8
  %155 = and i32 %154, 512
  %.not136.us184.us = icmp eq i32 %155, 0
  br i1 %.not136.us184.us, label %.split.us.split.us, label %.backedge.us185.us

.backedge.us185.us:                               ; preds = %.lr.ph.split.split.us.split.us
  %156 = getelementptr inbounds i8, ptr %152, i64 8
  %157 = load ptr, ptr %152, align 8, !tbaa !22
  %.not130.us186.us = icmp eq ptr %157, null
  br i1 %.not130.us186.us, label %.loopexit, label %.lr.ph.split.split.us.split.us, !llvm.loop !36

.lr.ph.split.split:                               ; preds = %.lr.ph.split, %.backedge
  %158 = phi ptr [ %165, %.backedge ], [ %137, %.lr.ph.split ]
  %159 = phi ptr [ %164, %.backedge ], [ %138, %.lr.ph.split ]
  %160 = getelementptr inbounds i8, ptr %158, i64 112
  %161 = load i32, ptr %160, align 8
  %162 = and i32 %161, 8704
  %163 = icmp eq i32 %162, 0
  %or.cond364 = select i1 %163, i1 %.not135.us183, i1 false
  br i1 %or.cond364, label %.split.us.split.us, label %.backedge

.backedge:                                        ; preds = %.lr.ph.split.split
  %164 = getelementptr inbounds i8, ptr %159, i64 8
  %165 = load ptr, ptr %159, align 8, !tbaa !22
  %.not130 = icmp eq ptr %165, null
  br i1 %.not130, label %.loopexit, label %.lr.ph.split.split, !llvm.loop !36

.split.us.split.us:                               ; preds = %.lr.ph.split.split, %.lr.ph.split.split.us.split.us, %.lr.ph.split.us.split.us
  %.us-phi = phi ptr [ %143, %.lr.ph.split.us.split.us ], [ %152, %.lr.ph.split.split.us.split.us ], [ %159, %.lr.ph.split.split ]
  %.us-phi179 = phi ptr [ %142, %.lr.ph.split.us.split.us ], [ %151, %.lr.ph.split.split.us.split.us ], [ %158, %.lr.ph.split.split ]
  %166 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 424), align 8, !tbaa !15
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 424), align 8, !tbaa !15
  call void @qh_distplane(ptr noundef %.081, ptr noundef nonnull %.us-phi179, ptr noundef nonnull %3) #3
  %168 = load double, ptr %3, align 8, !tbaa !29
  %169 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1776), align 8, !tbaa !30
  %170 = fcmp ogt double %168, %169
  br i1 %170, label %171, label %179

171:                                              ; preds = %.split.us.split.us
  %172 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 216), align 8, !tbaa !15
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 216), align 8, !tbaa !15
  call void @qh_precision(ptr noundef nonnull @.str.32) #3
  %174 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  %175 = load i32, ptr %136, align 4, !tbaa !18
  %176 = getelementptr inbounds i8, ptr %.us-phi179, i64 108
  %177 = load i32, ptr %176, align 4, !tbaa !18
  %178 = load double, ptr %3, align 8, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %174, i32 noundef 6117, ptr noundef nonnull @.str.38, i32 noundef %175, i32 noundef %177, i32 noundef %175, double noundef %178, i32 noundef %177) #3
  br label %.outer

179:                                              ; preds = %.split.us.split.us
  %180 = fcmp ult double %168, 0.000000e+00
  br i1 %180, label %.outer, label %181

181:                                              ; preds = %179
  %182 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 296), align 8, !tbaa !15
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 296), align 8, !tbaa !15
  call void @qh_precision(ptr noundef nonnull @.str.34) #3
  %184 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  %185 = load i32, ptr %136, align 4, !tbaa !18
  %186 = getelementptr inbounds i8, ptr %.us-phi179, i64 108
  %187 = load i32, ptr %186, align 4, !tbaa !18
  %188 = load double, ptr %3, align 8, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %184, i32 noundef 6118, ptr noundef nonnull @.str.39, i32 noundef %185, i32 noundef %187, i32 noundef %185, double noundef %188, i32 noundef %187) #3
  br label %.outer

.outer:                                           ; preds = %179, %181, %171
  %.597 = phi ptr [ %.082272, %171 ], [ %.082272, %181 ], [ %.496.ph261, %179 ]
  %.588 = phi ptr [ %.us-phi179, %171 ], [ %.us-phi179, %181 ], [ %.487.ph263, %179 ]
  %.5 = phi i32 [ 1, %171 ], [ 1, %181 ], [ %.4.ph265, %179 ]
  %189 = getelementptr inbounds i8, ptr %.us-phi, i64 8
  %190 = load ptr, ptr %.us-phi, align 8, !tbaa !22
  %.not130173 = icmp eq ptr %190, null
  br i1 %.not130173, label %.loopexit, label %.lr.ph, !llvm.loop !36

.loopexit:                                        ; preds = %.outer, %.lr.ph.split.split.us, %.lr.ph.split.us, %.backedge, %.backedge.us185.us, %.backedge.us.us, %132, %129
  %.698 = phi ptr [ %.395146, %129 ], [ %.395146, %132 ], [ %.496.ph261, %.backedge.us.us ], [ %.496.ph261, %.backedge.us185.us ], [ %.496.ph261, %.backedge ], [ %.597, %.outer ], [ %.496.ph261, %.lr.ph.split.split.us ], [ %.496.ph261, %.lr.ph.split.us ]
  %.689 = phi ptr [ %.386147, %129 ], [ %.386147, %132 ], [ %.487.ph263, %.backedge.us.us ], [ %.487.ph263, %.backedge.us185.us ], [ %.487.ph263, %.backedge ], [ %.588, %.outer ], [ %.487.ph263, %.lr.ph.split.split.us ], [ %.487.ph263, %.lr.ph.split.us ]
  %.6 = phi i32 [ %.380148, %129 ], [ %.380148, %132 ], [ %.4.ph265, %.backedge.us.us ], [ %.4.ph265, %.backedge.us185.us ], [ %.4.ph265, %.backedge ], [ %.5, %.outer ], [ %.4.ph265, %.lr.ph.split.split.us ], [ %.4.ph265, %.lr.ph.split.us ]
  %.not131 = icmp eq i32 %.173, 0
  br i1 %.not131, label %.thread149, label %191

191:                                              ; preds = %.loopexit
  %192 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !37
  call void @qh_memfree(ptr noundef %.081, i32 noundef %192) #3
  br label %.thread149

.thread149:                                       ; preds = %30, %.loopexit321, %191, %.loopexit, %20
  %.799 = phi ptr [ %.082272, %20 ], [ %.193.ph.lcssa, %.loopexit321 ], [ %.698, %191 ], [ %.698, %.loopexit ], [ %.092270, %30 ]
  %.790 = phi ptr [ %.083271, %20 ], [ %.184.ph.lcssa, %.loopexit321 ], [ %.689, %191 ], [ %.689, %.loopexit ], [ %.083271, %30 ]
  %.7 = phi i32 [ 1, %20 ], [ %.178.ph.lcssa, %.loopexit321 ], [ %.6, %191 ], [ %.6, %.loopexit ], [ %.077273, %30 ]
  %.3 = phi i32 [ %.074274, %20 ], [ %.074274, %.loopexit321 ], [ %.276, %191 ], [ %.276, %.loopexit ], [ %.074274, %30 ]
  %.2 = phi i32 [ %.072275, %20 ], [ %.072275, %.loopexit321 ], [ 1, %191 ], [ 0, %.loopexit ], [ %.072275, %30 ]
  %193 = load ptr, ptr %14, align 8, !tbaa !16
  %.not111 = icmp eq ptr %193, null
  br i1 %.not111, label %.critedge, label %13, !llvm.loop !38

.critedge:                                        ; preds = %13, %.thread149
  %.092.lcssa = phi ptr [ %.092270, %13 ], [ %.799, %.thread149 ]
  %.083.lcssa = phi ptr [ %.083271, %13 ], [ %.790, %.thread149 ]
  %.077.lcssa = phi i32 [ %.077273, %13 ], [ %.7, %.thread149 ]
  %194 = icmp eq i32 %.077.lcssa, 0
  %195 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 84), align 4
  %196 = icmp ne i32 %195, 0
  %or.cond = select i1 %194, i1 true, i1 %196
  br i1 %or.cond, label %.critedge.thread, label %197

197:                                              ; preds = %.critedge
  call void @qh_errexit2(i32 noundef 3, ptr noundef %.092.lcssa, ptr noundef %.083.lcssa) #3
  br label %.critedge.thread

.critedge.thread:                                 ; preds = %11, %197, %.critedge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret void
}

declare void @qh_precision(ptr noundef) local_unnamed_addr #1

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

declare ptr @qh_getcentrum(ptr noundef) local_unnamed_addr #1

declare void @qh_memfree(ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 128}
!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 2408}
!14 = !{!6, !7, i64 484}
!15 = !{!8, !8, i64 0}
!16 = !{!17, !11, i64 56}
!17 = !{!"facetT", !10, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !8, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115}
!18 = !{!17, !7, i64 108}
!19 = !{!6, !7, i64 176}
!20 = !{!6, !7, i64 1716}
!21 = !{!17, !11, i64 80}
!22 = !{!11, !11, i64 0}
!23 = distinct !{!23, !24, !25}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!"llvm.loop.peeled.count", i32 1}
!26 = !{!17, !11, i64 64}
!27 = !{!28, !11, i64 16}
!28 = !{!"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}
!29 = !{!10, !10, i64 0}
!30 = !{!6, !10, i64 1776}
!31 = !{!28, !7, i64 32}
!32 = !{!6, !7, i64 2588}
!33 = distinct !{!33, !24}
!34 = !{!6, !7, i64 2584}
!35 = !{!17, !11, i64 40}
!36 = distinct !{!36, !24}
!37 = !{!6, !7, i64 2424}
!38 = distinct !{!38, !24}


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