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

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

%struct.qhT = type { i32, i32, i32, 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.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [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.tm = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, ptr }
%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.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }

@qh_qh = external global %struct.qhT, align 8
@qhmem = external global %struct.qhmemT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.18 = external hidden unnamed_addr constant [155 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [208 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [118 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
declare i64 @clock() #1

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_buildtracing(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store double 0.000000e+00, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %13 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 67), align 4, !tbaa !11
  store i32 %13, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 8, !tbaa !15
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 67), align 4, !tbaa !11
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %49, label %16

16:                                               ; preds = %2
  %17 = call i64 @time(ptr noundef %9) #4
  %18 = call ptr @localtime(ptr noundef %9) #4
  store ptr %18, ptr %10, align 8, !tbaa !5
  %19 = call i64 @clock() #4
  %20 = uitofp i64 %19 to float
  %21 = load i64, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 176), align 8, !tbaa !16
  %22 = uitofp i64 %21 to float
  %23 = fsub float %20, %22
  store float %23, ptr %6, align 4, !tbaa !17
  %24 = load float, ptr %6, align 4, !tbaa !17
  %25 = fdiv float %24, 1.000000e+06
  store float %25, ptr %6, align 4, !tbaa !17
  %26 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 199), align 8, !tbaa !19
  %27 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 41), align 8, !tbaa !19
  %28 = sub nsw i32 %26, %27
  %29 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 40), align 8, !tbaa !19
  %30 = add nsw i32 %28, %29
  store i32 %30, ptr %7, align 4, !tbaa !20
  %31 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !21
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.tm, ptr %32, i32 0, i32 2
  %34 = load i32, ptr %33, align 8, !tbaa !22
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.tm, ptr %35, i32 0, i32 1
  %37 = load i32, ptr %36, align 4, !tbaa !24
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.tm, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 8, !tbaa !25
  %41 = load float, ptr %6, align 4, !tbaa !17
  %42 = fpext float %41 to double
  %43 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 173), align 8, !tbaa !26
  %44 = sub i32 %43, 1
  %45 = load i32, ptr %7, align 4, !tbaa !20
  %46 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 169), align 8, !tbaa !27
  %47 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 170), align 4, !tbaa !28
  %48 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 180), align 4, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %31, i32 noundef 8118, ptr noundef @.str.18, i32 noundef %34, i32 noundef %37, i32 noundef %40, double noundef %42, i32 noundef %44, i32 noundef %45, i32 noundef %46, i32 noundef %47, i32 noundef %48)
  store i32 1, ptr %12, align 4
  br label %230

49:                                               ; preds = %2
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = call i32 @qh_pointid(ptr noundef %50)
  store i32 %51, ptr %8, align 4, !tbaa !20
  %52 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 88), align 4, !tbaa !30
  %53 = load i32, ptr %8, align 4, !tbaa !20
  %54 = icmp eq i32 %52, %53
  br i1 %54, label %55, label %58

55:                                               ; preds = %49
  %56 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 86), align 4, !tbaa !31
  store i32 %56, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !32
  %57 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 86), align 4, !tbaa !31
  store i32 %57, ptr getelementptr inbounds (%struct.qhmemT, ptr @qhmem, i32 0, i32 14), align 8, !tbaa !33
  br label %66

58:                                               ; preds = %49
  %59 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 88), align 4, !tbaa !30
  %60 = icmp ne i32 %59, -1
  br i1 %60, label %61, label %65

61:                                               ; preds = %58
  %62 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 89), align 8, !tbaa !35
  %63 = fcmp olt double %62, 0x7FDFFFFFFFFFFFFF
  br i1 %63, label %64, label %65

64:                                               ; preds = %61
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !32
  store i32 0, ptr getelementptr inbounds (%struct.qhmemT, ptr @qhmem, i32 0, i32 14), align 8, !tbaa !33
  br label %65

65:                                               ; preds = %64, %61, %58
  br label %66

66:                                               ; preds = %65, %55
  %67 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !36
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %128

69:                                               ; preds = %66
  %70 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 173), align 8, !tbaa !26
  %71 = sub i32 %70, 1
  %72 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 223), align 8, !tbaa !37
  %73 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !36
  %74 = add i32 %72, %73
  %75 = icmp ugt i32 %71, %74
  br i1 %75, label %76, label %128

76:                                               ; preds = %69
  %77 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 173), align 8, !tbaa !26
  %78 = sub i32 %77, 1
  store i32 %78, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 223), align 8, !tbaa !37
  %79 = call i64 @time(ptr noundef %9) #4
  %80 = call ptr @localtime(ptr noundef %9) #4
  store ptr %80, ptr %10, align 8, !tbaa !5
  %81 = call i64 @clock() #4
  %82 = uitofp i64 %81 to float
  %83 = load i64, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 176), align 8, !tbaa !16
  %84 = uitofp i64 %83 to float
  %85 = fsub float %82, %84
  store float %85, ptr %6, align 4, !tbaa !17
  %86 = load float, ptr %6, align 4, !tbaa !17
  %87 = fdiv float %86, 1.000000e+06
  store float %87, ptr %6, align 4, !tbaa !17
  %88 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 199), align 8, !tbaa !19
  %89 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 41), align 8, !tbaa !19
  %90 = sub nsw i32 %88, %89
  %91 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 40), align 8, !tbaa !19
  %92 = add nsw i32 %90, %91
  store i32 %92, ptr %7, align 4, !tbaa !20
  %93 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 55), align 8, !tbaa !19
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 55), align 8, !tbaa !19
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %95, ptr noundef %96, ptr noundef %5)
  %97 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !21
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.tm, ptr %98, i32 0, i32 2
  %100 = load i32, ptr %99, align 8, !tbaa !22
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.tm, ptr %101, i32 0, i32 1
  %103 = load i32, ptr %102, align 4, !tbaa !24
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.tm, ptr %104, i32 0, i32 0
  %106 = load i32, ptr %105, align 8, !tbaa !25
  %107 = load float, ptr %6, align 4, !tbaa !17
  %108 = fpext float %107 to double
  %109 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 173), align 8, !tbaa !26
  %110 = sub i32 %109, 1
  %111 = load i32, ptr %7, align 4, !tbaa !20
  %112 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 169), align 8, !tbaa !27
  %113 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 170), align 4, !tbaa !28
  %114 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 171), align 8, !tbaa !38
  %115 = add nsw i32 %114, 1
  %116 = load i32, ptr %8, align 4, !tbaa !20
  %117 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 175), align 8, !tbaa !39
  %118 = load double, ptr %5, align 8, !tbaa !9
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = icmp ne ptr %119, null
  br i1 %120, label %121, label %125

121:                                              ; preds = %76
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.facetT, ptr %122, i32 0, i32 14
  %124 = load i32, ptr %123, align 4, !tbaa !40
  br label %126

125:                                              ; preds = %76
  br label %126

126:                                              ; preds = %125, %121
  %127 = phi i32 [ %124, %121 ], [ -1, %125 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %97, i32 noundef 8119, ptr noundef @.str.19, i32 noundef %100, i32 noundef %103, i32 noundef %106, double noundef %108, i32 noundef %110, i32 noundef %111, i32 noundef %112, i32 noundef %113, i32 noundef %115, i32 noundef %116, i32 noundef %117, double noundef %118, i32 noundef %127)
  br label %161

128:                                              ; preds = %69, %66
  %129 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !32
  %130 = icmp sge i32 %129, 1
  br i1 %130, label %131, label %160

131:                                              ; preds = %128
  %132 = call i64 @clock() #4
  %133 = uitofp i64 %132 to float
  %134 = load i64, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 176), align 8, !tbaa !16
  %135 = uitofp i64 %134 to float
  %136 = fsub float %133, %135
  store float %136, ptr %6, align 4, !tbaa !17
  %137 = load float, ptr %6, align 4, !tbaa !17
  %138 = fdiv float %137, 1.000000e+06
  store float %138, ptr %6, align 4, !tbaa !17
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %139, ptr noundef %140, ptr noundef %5)
  %141 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !21
  %142 = load i32, ptr %8, align 4, !tbaa !20
  %143 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 175), align 8, !tbaa !39
  %144 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 169), align 8, !tbaa !27
  %145 = load double, ptr %5, align 8, !tbaa !9
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = icmp ne ptr %146, null
  br i1 %147, label %148, label %152

148:                                              ; preds = %131
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.facetT, ptr %149, i32 0, i32 14
  %151 = load i32, ptr %150, align 4, !tbaa !40
  br label %153

152:                                              ; preds = %131
  br label %153

153:                                              ; preds = %152, %148
  %154 = phi i32 [ %151, %148 ], [ -1, %152 ]
  %155 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 171), align 8, !tbaa !38
  %156 = add nsw i32 %155, 1
  %157 = load float, ptr %6, align 4, !tbaa !17
  %158 = fpext float %157 to double
  %159 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 180), align 4, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %141, i32 noundef 8120, ptr noundef @.str.20, i32 noundef %142, i32 noundef %143, i32 noundef %144, double noundef %145, i32 noundef %154, i32 noundef %156, double noundef %158, i32 noundef %159)
  br label %160

160:                                              ; preds = %153, %128
  br label %161

161:                                              ; preds = %160, %126
  %162 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 220), align 8, !tbaa !19
  %163 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !42
  %164 = sdiv i32 %163, 2
  %165 = icmp slt i32 %162, %164
  br i1 %165, label %166, label %169

166:                                              ; preds = %161
  %167 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !42
  %168 = sdiv i32 %167, 2
  store i32 %168, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 220), align 8, !tbaa !19
  br label %169

169:                                              ; preds = %166, %161
  %170 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !42
  %171 = icmp ugt i32 %170, 2147483647
  br i1 %171, label %172, label %194

172:                                              ; preds = %169
  %173 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 219), align 8, !tbaa !19
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 219), align 8, !tbaa !19
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !42
  %175 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 156), align 8, !tbaa !43
  store ptr %175, ptr %4, align 8, !tbaa !5
  br label %176

176:                                              ; preds = %189, %172
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = icmp ne ptr %177, null
  br i1 %178, label %179, label %184

179:                                              ; preds = %176
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.facetT, ptr %180, i32 0, i32 7
  %182 = load ptr, ptr %181, align 8, !tbaa !44
  %183 = icmp ne ptr %182, null
  br label %184

184:                                              ; preds = %179, %176
  %185 = phi i1 [ false, %176 ], [ %183, %179 ]
  br i1 %185, label %186, label %193

186:                                              ; preds = %184
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.facetT, ptr %187, i32 0, i32 13
  store i32 0, ptr %188, align 8, !tbaa !45
  br label %189

189:                                              ; preds = %186
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.facetT, ptr %190, i32 0, i32 7
  %192 = load ptr, ptr %191, align 8, !tbaa !44
  store ptr %192, ptr %4, align 8, !tbaa !5
  br label %176, !llvm.loop !46

193:                                              ; preds = %184
  br label %194

194:                                              ; preds = %193, %169
  %195 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 224), align 8, !tbaa !19
  %196 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !48
  %197 = sdiv i32 %196, 2
  %198 = icmp slt i32 %195, %197
  br i1 %198, label %199, label %202

199:                                              ; preds = %194
  %200 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !48
  %201 = sdiv i32 %200, 2
  store i32 %201, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 224), align 8, !tbaa !19
  br label %202

202:                                              ; preds = %199, %194
  %203 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !48
  %204 = icmp ugt i32 %203, 2147483647
  br i1 %204, label %205, label %227

205:                                              ; preds = %202
  %206 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 223), align 8, !tbaa !19
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 223), align 8, !tbaa !19
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !48
  %208 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !49
  store ptr %208, ptr %11, align 8, !tbaa !5
  br label %209

209:                                              ; preds = %222, %205
  %210 = load ptr, ptr %11, align 8, !tbaa !5
  %211 = icmp ne ptr %210, null
  br i1 %211, label %212, label %217

212:                                              ; preds = %209
  %213 = load ptr, ptr %11, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.vertexT, ptr %213, i32 0, i32 0
  %215 = load ptr, ptr %214, align 8, !tbaa !50
  %216 = icmp ne ptr %215, null
  br label %217

217:                                              ; preds = %212, %209
  %218 = phi i1 [ false, %209 ], [ %216, %212 ]
  br i1 %218, label %219, label %226

219:                                              ; preds = %217
  %220 = load ptr, ptr %11, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.vertexT, ptr %220, i32 0, i32 5
  store i32 0, ptr %221, align 4, !tbaa !52
  br label %222

222:                                              ; preds = %219
  %223 = load ptr, ptr %11, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.vertexT, ptr %223, i32 0, i32 0
  %225 = load ptr, ptr %224, align 8, !tbaa !50
  store ptr %225, ptr %11, align 8, !tbaa !5
  br label %209, !llvm.loop !53

226:                                              ; preds = %217
  br label %227

227:                                              ; preds = %226, %202
  %228 = load i32, ptr %8, align 4, !tbaa !20
  store i32 %228, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 180), align 4, !tbaa !29
  %229 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 8, !tbaa !15
  store i32 %229, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 67), align 4, !tbaa !11
  store i32 0, ptr %12, align 4
  br label %230

230:                                              ; preds = %227, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  %231 = load i32, ptr %12, align 4
  switch i32 %231, label %233 [
    i32 0, label %232
    i32 1, label %232
  ]

232:                                              ; preds = %230, %230
  ret void

233:                                              ; preds = %230
  unreachable
}

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

declare i32 @qh_pointid(ptr noundef) #2

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #1

; Function Attrs: nounwind
declare ptr @localtime(ptr noundef) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "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 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 #4 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 444}
!12 = !{!"qhT", !13, i64 0, !13, i64 4, !13, i64 8, !10, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !10, i64 56, !10, i64 64, !13, i64 72, !13, i64 76, !13, i64 80, !13, i64 84, !13, i64 88, !6, i64 96, !13, i64 104, !13, i64 108, !6, i64 112, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !13, i64 140, !13, i64 144, !10, i64 152, !10, i64 160, !13, i64 168, !13, i64 172, !13, i64 176, !10, i64 184, !10, i64 192, !13, i64 200, !10, i64 208, !13, i64 216, !13, i64 220, !13, i64 224, !13, i64 228, !13, i64 232, !13, i64 236, !13, i64 240, !13, i64 244, !13, i64 248, !13, i64 252, !13, i64 256, !13, i64 260, !13, i64 264, !13, i64 268, !13, i64 272, !13, i64 276, !13, i64 280, !13, i64 284, !13, i64 288, !13, i64 292, !7, i64 296, !13, i64 412, !13, i64 416, !13, i64 420, !13, i64 424, !13, i64 428, !13, i64 432, !13, i64 436, !13, i64 440, !13, i64 444, !10, i64 448, !10, i64 456, !10, i64 464, !13, i64 472, !13, i64 476, !13, i64 480, !13, i64 484, !13, i64 488, !13, i64 492, !13, i64 496, !13, i64 500, !13, i64 504, !13, i64 508, !13, i64 512, !13, i64 516, !13, i64 520, !13, i64 524, !13, i64 528, !13, i64 532, !13, i64 536, !13, i64 540, !10, i64 544, !13, i64 552, !13, i64 556, !13, i64 560, !13, i64 564, !13, i64 568, !13, i64 572, !13, i64 576, !13, i64 580, !10, i64 584, !13, i64 592, !6, i64 600, !6, i64 608, !13, i64 616, !13, i64 620, !13, i64 624, !13, i64 628, !13, i64 632, !6, i64 640, !13, i64 648, !6, i64 656, !13, i64 664, !7, i64 668, !13, i64 924, !7, i64 928, !7, i64 1184, !13, i64 1696, !13, i64 1700, !13, i64 1704, !13, i64 1708, !13, i64 1712, !13, i64 1716, !6, i64 1720, !6, i64 1728, !6, i64 1736, !6, 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, !13, i64 1856, !6, i64 1864, !10, i64 1872, !10, i64 1880, !10, i64 1888, !10, 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, !13, i64 2424, !13, i64 2428, !13, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !13, i64 2480, !13, i64 2484, !6, i64 2488, !13, i64 2496, !6, i64 2504, !6, i64 2512, !6, i64 2520, !6, i64 2528, !13, i64 2536, !13, i64 2540, !13, i64 2544, !13, i64 2548, !13, i64 2552, !13, i64 2556, !13, i64 2560, !14, i64 2568, !13, i64 2576, !13, i64 2580, !13, i64 2584, !13, i64 2588, !6, i64 2592, !13, i64 2600, !13, i64 2604, !10, i64 2608, !13, i64 2616, !10, i64 2624, !10, i64 2632, !10, i64 2640, !13, i64 2648, !13, i64 2652, !13, i64 2656, !13, i64 2660, !10, i64 2664, !10, i64 2672, !13, i64 2680, !13, i64 2684, !13, i64 2688, !13, i64 2692, !10, i64 2696, !10, i64 2704, !13, i64 2712, !13, i64 2716, !13, i64 2720, !13, 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, !13, i64 2792, !6, i64 2800, !6, i64 2808, !13, i64 2816, !13, i64 2820, !13, i64 2824, !6, i64 2832, !10, i64 2840, !10, i64 2848, !10, i64 2856, !13, i64 2864, !13, i64 2868, !6, i64 2872, !6, i64 2880, !13, i64 2888}
!13 = !{!"int", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !13, i64 2824}
!16 = !{!12, !14, i64 2568}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{!13, !13, i64 0}
!21 = !{!12, !6, i64 2408}
!22 = !{!23, !13, i64 8}
!23 = !{!"tm", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !14, i64 40, !6, i64 48}
!24 = !{!23, !13, i64 4}
!25 = !{!23, !13, i64 0}
!26 = !{!12, !13, i64 2552}
!27 = !{!12, !13, i64 2536}
!28 = !{!12, !13, i64 2540}
!29 = !{!12, !13, i64 2588}
!30 = !{!12, !13, i64 540}
!31 = !{!12, !13, i64 532}
!32 = !{!12, !13, i64 128}
!33 = !{!34, !13, i64 88}
!34 = !{!"qhmemT", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !13, i64 64, !6, i64 72, !6, i64 80, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !13, i64 140, !13, i64 144}
!35 = !{!12, !10, i64 544}
!36 = !{!12, !13, i64 476}
!37 = !{!12, !13, i64 2864}
!38 = !{!12, !13, i64 2544}
!39 = !{!12, !13, i64 2560}
!40 = !{!41, !13, i64 108}
!41 = !{!"facetT", !10, i64 0, !10, i64 8, !10, 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, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 113, !13, i64 113, !13, i64 113, !13, i64 113, !13, i64 113, !13, i64 113, !13, i64 113, !13, i64 114, !13, i64 114, !13, i64 114, !13, i64 114, !13, i64 114, !13, i64 114, !13, i64 114, !13, i64 114, !13, i64 115, !13, i64 115, !13, i64 115, !13, i64 115, !13, i64 115, !13, i64 115, !13, i64 115, !13, i64 115}
!42 = !{!12, !13, i64 2712}
!43 = !{!12, !6, i64 2440}
!44 = !{!41, !6, i64 56}
!45 = !{!41, !13, i64 104}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}
!48 = !{!12, !13, i64 2716}
!49 = !{!12, !6, i64 2512}
!50 = !{!51, !6, i64 0}
!51 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 40, !13, i64 40, !13, i64 40, !13, i64 40}
!52 = !{!51, !13, i64 36}
!53 = distinct !{!53, !47}


; 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.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [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 }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qhmem = external local_unnamed_addr global %struct.qhmemT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.18 = external hidden unnamed_addr constant [155 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [208 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [118 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
declare i64 @clock() local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_buildtracing(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca double, align 8
  %4 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  store double 0.000000e+00, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %5 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !9
  store i32 %5, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2824), align 8, !tbaa !14
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !9
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %6, label %32

6:                                                ; preds = %2
  %7 = call i64 @time(ptr noundef nonnull %4) #4
  %8 = call ptr @localtime(ptr noundef nonnull %4) #4
  %9 = call i64 @clock() #4
  %10 = uitofp i64 %9 to float
  %11 = load i64, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2568), align 8, !tbaa !15
  %12 = uitofp i64 %11 to float
  %13 = fsub float %10, %12
  %14 = fdiv float %13, 1.000000e+06
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1592), align 8, !tbaa !16
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 328), align 8, !tbaa !16
  %17 = sub i32 %15, %16
  %18 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 320), align 8, !tbaa !16
  %19 = add nsw i32 %17, %18
  %20 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !17
  %21 = getelementptr inbounds i8, ptr %8, i64 8
  %22 = load i32, ptr %21, align 8, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %8, i64 4
  %24 = load i32, ptr %23, align 4, !tbaa !20
  %25 = load i32, ptr %8, align 8, !tbaa !21
  %26 = fpext float %14 to double
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2552), align 8, !tbaa !22
  %28 = add i32 %27, -1
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2536), align 8, !tbaa !23
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2540), align 4, !tbaa !24
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2588), align 4, !tbaa !25
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %20, i32 noundef 8118, ptr noundef nonnull @.str.18, i32 noundef %22, i32 noundef %24, i32 noundef %25, double noundef %26, i32 noundef %28, i32 noundef %19, i32 noundef %29, i32 noundef %30, i32 noundef %31) #4
  br label %141

32:                                               ; preds = %2
  %33 = tail call i32 @qh_pointid(ptr noundef nonnull %0) #4
  %34 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 540), align 4, !tbaa !26
  %35 = icmp eq i32 %34, %33
  br i1 %35, label %36, label %38

36:                                               ; preds = %32
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 532), align 4, !tbaa !27
  br label %.sink.split

38:                                               ; preds = %32
  %39 = icmp ne i32 %34, -1
  %40 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 544), align 8
  %41 = fcmp olt double %40, 0x7FDFFFFFFFFFFFFF
  %or.cond = select i1 %39, i1 %41, i1 false
  br i1 %or.cond, label %.sink.split, label %42

.sink.split:                                      ; preds = %38, %36
  %.sink61 = phi i32 [ %37, %36 ], [ 0, %38 ]
  store i32 %.sink61, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !28
  store i32 %.sink61, ptr getelementptr inbounds (i8, ptr @qhmem, i64 88), align 8, !tbaa !29
  br label %42

42:                                               ; preds = %.sink.split, %38
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 476), align 4, !tbaa !31
  %.not46 = icmp eq i32 %43, 0
  br i1 %.not46, label %86, label %44

44:                                               ; preds = %42
  %45 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2552), align 8, !tbaa !22
  %46 = add i32 %45, -1
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2864), align 8, !tbaa !32
  %48 = add i32 %47, %43
  %49 = icmp ugt i32 %46, %48
  br i1 %49, label %50, label %86

50:                                               ; preds = %44
  store i32 %46, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2864), align 8, !tbaa !32
  %51 = call i64 @time(ptr noundef nonnull %4) #4
  %52 = call ptr @localtime(ptr noundef nonnull %4) #4
  %53 = call i64 @clock() #4
  %54 = uitofp i64 %53 to float
  %55 = load i64, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2568), align 8, !tbaa !15
  %56 = uitofp i64 %55 to float
  %57 = fsub float %54, %56
  %58 = fdiv float %57, 1.000000e+06
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1592), align 8, !tbaa !16
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 328), align 8, !tbaa !16
  %61 = sub i32 %59, %60
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 320), align 8, !tbaa !16
  %63 = add nsw i32 %61, %62
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 440), align 8, !tbaa !16
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 440), align 8, !tbaa !16
  call void @qh_distplane(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %3) #4
  %66 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !17
  %67 = getelementptr inbounds i8, ptr %52, i64 8
  %68 = load i32, ptr %67, align 8, !tbaa !18
  %69 = getelementptr inbounds i8, ptr %52, i64 4
  %70 = load i32, ptr %69, align 4, !tbaa !20
  %71 = load i32, ptr %52, align 8, !tbaa !21
  %72 = fpext float %58 to double
  %73 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2552), align 8, !tbaa !22
  %74 = add i32 %73, -1
  %75 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2536), align 8, !tbaa !23
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2540), align 4, !tbaa !24
  %77 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2544), align 8, !tbaa !33
  %78 = add nsw i32 %77, 1
  %79 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2560), align 8, !tbaa !34
  %80 = load double, ptr %3, align 8, !tbaa !5
  %.not48 = icmp eq ptr %1, null
  br i1 %.not48, label %84, label %81

81:                                               ; preds = %50
  %82 = getelementptr inbounds i8, ptr %1, i64 108
  %83 = load i32, ptr %82, align 4, !tbaa !35
  br label %84

84:                                               ; preds = %50, %81
  %85 = phi i32 [ %83, %81 ], [ -1, %50 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %66, i32 noundef 8119, ptr noundef nonnull @.str.19, i32 noundef %68, i32 noundef %70, i32 noundef %71, double noundef %72, i32 noundef %74, i32 noundef %63, i32 noundef %75, i32 noundef %76, i32 noundef %78, i32 noundef %33, i32 noundef %79, double noundef %80, i32 noundef %85) #4
  br label %109

86:                                               ; preds = %44, %42
  %87 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !28
  %88 = icmp sgt i32 %87, 0
  br i1 %88, label %89, label %109

89:                                               ; preds = %86
  %90 = tail call i64 @clock() #4
  %91 = uitofp i64 %90 to float
  %92 = load i64, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2568), align 8, !tbaa !15
  %93 = uitofp i64 %92 to float
  %94 = fsub float %91, %93
  %95 = fdiv float %94, 1.000000e+06
  call void @qh_distplane(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %3) #4
  %96 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !17
  %97 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2560), align 8, !tbaa !34
  %98 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2536), align 8, !tbaa !23
  %99 = load double, ptr %3, align 8, !tbaa !5
  %.not47 = icmp eq ptr %1, null
  br i1 %.not47, label %103, label %100

100:                                              ; preds = %89
  %101 = getelementptr inbounds i8, ptr %1, i64 108
  %102 = load i32, ptr %101, align 4, !tbaa !35
  br label %103

103:                                              ; preds = %89, %100
  %104 = phi i32 [ %102, %100 ], [ -1, %89 ]
  %105 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2544), align 8, !tbaa !33
  %106 = add nsw i32 %105, 1
  %107 = fpext float %95 to double
  %108 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2588), align 4, !tbaa !25
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %96, i32 noundef 8120, ptr noundef nonnull @.str.20, i32 noundef %33, i32 noundef %97, i32 noundef %98, double noundef %99, i32 noundef %104, i32 noundef %106, double noundef %107, i32 noundef %108) #4
  br label %109

109:                                              ; preds = %86, %103, %84
  %110 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1760), align 8, !tbaa !16
  %111 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !37
  %112 = sdiv i32 %111, 2
  %113 = icmp slt i32 %110, %112
  br i1 %113, label %114, label %115

114:                                              ; preds = %109
  store i32 %112, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1760), align 8, !tbaa !16
  br label %115

115:                                              ; preds = %114, %109
  %116 = icmp slt i32 %111, 0
  br i1 %116, label %117, label %.critedge

117:                                              ; preds = %115
  %118 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1752), align 8, !tbaa !16
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1752), align 8, !tbaa !16
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !37
  %.038.pr = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8, !tbaa !38
  %.not4954 = icmp eq ptr %.038.pr, null
  br i1 %.not4954, label %.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %117
  %120 = getelementptr inbounds i8, ptr %.038.pr, i64 56
  %121 = load ptr, ptr %120, align 8, !tbaa !38
  %.not5062 = icmp eq ptr %121, null
  br i1 %.not5062, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %122 = phi ptr [ %125, %.lr.ph ], [ %121, %.lr.ph.preheader ]
  %.0385563 = phi ptr [ %122, %.lr.ph ], [ %.038.pr, %.lr.ph.preheader ]
  %123 = getelementptr inbounds i8, ptr %.0385563, i64 104
  store i32 0, ptr %123, align 8, !tbaa !39
  %124 = getelementptr inbounds i8, ptr %122, i64 56
  %125 = load ptr, ptr %124, align 8, !tbaa !38
  %.not50 = icmp eq ptr %125, null
  br i1 %.not50, label %.critedge, label %.lr.ph

.critedge:                                        ; preds = %.lr.ph, %.lr.ph.preheader, %117, %115
  %126 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1792), align 8, !tbaa !16
  %127 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !40
  %128 = sdiv i32 %127, 2
  %129 = icmp slt i32 %126, %128
  br i1 %129, label %130, label %131

130:                                              ; preds = %.critedge
  store i32 %128, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1792), align 8, !tbaa !16
  br label %131

131:                                              ; preds = %130, %.critedge
  %132 = icmp slt i32 %127, 0
  br i1 %132, label %133, label %.critedge3

133:                                              ; preds = %131
  %134 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1784), align 8, !tbaa !16
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1784), align 8, !tbaa !16
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !40
  %.0.pr = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2512), align 8, !tbaa !38
  %.not5157 = icmp eq ptr %.0.pr, null
  br i1 %.not5157, label %.critedge3, label %.lr.ph59.preheader

.lr.ph59.preheader:                               ; preds = %133
  %136 = load ptr, ptr %.0.pr, align 8, !tbaa !38
  %.not5265 = icmp eq ptr %136, null
  br i1 %.not5265, label %.critedge3, label %.lr.ph59

.lr.ph59:                                         ; preds = %.lr.ph59.preheader, %.lr.ph59
  %137 = phi ptr [ %139, %.lr.ph59 ], [ %136, %.lr.ph59.preheader ]
  %.05866 = phi ptr [ %137, %.lr.ph59 ], [ %.0.pr, %.lr.ph59.preheader ]
  %138 = getelementptr inbounds i8, ptr %.05866, i64 36
  store i32 0, ptr %138, align 4, !tbaa !41
  %139 = load ptr, ptr %137, align 8, !tbaa !38
  %.not52 = icmp eq ptr %139, null
  br i1 %.not52, label %.critedge3, label %.lr.ph59

.critedge3:                                       ; preds = %.lr.ph59, %.lr.ph59.preheader, %133, %131
  store i32 %33, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2588), align 4, !tbaa !25
  %140 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2824), align 8, !tbaa !14
  store i32 %140, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !9
  br label %141

141:                                              ; preds = %.critedge3, %6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret void
}

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

declare i32 @qh_pointid(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare ptr @localtime(ptr noundef) local_unnamed_addr #1

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass